profile: seed visit card on startup
- seed-data.json с данными визитки - ProfileSeeder: пустая таблица Profile — признак незасеянной БД, вложенный create кладёт профиль и связи одной транзакцией - JSON копируется в dist через assets, чтобы работал и в docker-образе
This commit is contained in:
1 parent
bc98a41614
commit
c824a7675b
5 files changed
+208
-2
No files matched your search
+2
-1
@@ -3,6 +3,7 @@
|
||||
"collection": "@nestjs/schematics",
|
||||
"sourceRoot": "src",
|
||||
"compilerOptions": {
|
||||
"deleteOutDir": true
|
||||
"deleteOutDir": true,
|
||||
"assets": [{ "include": "profile/seed/*.json", "outDir": "dist" }]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user