docker exec -it mysql mysql -p
enter inside the running mysql containerdocker exec -i some_mysql_container mysql -uroot -pdefaultpassword
enter inside the running mysql container with pre configdocker exec -i 5a7c57bb919b mysql -uroot -pdefaultpassword
sudo docker exec -it 5a7c57bb919b bash
#run PM2 with env file set
-pm2 start npm --name Guardians -- dev --env DEVELOPMENT -pm2 start npm --name Guardians -- start --env STAGING -pm2 start npm --name Guardians -- start --env PRODUCTION
#monitor pm2 pm2 monit
-pm2 list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model Users { | |
id String @id @default(auto()) @map("_id") @db.ObjectId | |
name String | |
applicant Applicant? | |
reviewed_applicant Applicant[] @relation("ParentChild") | |
} | |
model Applicant { | |
id String @id @default(auto()) @map("_id") @db.ObjectId | |
status Boolean |