Added user model

This commit is contained in:
2023-11-18 02:01:03 +03:00
parent dd33571463
commit a8db05fb03
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import { Column, Entity, PrimaryColumn } from 'typeorm';
@Entity()
export class User {
constructor(props?: Partial<User>) {
Object.assign(this, props);
}
@PrimaryColumn()
public id!: string;
@Column({ nullable: true })
public user_name: string;
}