Files
immich/server/libs/database/src/entities/user.entity.ts
Alex 5f00d8b9c6 Added mechanism of required password change of new user's first login (#272)
* 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
2022-06-27 15:13:07 -05:00

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;
}