feat add questions module and admin routes
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
@Entity()
|
||||
export class User {
|
||||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
id!: number;
|
||||
|
||||
@Column({
|
||||
type: 'varchar',
|
||||
@@ -34,7 +34,7 @@ export class User {
|
||||
nullable: false,
|
||||
unique: true,
|
||||
})
|
||||
phone: string;
|
||||
phone!: string;
|
||||
|
||||
@Column({
|
||||
type: 'varchar',
|
||||
@@ -48,11 +48,11 @@ export class User {
|
||||
enum: Role,
|
||||
default: Role.USER,
|
||||
})
|
||||
role: Role;
|
||||
role!: Role;
|
||||
|
||||
@CreateDateColumn()
|
||||
createdAt: Date;
|
||||
createdAt!: Date;
|
||||
|
||||
@UpdateDateColumn()
|
||||
updatedAt: Date;
|
||||
updatedAt!: Date;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user