Skip to content

Commit

Permalink
feat(prisma): ⚡ Remove name property from user, migrated to minecraft…
Browse files Browse the repository at this point in the history
…. Add username property which syncs with kc username
  • Loading branch information
Nudelsuppe42 committed Aug 21, 2024
1 parent 16bcbf7 commit 6ee7c7f
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 117 deletions.
8 changes: 8 additions & 0 deletions prisma/migrations/20240821103646_remove_name/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `name` on the `User` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "User" DROP COLUMN "name";
2 changes: 2 additions & 0 deletions prisma/migrations/20240821103814_add_username/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ADD COLUMN "username" TEXT;
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ model User {
ssoId String @unique
discordId String?
avatar String?
name String?
username String?
minecraft String?
reviewed Application[] @relation("reviewer")
applications Application[] @relation("user")
Expand Down
Loading

0 comments on commit 6ee7c7f

Please sign in to comment.