mirror of
https://github.com/StepanovPlaton/Chat.git
synced 2026-04-04 12:50:41 +04:00
17 lines
239 B
TypeScript
17 lines
239 B
TypeScript
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity()
|
|
export class Message {
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@Column()
|
|
text: string;
|
|
|
|
@Column()
|
|
timeOfSend: string;
|
|
|
|
@Column()
|
|
sender: string;
|
|
}
|