mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-11 05:03:08 +02:00
17 lines
336 B
TypeScript
17 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;
|
|
}
|