lrf 5 days ago
parent
commit
af4fb4af3f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entity/frame/loginRecord.entity.ts

+ 2 - 2
src/entity/frame/loginRecord.entity.ts

@@ -3,9 +3,9 @@ import { BaseModel } from '../../frame/BaseModel';
 
 
 @Entity('loginRecord', { comment: '登陆记录' })
 @Entity('loginRecord', { comment: '登陆记录' })
 export class LoginRecord extends BaseModel {
 export class LoginRecord extends BaseModel {
-  @Column({ comment: '用户id' })
+  @Column({ comment: '用户id', nullable: true })
   user_id: number;
   user_id: number;
-  @Column({ comment: '用户角色:Admin;User' })
+  @Column({ comment: '用户角色:Admin;User', nullable: true })
   role: string;
   role: string;
   @Column({ comment: 'token', nullable: true })
   @Column({ comment: 'token', nullable: true })
   token: string
   token: string