Refactor requests, refactor users, add home dashboard

This commit is contained in:
2026-01-02 00:02:24 +01:00
parent 36fb2358dd
commit 4b308a5c21
20 changed files with 761 additions and 319 deletions

View File

@ -0,0 +1,9 @@
/*
Warnings:
- You are about to drop the column `sortIndex` on the `CommissionRequest` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "CommissionRequest" DROP COLUMN "sortIndex",
ADD COLUMN "index" SERIAL NOT NULL;

View File

@ -353,14 +353,14 @@ model CommissionTypeCustomInput {
model CommissionRequest {
id String @id @default(cuid())
index Int @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
sortIndex Int @default(0)
customerName String
customerEmail String
message String
status String @default("NEW") // NEW | REVIEWING | ACCEPTED | REJECTED | SPAM
status String @default("NEW")
customerSocials String?
ipAddress String?