food
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user