|
|
@@ -1,5 +1,5 @@
|
|
|
import { AppDataSource } from '@d8d/server/data-source';
|
|
|
-import { ActivityEntity, ActivityType } from '@d8d/server/modules/activities/activity.entity.js';
|
|
|
+import { ActivityEntity } from '@d8d/server/modules/activities/activity.entity.js';
|
|
|
import { RouteEntity } from '@d8d/server/modules/routes/route.entity.js';
|
|
|
import { VehicleType, TravelMode } from '@d8d/server/modules/routes/route.schema.js';
|
|
|
import { LocationEntity } from '@d8d/server/modules/locations/location.entity.js';
|
|
|
@@ -137,7 +137,6 @@ async function seed() {
|
|
|
{
|
|
|
name: '中超联赛北京国安主场赛事',
|
|
|
description: '北京国安主场对阵上海申花的中超联赛',
|
|
|
- type: ActivityType.DEPARTURE,
|
|
|
startDate: new Date('2025-10-15T00:00:00Z'),
|
|
|
endDate: new Date('2025-10-15T23:59:59Z'),
|
|
|
venueLocationId: savedLocations[0].id, // 工人体育场
|
|
|
@@ -145,7 +144,6 @@ async function seed() {
|
|
|
{
|
|
|
name: '中超联赛北京国安主场赛事',
|
|
|
description: '北京国安主场赛事',
|
|
|
- type: ActivityType.RETURN,
|
|
|
startDate: new Date('2025-10-15T21:00:00Z'),
|
|
|
endDate: new Date('2025-10-16T02:00:00Z'),
|
|
|
venueLocationId: savedLocations[0].id, // 工人体育场
|
|
|
@@ -153,7 +151,6 @@ async function seed() {
|
|
|
{
|
|
|
name: '周杰伦北京演唱会',
|
|
|
description: '周杰伦北京演唱会专场',
|
|
|
- type: ActivityType.DEPARTURE,
|
|
|
startDate: new Date('2025-11-01T00:00:00Z'),
|
|
|
endDate: new Date('2025-11-01T23:59:59Z'),
|
|
|
venueLocationId: savedLocations[1].id, // 鸟巢
|
|
|
@@ -161,7 +158,6 @@ async function seed() {
|
|
|
{
|
|
|
name: '周杰伦北京演唱会',
|
|
|
description: '周杰伦演唱会',
|
|
|
- type: ActivityType.RETURN,
|
|
|
startDate: new Date('2025-11-01T22:30:00Z'),
|
|
|
endDate: new Date('2025-11-02T01:00:00Z'),
|
|
|
venueLocationId: savedLocations[1].id, // 鸟巢
|
|
|
@@ -169,7 +165,6 @@ async function seed() {
|
|
|
{
|
|
|
name: 'CBA北京首钢主场赛事',
|
|
|
description: '北京首钢主场对阵广东宏远的CBA联赛',
|
|
|
- type: ActivityType.DEPARTURE,
|
|
|
startDate: new Date('2025-10-20T00:00:00Z'),
|
|
|
endDate: new Date('2025-10-20T23:59:59Z'),
|
|
|
venueLocationId: savedLocations[2].id, // 五棵松体育馆
|
|
|
@@ -177,7 +172,6 @@ async function seed() {
|
|
|
{
|
|
|
name: 'CBA北京首钢主场赛事',
|
|
|
description: '北京首钢主场赛事',
|
|
|
- type: ActivityType.RETURN,
|
|
|
startDate: new Date('2025-10-20T21:30:00Z'),
|
|
|
endDate: new Date('2025-10-21T00:30:00Z'),
|
|
|
venueLocationId: savedLocations[2].id, // 五棵松体育馆
|