added users admin page + publicId
This commit is contained in:
1
packages/database/prisma/customs.sql
Normal file
1
packages/database/prisma/customs.sql
Normal file
@@ -0,0 +1 @@
|
||||
CREATE SEQUENCE user_custom_id_seq START 1;
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- A unique constraint covering the columns `[publicId]` on the table `users` will be added. If there are existing duplicate values, this will fail.
|
||||
- Added the required column `publicId` to the `users` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "users" ADD COLUMN "publicId" TEXT NOT NULL;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "users_publicId_key" ON "users"("publicId");
|
||||
@@ -1,5 +1,6 @@
|
||||
model User {
|
||||
id String @id @default(uuid())
|
||||
publicId String @unique
|
||||
firstname String
|
||||
lastname String
|
||||
email String @unique
|
||||
|
||||
Reference in New Issue
Block a user