27 lines
417 B
TypeScript
27 lines
417 B
TypeScript
import {
|
|
Entity,
|
|
PrimaryColumn,
|
|
Column
|
|
} from 'typeorm';
|
|
|
|
@Entity('users')
|
|
export class AuthUserEntity {
|
|
@PrimaryColumn('text')
|
|
id!: string;
|
|
|
|
@Column('text', { unique: true })
|
|
username!: string;
|
|
|
|
@Column('text')
|
|
passwordHash!: string;
|
|
|
|
@Column('text')
|
|
displayName!: string;
|
|
|
|
@Column('integer')
|
|
createdAt!: number;
|
|
|
|
@Column('text', { nullable: true })
|
|
signingPublicKey!: string | null;
|
|
}
|