mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 11:33:09 +02:00
32 lines
531 B
TypeScript
32 lines
531 B
TypeScript
import { PrimaryColumn, Entity, Index, Column } from 'typeorm';
|
|
import { id } from '../id.js';
|
|
|
|
@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;
|
|
}
|