Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- langkah2 membuat db di postgres(unix):
- - psql postgres
- - CREATE ROLE genturadmin WITH LOGIN PASSWORD 'gentur';
- - ALTER ROLE genturadmin CREATEDB;
- - \q
- - psql postgres genturadmin
- - gentur
- - CREATE DATABASE message_app_db;
- - GRANT ALL PRIVILEGES ON DATABASE message_app_db to genturadmin;
- cd ke dalam project
- - sequelize model:create --name User --attributes name:string,email:string,password:string,token:string
- - sequelize model:create --name Message --attributes sender_id:string,recipient_id:string,message_time:date,message_body:string,is_read:boolean
- - sequelize model:create --name Thread --attributes user_id:string,other_user_id:string
- - npx sequelize-cli db:migrate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement