Skip to content

Commit

Permalink
Add automatic prisma formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbabcock committed Sep 3, 2022
1 parent b1713dc commit de1f362
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/package.json
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "rm -rf out && next build && next export && find out/ -size +1M -name '*.bin' -exec rm {} \\;",
"format": "prettier --write 'src' 'workers-site' 'tests' '!workers-site/worker'",
"format": "prettier --write 'src' 'workers-site' 'tests' '!workers-site/worker' && prisma format",
"lint": "next lint --dir src",
"test": "jest",
"start": "next start"
Expand Down
12 changes: 6 additions & 6 deletions src/app/prisma/schema.prisma
Expand Up @@ -67,26 +67,26 @@ model User {
}

enum Account {
FREE @map("free")
FREE @map("free")
ADMIN @map("admin")
@@map("account")
}

enum GameDifficulty {
VERY_EASY @map("very_easy")
EASY @map("easy")
NORMAL @map("normal")
HARD @map("hard")
EASY @map("easy")
NORMAL @map("normal")
HARD @map("hard")
VERY_HARD @map("very_hard")
@@map("game_difficulty")
}

enum SaveEncoding {
TEXT @map("text")
TEXT @map("text")
TEXTZIP @map("textzip")
BINZIP @map("binzip")
BINZIP @map("binzip")
@@map("save_encoding")
}

0 comments on commit de1f362

Please sign in to comment.