Build user pages

This commit is contained in:
NeilClack
2026-02-25 13:19:26 -06:00
parent 12190d01dc
commit cc51f40591
53 changed files with 5204 additions and 4817 deletions
@@ -0,0 +1,60 @@
/*
Warnings:
- You are about to drop the `Affirmation` table. If the table is not empty, all the data it contains will be lost.
- You are about to drop the `AffirmationCategory` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropForeignKey
ALTER TABLE "Affirmation" DROP CONSTRAINT "Affirmation_categoryId_fkey";
-- DropForeignKey
ALTER TABLE "Affirmation" DROP CONSTRAINT "Affirmation_solfeggioFrequencyId_fkey";
-- DropForeignKey
ALTER TABLE "AffirmationCategory" DROP CONSTRAINT "AffirmationCategory_parentId_fkey";
-- DropTable
DROP TABLE "Affirmation";
-- DropTable
DROP TABLE "AffirmationCategory";
-- CreateTable
CREATE TABLE "Proclamation" (
"id" TEXT NOT NULL,
"name" TEXT NOT NULL,
"content" TEXT NOT NULL,
"solfeggioFrequencyId" INTEGER NOT NULL,
"categoryId" INTEGER NOT NULL,
"price" DOUBLE PRECISION NOT NULL DEFAULT 0.99,
CONSTRAINT "Proclamation_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "ProclamationCategory" (
"id" SERIAL NOT NULL,
"name" TEXT NOT NULL,
"parentId" INTEGER,
CONSTRAINT "ProclamationCategory_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "Proclamation_name_key" ON "Proclamation"("name");
-- CreateIndex
CREATE UNIQUE INDEX "Proclamation_content_key" ON "Proclamation"("content");
-- CreateIndex
CREATE UNIQUE INDEX "ProclamationCategory_name_key" ON "ProclamationCategory"("name");
-- AddForeignKey
ALTER TABLE "Proclamation" ADD CONSTRAINT "Proclamation_solfeggioFrequencyId_fkey" FOREIGN KEY ("solfeggioFrequencyId") REFERENCES "SolfeggioFrequency"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "Proclamation" ADD CONSTRAINT "Proclamation_categoryId_fkey" FOREIGN KEY ("categoryId") REFERENCES "ProclamationCategory"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "ProclamationCategory" ADD CONSTRAINT "ProclamationCategory_parentId_fkey" FOREIGN KEY ("parentId") REFERENCES "ProclamationCategory"("id") ON DELETE SET NULL ON UPDATE CASCADE;
+18 -18
View File
@@ -109,31 +109,31 @@ model Verification {
@@map("verification")
}
model Affirmation {
id String @id @default(uuid())
name String @unique
content String @unique
model Proclamation {
id String @id @default(uuid())
name String @unique
content String @unique
solfeggioFrequencyId Int
solfeggioFrequency SolfeggioFrequency @relation(fields: [solfeggioFrequencyId], references: [id])
solfeggioFrequency SolfeggioFrequency @relation(fields: [solfeggioFrequencyId], references: [id])
categoryId Int
category AffirmationCategory @relation(fields: [categoryId], references: [id])
price Float @default(0.99)
category ProclamationCategory @relation(fields: [categoryId], references: [id])
price Float @default(0.99)
}
model SolfeggioFrequency {
id Int @id @default(autoincrement())
name String @unique
value Float @unique
affirmations Affirmation[]
id Int @id @default(autoincrement())
name String @unique
value Float @unique
proclamations Proclamation[]
}
model AffirmationCategory {
id Int @id @default(autoincrement())
name String @unique
parentId Int?
parent AffirmationCategory? @relation("CategoryHierarchy", fields: [parentId], references: [id])
children AffirmationCategory[] @relation("CategoryHierarchy")
affirmations Affirmation[]
model ProclamationCategory {
id Int @id @default(autoincrement())
name String @unique
parentId Int?
parent ProclamationCategory? @relation("CategoryHierarchy", fields: [parentId], references: [id])
children ProclamationCategory[] @relation("CategoryHierarchy")
proclamations Proclamation[]
}
model LicenseKey {