* Deprecate login scenarios that support pre-web era * refactor and simplify setup * Added user info to change password form * change isFistLogin column to shouldChangePassword * Implemented change user password * Implement the change password page for mobile * Change label * Added changes log and up minor version * Fixed typo in the release note * Up server version
35 lines
545 B
TypeScript
35 lines
545 B
TypeScript
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity('users')
|
|
export class UserEntity {
|
|
@PrimaryGeneratedColumn('uuid')
|
|
id!: string;
|
|
|
|
@Column()
|
|
firstName!: string;
|
|
|
|
@Column()
|
|
lastName!: string;
|
|
|
|
@Column()
|
|
isAdmin!: boolean;
|
|
|
|
@Column()
|
|
email!: string;
|
|
|
|
@Column({ select: false })
|
|
password?: string;
|
|
|
|
@Column({ select: false })
|
|
salt?: string;
|
|
|
|
@Column()
|
|
profileImagePath!: string;
|
|
|
|
@Column()
|
|
shouldChangePassword!: boolean;
|
|
|
|
@CreateDateColumn()
|
|
createdAt!: string;
|
|
}
|