|
1
|
mutation SeedDatabase @transaction { |
|
2
|
category_insertMany(data: [ |
|
3
|
{ id: "00000000-0000-0000-0000-000000000001", name: "Electronics", iconUrl: "https://example.com/icons/elec.png" }, |
|
4
|
{ id: "00000000-0000-0000-0000-000000000002", name: "Appliances", iconUrl: "https://example.com/icons/app.png" } |
|
5
|
]) |
|
6
|
device_insertMany(data: [ |
|
7
|
{ id: "10000000-0000-0000-0000-000000000001", manufacturer: "TechCo", modelName: "SmartPhone X", releaseYear: 2023 }, |
|
8
|
{ id: "10000000-0000-0000-0000-000000000002", manufacturer: "HomeCorp", modelName: "Fridge Y", releaseYear: 2022 } |
|
9
|
]) |
|
10
|
guide_insertMany(data: [ |
|
11
|
{ id: "20000000-0000-0000-0000-000000000001", title: "Battery Replacement", difficultyLevel: "Medium", estimatedTimeMinutes: 30, categoryId: "00000000-0000-0000-0000-000000000001", deviceId: "10000000-0000-0000-0000-000000000001" }, |
|
12
|
{ id: "20000000-0000-0000-0000-000000000002", title: "Filter Cleaning", difficultyLevel: "Easy", estimatedTimeMinutes: 15, categoryId: "00000000-0000-0000-0000-000000000002", deviceId: "10000000-0000-0000-0000-000000000002" } |
|
13
|
]) |
|
14
|
part_insertMany(data: [ |
|
15
|
{ id: "30000000-0000-0000-0000-000000000001", partName: "Battery Pack", partType: "Internal", deviceId: "10000000-0000-0000-0000-000000000001" }, |
|
16
|
{ id: "30000000-0000-0000-0000-000000000002", partName: "Water Filter", partType: "Consumable", deviceId: "10000000-0000-0000-0000-000000000002" } |
|
17
|
]) |
|
18
|
step_insertMany(data: [ |
|
19
|
{ id: "40000000-0000-0000-0000-000000000001", sequenceOrder: 1, instructionText: "Power off the device.", guideId: "20000000-0000-0000-0000-000000000001" }, |
|
20
|
{ id: "40000000-0000-0000-0000-000000000002", sequenceOrder: 2, instructionText: "Remove the back cover.", guideId: "20000000-0000-0000-0000-000000000001" }, |
|
21
|
{ id: "40000000-0000-0000-0000-000000000003", sequenceOrder: 1, instructionText: "Open the filter door.", guideId: "20000000-0000-0000-0000-000000000002" } |
|
22
|
]) |
|
23
|
userBookmark_insertMany(data: [ |
|
24
|
{ id: "50000000-0000-0000-0000-000000000001", userId: "user-1", guideId: "20000000-0000-0000-0000-000000000001" }, |
|
25
|
{ id: "50000000-0000-0000-0000-000000000002", userId: "user-1", guideId: "20000000-0000-0000-0000-000000000002" } |
|
26
|
]) |
|
27
|
} |