Skip to content

Commit

Permalink
Add Prisma schema
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueleite42 committed Nov 24, 2023
1 parent 522a3f7 commit dc0e212
Show file tree
Hide file tree
Showing 6 changed files with 512 additions and 18 deletions.
20 changes: 3 additions & 17 deletions .env.docker.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,14 @@ AWS_ACCESS_KEY_ID=test
AWS_SECRET_ACCESS_KEY=test
AWS_DEFAULT_REGION=us-east-1

PUBLIC_BUCKET_NAME=las-musas-public
PRIVATE_BUCKET_NAME=las-musas-private

DISCORD_BOT_CLIENT_ID=
DISCORD_BOT_CLIENT_SECRET=
DISCORD_BOT_TOKEN=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

JWT_SECRET=foo

MONGODB_URL=mongodb://mongodb:27017
DB_DATABASE=database
DATABASE_URL=postgresql://user:password@host:port/database?schema=public

FRONT_URL=http://localhost:3001
BACKOFFICE_URL=http://localhost:3001
API_URL=http://localhost:3000
PUBLIC_FILES_URL=http://localhost:4566/las-musas-public

[email protected]

GERENCIANET_PIX_KEY=
GERENCIANET_CERTIFICATE_CERT=
GERENCIANET_CERTIFICATE_KEY=
GERENCIANET_CLIENT_ID=
GERENCIANET_CLIENT_SECRET=
GERENCIANET_URL=
20 changes: 20 additions & 0 deletions .github/workflows/prisma-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: prisma-validate

on:
pull_request:
branches:
- master
paths:
- '*.prisma'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install prisma
run: sudo yarn add -g prisma

- name: Validate prisma
run: prisma validate
2 changes: 1 addition & 1 deletion database.dbml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Ref: subscriptions.id < users_subscriptions.subscription_id [delete: restrict]

//
//
// Temrs of service\
// Temrs of service
//
//

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"jest": "^29.7.0",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"prisma": "^5.6.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
Expand Down
Loading

0 comments on commit dc0e212

Please sign in to comment.