feat/blig edit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `slug` to the `Blog` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "Blog" ADD COLUMN "slug" TEXT NOT NULL;
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- A unique constraint covering the columns `[slug]` on the table `Blog` will be added. If there are existing duplicate values, this will fail.
|
||||
|
||||
*/
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "Blog_slug_key" ON "Blog"("slug");
|
||||
@@ -93,6 +93,7 @@ model Blog {
|
||||
image String?
|
||||
content Json
|
||||
isActive Boolean @default(true)
|
||||
slug String @unique
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
@@ -149,20 +150,20 @@ model Appointment {
|
||||
}
|
||||
|
||||
model Inquiry {
|
||||
id Int @id @default(autoincrement())
|
||||
id Int @id @default(autoincrement())
|
||||
|
||||
fullName String
|
||||
number String
|
||||
emailId String?
|
||||
subject String?
|
||||
message String?
|
||||
fullName String
|
||||
number String
|
||||
emailId String?
|
||||
subject String?
|
||||
message String?
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model AcademicsResearch {
|
||||
id Int @id @default(autoincrement())
|
||||
id Int @id @default(autoincrement())
|
||||
|
||||
fullName String
|
||||
number String
|
||||
@@ -171,24 +172,23 @@ model AcademicsResearch {
|
||||
courseName String?
|
||||
message String?
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
|
||||
model EmailConfig {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
email String
|
||||
type String
|
||||
isActive Boolean @default(true)
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
email String
|
||||
type String
|
||||
isActive Boolean @default(true)
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model NewsMedia {
|
||||
id Int @id @default(autoincrement())
|
||||
id Int @id @default(autoincrement())
|
||||
|
||||
headline String
|
||||
content String?
|
||||
@@ -197,8 +197,8 @@ model NewsMedia {
|
||||
author String?
|
||||
date DateTime?
|
||||
|
||||
isActive Boolean @default(true)
|
||||
isActive Boolean @default(true)
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user