solving problems of the seed

This commit is contained in:
José Salazar
2026-02-04 00:12:05 +09:00
parent 6096a650da
commit 470749501b
2 changed files with 31 additions and 9 deletions

View File

@@ -1,4 +1,25 @@
mutation seedAll @transaction {
# Users
user_1: user_insert(
data: {
id: "dvpWnaBjT6UksS5lo04hfMTyq1q1"
email: "legendary@krowd.com"
fullName: "Krow"
role: USER
userRole: "BUSINESS"
}
)
user_2: user_insert(
data: {
id: "hWjFHY11K3X1MChMseVVaCDfAl32"
email: "mariana.torres@gmail.com"
fullName: "Mariana"
role: USER
userRole: "STAFF"
}
)
# Business
business_1: business_insert(
data: {
@@ -6,7 +27,7 @@ mutation seedAll @transaction {
businessName: "Krow"
userId: "dvpWnaBjT6UksS5lo04hfMTyq1q1"
contactName: "Krow Ops"
email: "ops@krow.example"
email: "legendary@krowd.com"
phone: "+1-818-555-0148"
address: "5000 San Jose Street, Granada Hills, CA, USA"
city: "Los Angeles"
@@ -87,7 +108,7 @@ mutation seedAll @transaction {
companyName: "Golden Gate Event Services"
legalName: "Golden Gate Event Services LLC"
doingBusinessAs: "GGE Services"
email: "hello@ggevents.example"
email: "hello@ggevents.com"
phone: "+1-415-555-0136"
address: "2100 Sunset Blvd, Los Angeles, CA 90026"
billingAddress: "2100 Sunset Blvd, Los Angeles, CA 90026"
@@ -176,9 +197,9 @@ mutation seedAll @transaction {
staff_1: staff_insert(
data: {
id: "633df3ce-b92c-473f-90d8-38dd027fdf57"
userId: "Tq4a7qO9h7Ti5m45GSsyd81oswa2"
userId: "hWjFHY11K3X1MChMseVVaCDfAl32"
fullName: "Mariana Torres"
email: "mariana.torres@example.com"
email: "mariana.torres@gmail.com"
phone: "+1-818-555-0101"
ownerId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a"
city: "Los Angeles"
@@ -192,7 +213,7 @@ mutation seedAll @transaction {
id: "9631581a-1601-4e06-8e5e-600e9f305bcf"
userId: "V7mQ2pL8sKx5tR1nC3yH6uJ9wA0"
fullName: "Ethan Walker"
email: "ethan.walker@example.com"
email: "ethan.walker@gmail.com"
phone: "+1-818-555-0102"
ownerId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a"
city: "Los Angeles"
@@ -205,7 +226,7 @@ mutation seedAll @transaction {
id: "2b678a6d-b8cd-4d5e-95ae-f35e4569f92c"
userId: "aB3cD5eF7gH9iJ2kL4mN6pQ8rS1"
fullName: "Sofia Ramirez"
email: "sofia.ramirez@example.com"
email: "sofia.ramirez@gmail.com"
phone: "+1-818-555-0103"
ownerId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a"
city: "Los Angeles"
@@ -218,7 +239,7 @@ mutation seedAll @transaction {
id: "d62605f9-366d-42c5-8f3b-f276c0d27ea3"
userId: "Z9yX7wV5uT3sR1qP8nM6lK4jH2"
fullName: "Lucas Chen"
email: "lucas.chen@example.com"
email: "lucas.chen@gmail.com"
phone: "+1-818-555-0104"
ownerId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a"
city: "Los Angeles"
@@ -231,7 +252,7 @@ mutation seedAll @transaction {
id: "c6428f90-9c29-4e5c-b362-dc67a9a8cbba"
userId: "mN2bV5cX7zL9kJ4hG6fD1sA3qW8"
fullName: "Priya Patel"
email: "priya.patel@example.com"
email: "priya.patel@gmail.com"
phone: "+1-818-555-0105"
ownerId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a"
city: "Los Angeles"
@@ -244,7 +265,7 @@ mutation seedAll @transaction {
id: "56d7178c-f4ab-4c50-9b1f-d6efe25ba50b"
userId: "tR8yU6iO4pL2kJ9hG7fD5sA3qW1"
fullName: "Miguel Alvarez"
email: "miguel.alvarez@example.com"
email: "miguel.alvarez@gmail.com"
phone: "+1-818-555-0106"
ownerId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a"
city: "Los Angeles"