Added create_user script with documentation on how to create a user

This commit is contained in:
Khalim Conn-Kowlessar 2023-07-10 18:49:04 +01:00
parent 43617f3944
commit ec8da0e40b

View file

@ -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