Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/44: turn github and email unique in User model #45

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
yarn tsc
yarn lint
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ CREATE UNIQUE INDEX "Event_name_key" ON "Event"("name");

-- CreateIndex
CREATE UNIQUE INDEX "Event_slug_key" ON "Event"("slug");

-- CreateIndex
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");

-- CreateIndex
CREATE UNIQUE INDEX "User_github_key" ON "User"("github");
4 changes: 2 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ model Event {
model User {
id String @id @default(uuid())
name String
email String
github String
email String @unique
github String @unique
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
play Play[]
Expand Down
80 changes: 40 additions & 40 deletions prisma/seed/participants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,201 +8,201 @@ export const participants: Participant[] = [
{
name: "Eal Nottle",
email: "[email protected]",
github: "afpp3",
github: "enottle0",
},
{
name: "Sibyl Spence",
email: "[email protected]",
github: "fdaciuk",
github: "sspence1",
},
{
name: "Shari Coan",
email: "[email protected]",
github: "afpp3",
github: "scoan2",
},
{
name: "Sheena Bend",
email: "[email protected]",
github: "fdaciuk",
github: "sbend3",
},
{
name: "Bartlet Boote",
email: "[email protected]",
github: "afpp3",
github: "bboote4",
},
{
name: "Jourdan Kemson",
email: "[email protected]",
github: "fdaciuk",
github: "jkemson5",
},
{
name: "Rudy McGoon",
email: "[email protected]",
github: "afpp3",
github: "rmcgoon6",
},
{
name: "Katalin Grief",
email: "[email protected]",
github: "fdaciuk",
github: "kgrief7",
},
{
name: "Tuckie Hartzenberg",
email: "[email protected]",
github: "afpp3",
github: "thartzenberg8",
},
{
name: "Gabby Sivior",
email: "[email protected]",
github: "fdaciuk",
github: "gsivior9",
},
{
name: "Bliss Madgwich",
email: "[email protected]",
github: "afpp3",
github: "bmadgwicha",
},
{
name: "Shaylah Wetherell",
email: "[email protected]",
github: "fdaciuk",
github: "swetherellb",
},
{
name: "Barnie Chsteney",
email: "[email protected]",
github: "afpp3",
github: "bchsteneyc",
},
{
name: "Orlan Beamond",
email: "[email protected]",
github: "fdaciuk",
github: "obeamondd",
},
{
name: "Jacinta McKevin",
email: "[email protected]",
github: "afpp3",
github: "jmckevine",
},
{
name: "Hasheem Teers",
email: "[email protected]",
github: "fdaciuk",
github: "hteersf",
},
{
name: "Wernher Grim",
email: "[email protected]",
github: "afpp3",
github: "wgrimg",
},
{
name: "Nelia Tambling",
email: "[email protected]",
github: "fdaciuk",
github: "ntamblingh",
},
{
name: "Tore Cumberlidge",
email: "[email protected]",
github: "afpp3",
github: "tcumberlidgei",
},
{
name: "Carmelle Padson",
email: "[email protected]",
github: "fdaciuk",
github: "cpadsonj",
},
{
name: "Prent Stannett",
email: "[email protected]",
github: "afpp3",
github: "pstannettk",
},
{
name: "Jennine Cundict",
email: "[email protected]",
github: "fdaciuk",
github: "jcundictl",
},
{
name: "Micaela Ebbotts",
email: "[email protected]",
github: "afpp3",
github: "mebbottsm",
},
{
name: "Case Wilsher",
email: "[email protected]",
github: "fdaciuk",
github: "cwilshern",
},
{
name: "Rubia Nielson",
email: "[email protected]",
github: "afpp3",
github: "rnielsono",
},
{
name: "Darn Agget",
email: "[email protected]",
github: "fdaciuk",
github: "daggetp",
},
{
name: "Lottie Gilligan",
email: "[email protected]",
github: "afpp3",
github: "lgilliganq",
},
{
name: "Brucie Pollock",
email: "[email protected]",
github: "fdaciuk",
github: "bpollockr",
},
{
name: "Laina Cripin",
email: "[email protected]",
github: "afpp3",
github: "lcripins",
},
{
name: "Garth Padmore",
email: "[email protected]",
github: "fdaciuk",
github: "gpadmoret",
},
{
name: "Madlin Boler",
email: "[email protected]",
github: "afpp3",
github: "mboleru",
},
{
name: "Timmy Cobden",
email: "[email protected]",
github: "fdaciuk",
github: "tcobdenv",
},
{
name: "Ingaborg Ashfold",
email: "[email protected]",
github: "afpp3",
github: "iashfoldw",
},
{
name: "Mitzi Rollett",
email: "[email protected]",
github: "fdaciuk",
github: "mrollettx",
},
{
name: "Keriann Spellworth",
email: "[email protected]",
github: "afpp3",
github: "kspellworthy",
},
{
name: "Donovan Hucquart",
email: "[email protected]",
github: "fdaciuk",
github: "dhucquartz",
},
{
name: "Saba Klaassens",
email: "[email protected]",
github: "afpp3",
github: "sklaassens10",
},
{
name: "Niki Penella",
email: "[email protected]",
github: "fdaciuk",
github: "npenella11",
},
{
name: "Gerda Moxsom",
email: "[email protected]",
github: "afpp3",
github: "gmoxsom12",
},
{
name: "Dion Jakubiak",
email: "[email protected]",
github: "fdaciuk",
github: "djakubiak13",
},
]
Loading