mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 20:49:42 +03:00
Added user model
This commit is contained in:
14
backend/libs/database/user.entity.ts
Normal file
14
backend/libs/database/user.entity.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user