mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-15 13:09:43 +03:00
feat: auth
This commit is contained in:
16
backend/libs/database/web_user.entity.ts
Normal file
16
backend/libs/database/web_user.entity.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
||||
|
||||
@Entity()
|
||||
export class WebUser {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
public uuid: string;
|
||||
|
||||
@Column({ unique: true })
|
||||
public login: string;
|
||||
|
||||
@Column({ nullable: false })
|
||||
public password: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
public telegram_id?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user