update
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Entity, Property } from '@mikro-orm/core';
|
||||
import { BaseEntity } from '../../../common/entities/base.entity';
|
||||
import { PolygonType } from '../types/polygun.type';
|
||||
|
||||
@Entity({ tableName: 'restaurants' })
|
||||
export class Restaurant extends BaseEntity {
|
||||
@@ -27,8 +26,11 @@ export class Restaurant extends BaseEntity {
|
||||
@Property({ type: 'decimal', precision: 10, scale: 7, nullable: true })
|
||||
longitude?: number;
|
||||
|
||||
@Property({ type: PolygonType, nullable: true })
|
||||
serviceArea?: string;
|
||||
@Property({ type: 'json', nullable: true })
|
||||
serviceArea?: {
|
||||
type: 'Polygon';
|
||||
coordinates: number[][][];
|
||||
};
|
||||
|
||||
// --- وضعیتها ---
|
||||
@Property({ default: true })
|
||||
|
||||
Reference in New Issue
Block a user