This commit is contained in:
2026-03-09 11:38:43 +03:30
commit 5fda2d6d8c
339 changed files with 186841 additions and 0 deletions
@@ -0,0 +1,20 @@
import { Entity, Property } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
@Entity({ tableName: 'schedules' })
export class Schedule extends BaseEntity {
@Property({ type: 'int' })
weekDay!: number;
@Property({ type: 'time' })
openTime!: string;
@Property({ type: 'time' })
closeTime!: string;
@Property({ default: true })
isActive: boolean = true;
@Property()
restId!: string;
}