Unit tests
This commit is contained in:
21
api/src/model/entitites/mail-fracture.entity.ts
Normal file
21
api/src/model/entitites/mail-fracture.entity.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Column, CreateDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
|
||||
import { User } from "./user";
|
||||
|
||||
@Entity()
|
||||
export class MailFracture {
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id: string;
|
||||
|
||||
@CreateDateColumn({name: 'created_at'})
|
||||
created: Date;
|
||||
|
||||
@ManyToOne(() => User)
|
||||
@JoinColumn()
|
||||
to: User;
|
||||
|
||||
@Column({ name: 'text' })
|
||||
mailText: string
|
||||
|
||||
@Column({ name: 'sended_date' })
|
||||
sended: Date
|
||||
}
|
||||
Reference in New Issue
Block a user