MediaVault an efficient file sharing application
Node.js\n Postgresql\n copy env from .env.example
npm install
-
Run migration Command:
npm run up
npm run down
-
Create a New Model Command:
npm run create-model --name=<model_name> --columns="<column1:type,column2:type,...>"
Example:
npm run create-model --name=User --columns="firstName:string,lastName:string,email:string"
-
Alter a Column Command:
npm run alter-column --table=<table_name> --column=<column_name> --new-type=<new_data_type>
Example:
npm run alter-column --table=Users --column=age --new-type=integer
-
Delete a Column Command:
npm run delete-column --table=<table_name> --column=<column_name>
Example:
npm run delete-column --table=Users --column=middleName
-
Run a Specific Seed File Command:
npm run seed-specific -- <seed-file-name>
Example:
npm run seed-specific -- 20231027000000-demo-user.js