mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-01-05 20:25:59 +01:00
0e4a111f81
Resolve #7779
17 lines
333 B
TypeScript
17 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;
|
|
}
|