2021-10-08 04:37:02 +00:00
|
|
|
import { PrimaryColumn, Entity, Index, Column } from 'typeorm';
|
2022-02-27 02:07:39 +00:00
|
|
|
import { id } from '../id.js';
|
2021-10-08 04:37:02 +00:00
|
|
|
|
|
|
|
@Entity()
|
|
|
|
export class UserPending {
|
|
|
|
@PrimaryColumn(id())
|
|
|
|
public id: string;
|
|
|
|
|
|
|
|
@Column('timestamp with time zone')
|
|
|
|
public createdAt: Date;
|
|
|
|
|
|
|
|
@Index({ unique: true })
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 128,
|
|
|
|
})
|
|
|
|
public code: string;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 128,
|
|
|
|
})
|
|
|
|
public username: string;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 128,
|
|
|
|
})
|
|
|
|
public email: string;
|
|
|
|
|
|
|
|
@Column('varchar', {
|
|
|
|
length: 128,
|
|
|
|
})
|
|
|
|
public password: string;
|
|
|
|
}
|