Skip to content

Commit 8cc4ec4

Browse files
intial setup for loading sample data
1 parent b29de04 commit 8cc4ec4

File tree

3 files changed

+415
-0
lines changed

3 files changed

+415
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,14 @@
8888
"generate_gql_tada": "gql.tada generate-output && gql.tada turbo --fail-on-warn",
8989
"push_drizzle_schema": "drizzle-kit push",
9090
"push_drizzle_test_schema": "drizzle-kit push --config=./test/drizzle.config.ts",
91+
"start_drizzle_studio": "drizzle-kit studio",
9192
"run_tests": "vitest --coverage",
9293
"start_development_server": "tsx watch ./src/index.ts",
9394
"start_development_server_with_debugger": "tsx watch --inspect=${API_DEBUGGER_HOST:-127.0.0.1}:${API_DEBUGGER_PORT:-9229} ./src/index.ts",
9495
"start_production_server": "pnpm build_production && node ./dist/index.js",
9596
"start_production_server_with_debugger": "pnpm build_production && node --inspect=${API_DEBUGGER_HOST:-127.0.0.1}:${API_DEBUGGER_PORT:-9229} ./dist/index.js",
9697
"setup": "tsx setup.ts",
98+
"import:sample-data": "tsx ./src/utilities/loadSampleData.ts",
9799
"upgrade_drizzle_metadata": "drizzle-kit up"
98100
},
99101
"type": "module",

sample_data/users.json

Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
[
2+
{
3+
"id": "64378abd85008f171cf2990d",
4+
"name": "Wilt Shepherd",
5+
"emailAddress": "[email protected]",
6+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
7+
"addressLine1": "Line1",
8+
"addressLine2": "Line2",
9+
"city": "CityName",
10+
"state": "State",
11+
"postalCode": "PostalCode",
12+
"countryCode": "US",
13+
"isEmailAddressVerified": true,
14+
"role": "SUPERADMIN",
15+
"createdAt": "2023-04-13T04:53:17.742Z"
16+
},
17+
{
18+
"id": "65378abd85008f171cf2990d",
19+
"name": "Vyvyan Kerry",
20+
"emailAddress": "[email protected]",
21+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
22+
"addressLine1": "Line1",
23+
"addressLine2": "Line2",
24+
"city": "CityName",
25+
"state": "State",
26+
"postalCode": "PostalCode",
27+
"countryCode": "US",
28+
"isEmailAddressVerified": true,
29+
"role": "ADMIN",
30+
"createdAt": "2023-04-13T04:53:17.742Z"
31+
},
32+
{
33+
"id": "66378abd85008f171cf2990d",
34+
"name": "Loyd Solomon",
35+
"emailAddress": "[email protected]",
36+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
37+
"addressLine1": "Line1",
38+
"addressLine2": "Line2",
39+
"city": "CityName",
40+
"state": "State",
41+
"postalCode": "PostalCode",
42+
"countryCode": "US",
43+
"isEmailAddressVerified": true,
44+
"role": "ADMIN",
45+
"createdAt": "2023-04-13T04:53:17.742Z"
46+
},
47+
{
48+
"id": "67378abd85008f171cf2990d",
49+
"name": "Darcy Wilf",
50+
"emailAddress": "[email protected]",
51+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
52+
"addressLine1": "Line1",
53+
"addressLine2": "Line2",
54+
"city": "CityName",
55+
"state": "State",
56+
"postalCode": "PostalCode",
57+
"countryCode": "US",
58+
"isEmailAddressVerified": true,
59+
"role": "ADMIN",
60+
"createdAt": "2023-04-13T04:53:17.742Z"
61+
},
62+
{
63+
"id": "67378abd85008f171cf2991d",
64+
"name": "Harve Lance",
65+
"emailAddress": "[email protected]",
66+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
67+
"addressLine1": "Line1",
68+
"addressLine2": "Line2",
69+
"city": "CityName",
70+
"state": "State",
71+
"postalCode": "PostalCode",
72+
"countryCode": "US",
73+
"isEmailAddressVerified": true,
74+
"role": "USER",
75+
"createdAt": "2023-04-13T04:53:17.742Z"
76+
},
77+
{
78+
"id": "67378abd85008f171cf2992d",
79+
"name": "Praise Norris",
80+
"emailAddress": "[email protected]",
81+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
82+
"addressLine1": "Line1",
83+
"addressLine2": "Line2",
84+
"city": "CityName",
85+
"state": "State",
86+
"postalCode": "PostalCode",
87+
"countryCode": "US",
88+
"isEmailAddressVerified": true,
89+
"role": "USER",
90+
"createdAt": "2023-04-13T04:53:17.742Z"
91+
},
92+
{
93+
"id": "67378abd85008f171cf2993d",
94+
"name": "Scott Tony",
95+
"emailAddress": "[email protected]",
96+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
97+
"addressLine1": "Line1",
98+
"addressLine2": "Line2",
99+
"city": "CityName",
100+
"state": "State",
101+
"postalCode": "PostalCode",
102+
"countryCode": "US",
103+
"isEmailAddressVerified": true,
104+
"role": "USER",
105+
"createdAt": "2023-04-13T04:53:17.742Z"
106+
},
107+
{
108+
"id": "658930fd2caa9d8d6908745c",
109+
"name": "Teresa Bradley",
110+
"emailAddress": "[email protected]",
111+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
112+
"addressLine1": "Line1",
113+
"addressLine2": "Line2",
114+
"city": "CityName",
115+
"state": "State",
116+
"postalCode": "PostalCode",
117+
"countryCode": "US",
118+
"isEmailAddressVerified": true,
119+
"role": "USER",
120+
"createdAt": "2023-04-13T04:53:17.742Z"
121+
},
122+
{
123+
"id": "6589386a2caa9d8d69087484",
124+
"name": "Bruce Garza",
125+
"emailAddress": "[email protected]",
126+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
127+
"addressLine1": "Line1",
128+
"addressLine2": "Line2",
129+
"city": "CityName",
130+
"state": "State",
131+
"postalCode": "PostalCode",
132+
"countryCode": "US",
133+
"isEmailAddressVerified": true,
134+
"role": "USER",
135+
"createdAt": "2023-04-13T04:53:17.742Z"
136+
},
137+
{
138+
"id": "6589387e2caa9d8d69087485",
139+
"name": "Burton Sanders",
140+
"emailAddress": "[email protected]",
141+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
142+
"addressLine1": "Line1",
143+
"addressLine2": "Line2",
144+
"city": "CityName",
145+
"state": "State",
146+
"postalCode": "PostalCode",
147+
"countryCode": "US",
148+
"isEmailAddressVerified": true,
149+
"role": "USER",
150+
"createdAt": "2023-04-13T04:53:17.742Z"
151+
},
152+
{
153+
"id": "6589388b2caa9d8d69087486",
154+
"name": "Jeramy Garcia",
155+
"emailAddress": "[email protected]",
156+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
157+
"addressLine1": "Line1",
158+
"addressLine2": "Line2",
159+
"city": "CityName",
160+
"state": "State",
161+
"postalCode": "PostalCode",
162+
"countryCode": "US",
163+
"isEmailAddressVerified": true,
164+
"role": "USER",
165+
"createdAt": "2023-04-13T04:53:17.742Z"
166+
},
167+
{
168+
"id": "6589389d2caa9d8d69087487",
169+
"name": "Deanne Marks",
170+
"emailAddress": "[email protected]",
171+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
172+
"addressLine1": "Line1",
173+
"addressLine2": "Line2",
174+
"city": "CityName",
175+
"state": "State",
176+
"postalCode": "PostalCode",
177+
"countryCode": "US",
178+
"isEmailAddressVerified": true,
179+
"role": "USER",
180+
"createdAt": "2023-04-13T04:53:17.742Z"
181+
},
182+
{
183+
"id": "658938a62caa9d8d69087488",
184+
"name": "Romeo Holland",
185+
"emailAddress": "[email protected]",
186+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
187+
"addressLine1": "Line1",
188+
"addressLine2": "Line2",
189+
"city": "CityName",
190+
"state": "State",
191+
"postalCode": "PostalCode",
192+
"countryCode": "US",
193+
"isEmailAddressVerified": true,
194+
"role": "USER",
195+
"createdAt": "2023-04-13T04:53:17.742Z"
196+
},
197+
{
198+
"id": "658938b02caa9d8d69087489",
199+
"name": "Carla Nguyen",
200+
"emailAddress": "[email protected]",
201+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
202+
"addressLine1": "Line1",
203+
"addressLine2": "Line2",
204+
"city": "CityName",
205+
"state": "State",
206+
"postalCode": "PostalCode",
207+
"countryCode": "US",
208+
"isEmailAddressVerified": true,
209+
"role": "USER",
210+
"createdAt": "2023-04-13T04:53:17.742Z"
211+
},
212+
{
213+
"id": "658938ba2caa9d8d6908748a",
214+
"name": "Peggy Bowers",
215+
"emailAddress": "[email protected]",
216+
"passwordHash": "$2a$12$bSYpay6TRMpTOaAmYPFXku4avwmqfFBtmgg39TabxmtFEiz4plFtW",
217+
"addressLine1": "Line1",
218+
"addressLine2": "Line2",
219+
"city": "CityName",
220+
"state": "State",
221+
"postalCode": "PostalCode",
222+
"countryCode": "US",
223+
"isEmailAddressVerified": true,
224+
"role": "USER",
225+
"createdAt": "2023-04-13T04:53:17.742Z"
226+
}
227+
]

0 commit comments

Comments
 (0)