mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
94228778c9
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
18 lines
336 B
TypeScript
18 lines
336 B
TypeScript
import { PrimaryColumn, Entity, Index, Column } from 'typeorm';
|
|
import { id } from '../id.js';
|
|
|
|
@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;
|
|
}
|