mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
20 lines
348 B
TypeScript
20 lines
348 B
TypeScript
|
|
import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
||
|
|
|
||
|
|
@Entity('users')
|
||
|
|
export class UserEntity {
|
||
|
|
@PrimaryGeneratedColumn('uuid')
|
||
|
|
id: string;
|
||
|
|
|
||
|
|
@Column()
|
||
|
|
email: string;
|
||
|
|
|
||
|
|
@Column({ select: false })
|
||
|
|
password: string;
|
||
|
|
|
||
|
|
@Column({ select: false })
|
||
|
|
salt: string;
|
||
|
|
|
||
|
|
@CreateDateColumn()
|
||
|
|
createdAt: string;
|
||
|
|
}
|