This commit is contained in:
2025-11-15 11:35:46 +03:30
parent cfe4aeff7a
commit f0913840f2
4 changed files with 53 additions and 22 deletions
@@ -0,0 +1,20 @@
import { Entity, Property } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
@Entity({ tableName: 'restaurants' })
export class Schedule extends BaseEntity {
@Property({ type: 'date' })
date!: Date;
@Property({ type: 'int' })
openTime!: number;
@Property({ type: 'int' })
closeTime!: number;
@Property({ default: true })
isActive: boolean = true;
@Property()
restId!: string;
}