chore: add migration

This commit is contained in:
Methapon2001 2024-04-17 11:22:12 +07:00
parent ee1569e529
commit ddb2155c44
3 changed files with 20 additions and 3 deletions

View file

@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `keycloakId` on the `User` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "User" DROP COLUMN "keycloakId";

View file

@ -0,0 +1,11 @@
/*
Warnings:
- You are about to drop the column `lineId` on the `BranchContact` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Branch" ADD COLUMN "lineId" TEXT;
-- AlterTable
ALTER TABLE "BranchContact" DROP COLUMN "lineId";

View file

@ -93,6 +93,7 @@ model Branch {
email String
telephoneNo String
lineId String?
latitude String
longitude String
@ -117,7 +118,6 @@ model Branch {
model BranchContact {
id String @id @default(uuid())
telephoneNo String
lineId String
branch Branch @relation(fields: [branchId], references: [id], onDelete: Cascade)
branchId String
@ -153,8 +153,6 @@ enum UserType {
model User {
id String @id @default(uuid())
keycloakId String
code String?
firstName String
firstNameEN String