mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Added create_user script with documentation on how to create a user
This commit is contained in:
parent
43617f3944
commit
ec8da0e40b
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -68,3 +68,13 @@ npm run migration:push
|
|||
```
|
||||
|
||||
Which will commit changes to the database. The database changes will be pushed to the **public** schema, whereas a meta record will be pushed to the **\_\_drizzle_migrations** schema.
|
||||
|
||||
## Inserting users into the database
|
||||
|
||||
In order to insert a user into the database, simply run
|
||||
|
||||
```
|
||||
node -r esbuild-register src/app/db/create_user.ts khalim@hestia.homes Khalim
|
||||
```
|
||||
|
||||
Since we're using just the built in process arguments to read command line arguments, the ordering of arguments needs to be email address and then name
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue