mirror of
https://github.com/StepanovPlaton/Chat.git
synced 2026-04-04 12:50:41 +04:00
Init project. Create simple backend. Add postgres in docker
This commit is contained in:
13
backend/src/entities/message/message.ts
Normal file
13
backend/src/entities/message/message.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
|
||||
|
||||
@Entity()
|
||||
export class Message {
|
||||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
@Column()
|
||||
timeOfSend: string;
|
||||
|
||||
@Column()
|
||||
sender: string;
|
||||
}
|
||||
Reference in New Issue
Block a user