mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 20:49:42 +03:00
15 lines
282 B
TypeScript
15 lines
282 B
TypeScript
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;
|
|
}
|