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