Skip to content

Commit

Permalink
chore: generate first prisma migration
Browse files Browse the repository at this point in the history
  • Loading branch information
bacali95 committed Sep 13, 2024
1 parent fd56cd4 commit d8c95b7
Show file tree
Hide file tree
Showing 6 changed files with 552 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DATABASE_URL="postgresql://tun-judge:tun-judge@localhost:5432/tun-judge?schema=public&connection_limit=100"
DATABASE_DIRECT_URL="postgresql://tun-judge:tun-judge@localhost:5432/tun-judge"

SESSION_SECRET="secret"

REDIS_URL="redis://localhost:6379"

LOG_LEVEL="debug"

SYSTEM_STORAGE_DIRECTORY_PATH=./dist/files-storage/tun-judge
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"license": "MIT",
"private": true,
"packageManager": "yarn@4.4.1",
"scripts": {
"compose:dev": "docker-compose -f docker-compose.dev.yml up -d",
"prisma:generate": "zenstack generate --schema zenstack/schema.zmodel",
"prisma:migrate:dev": "yarn prisma:generate && prisma migrate dev --schema zenstack/prisma/schema.prisma",
"prisma:migrate:deploy": "yarn prisma:generate && prisma migrate deploy --schema zenstack/prisma/schema.prisma"
},
"dependencies": {
"@nestjs/common": "^10.0.2",
"@nestjs/config": "^3.2.3",
Expand Down
Loading

0 comments on commit d8c95b7

Please sign in to comment.