added users admin page + publicId

This commit is contained in:
PxlLoewe
2025-02-16 12:23:31 +01:00
parent 56a695c090
commit 586a747486
8 changed files with 77 additions and 3 deletions

View File

@@ -0,0 +1 @@
CREATE SEQUENCE user_custom_id_seq START 1;

View File

@@ -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");

View File

@@ -1,5 +1,6 @@
model User {
id String @id @default(uuid())
publicId String @unique
firstname String
lastname String
email String @unique