feat: accreditation crud
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
-- CreateEnum
|
||||
CREATE TYPE "AccreditationType" AS ENUM ('ACCREDITATION', 'CERTIFICATION');
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "Accreditation" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"title" TEXT NOT NULL,
|
||||
"type" "AccreditationType" NOT NULL,
|
||||
"logo" TEXT,
|
||||
"image" TEXT,
|
||||
"description" TEXT,
|
||||
"sortOrder" INTEGER NOT NULL DEFAULT 1000,
|
||||
"isActive" BOOLEAN NOT NULL DEFAULT true,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "Accreditation_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
@@ -356,4 +356,25 @@ model InsurancePartner {
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model Accreditation {
|
||||
id Int @id @default(autoincrement())
|
||||
|
||||
title String
|
||||
type AccreditationType
|
||||
logo String?
|
||||
image String?
|
||||
description String? @db.Text
|
||||
|
||||
sortOrder Int @default(1000)
|
||||
isActive Boolean @default(true)
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
enum AccreditationType {
|
||||
ACCREDITATION
|
||||
CERTIFICATION
|
||||
}
|
||||
Reference in New Issue
Block a user