22 lines
532 B
TypeScript
22 lines
532 B
TypeScript
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
import { QueueBucket } from '../../domain/entities/queue-bucket.entity';
|
|
import { TABLE_NAME } from 'src/core/strings/constants/table.constants';
|
|
|
|
@Entity(TABLE_NAME.QUEUE_BUCKET)
|
|
export class QueueBucketModel implements QueueBucket {
|
|
@PrimaryGeneratedColumn('uuid')
|
|
id: string;
|
|
|
|
@Column('varchar')
|
|
queue_item_id: string;
|
|
|
|
@Column({ type: 'bigint', nullable: false })
|
|
date: number;
|
|
|
|
@Column('int')
|
|
regular: number;
|
|
|
|
@Column('int')
|
|
vip: number;
|
|
}
|