Files
dmenu-api/src/seeders/data/restaurants.data.ts
T
2025-12-27 10:40:15 +03:30

122 lines
2.7 KiB
TypeScript

import { PlanEnum } from 'src/modules/restaurants/interface/plan.interface';
export interface RestaurantData {
name: string;
slug: string;
domain: string;
isActive: boolean;
phone: string;
serviceArea: {
type: 'Polygon';
coordinates: number[][][];
};
score: {
purchaseAmount: string;
purchaseScore: string;
scoreAmount: string;
scoreCredit: string;
birthdayScore: string;
registerScore: string;
marriageDateScore: string;
referrerScore: string;
};
plan: PlanEnum;
subscriptionId: string;
}
export const restaurantsData: RestaurantData[] = [
{
name: 'ژیوان',
slug: 'zhivan',
domain: 'https://dmenu-plus-front.dev.danakcorp.com/zhivan',
isActive: true,
phone: '09123456789',
serviceArea: {
type: 'Polygon',
coordinates: [
[
[51.389, 35.6892],
[51.39, 35.6892],
[51.39, 35.6902],
[51.389, 35.6902],
[51.389, 35.6892],
],
],
},
score: {
purchaseAmount: '10000',
purchaseScore: '10000',
scoreAmount: '10000',
scoreCredit: '10000',
birthdayScore: '10000',
registerScore: '10000',
marriageDateScore: '10000',
referrerScore: '10000',
},
plan: PlanEnum.Premium,
subscriptionId: 'sub_seed_zhivan_001',
},
{
name: 'بوته',
slug: 'boote',
domain: 'https://dmenu-plus-front.dev.danakcorp.com/boote',
isActive: true,
phone: '09123456790',
serviceArea: {
type: 'Polygon',
coordinates: [
[
[51.389, 35.6892],
[51.39, 35.6892],
[51.39, 35.6902],
[51.389, 35.6902],
[51.389, 35.6892],
],
],
},
score: {
purchaseAmount: '10000',
purchaseScore: '10000',
scoreAmount: '10000',
scoreCredit: '10000',
birthdayScore: '10000',
registerScore: '10000',
marriageDateScore: '10000',
referrerScore: '10000',
},
plan: PlanEnum.Base,
subscriptionId: 'sub_seed_boote_001',
},
{
name: 'هنر',
slug: 'honar',
domain: 'https://dmenu-plus-front.dev.danakcorp.com/honar',
isActive: true,
phone: '09184317567',
serviceArea: {
type: 'Polygon',
coordinates: [
[
[51.389, 35.6892],
[51.39, 35.6892],
[51.39, 35.6902],
[51.389, 35.6902],
[51.389, 35.6892],
],
],
},
score: {
purchaseAmount: '10000',
purchaseScore: '10000',
scoreAmount: '10000',
scoreCredit: '10000',
birthdayScore: '10000',
registerScore: '10000',
marriageDateScore: '10000',
referrerScore: '10000',
},
plan: PlanEnum.Base,
subscriptionId: 'sub_seed_honar_001',
},
];