mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 13:09:07 +01:00
14148f6c4a
Resolve #7779
18 lines
333 B
TypeScript
18 lines
333 B
TypeScript
import { PrimaryColumn, Entity, Index, Column } from 'typeorm';
|
|
import { id } from '../id';
|
|
|
|
@Entity()
|
|
export class RegistrationTicket {
|
|
@PrimaryColumn(id())
|
|
public id: string;
|
|
|
|
@Column('timestamp with time zone')
|
|
public createdAt: Date;
|
|
|
|
@Index({ unique: true })
|
|
@Column('varchar', {
|
|
length: 64,
|
|
})
|
|
public code: string;
|
|
}
|