chore: update migration
This commit is contained in:
parent
638c278f20
commit
b12babdc09
2 changed files with 41 additions and 2 deletions
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `updatedAt` to the `CustomerBranchCitizen` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `updatedAt` to the `CustomerBranchCommercialRegis` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `updatedAt` to the `CustomerBranchHouseRegis` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `updatedAt` to the `CustomerBranchPoa` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `updatedAt` to the `CustomerBranchVatRegis` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "CustomerBranchCitizen" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "CustomerBranchCommercialRegis" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "CustomerBranchHouseRegis" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "CustomerBranchPoa" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "CustomerBranchVatRegis" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL;
|
||||
|
|
@ -558,10 +558,14 @@ model CustomerBranchCitizen {
|
|||
districtId String?
|
||||
subDistrict SubDistrict? @relation(fields: [subDistrictId], references: [id], onDelete: SetNull)
|
||||
subDistrictId String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model CustomerBranchPoa {
|
||||
id String @id @default(cuid())
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model CustomerBranchHouseRegis {
|
||||
|
|
@ -610,6 +614,8 @@ model CustomerBranchHouseRegis {
|
|||
fatherFullNameEN String?
|
||||
fatherCitizenId String
|
||||
fatherNationality String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
enum CommercialType {
|
||||
|
|
@ -627,10 +633,14 @@ model CustomerBranchCommercialRegis {
|
|||
fullNameEN String
|
||||
registrationDate String
|
||||
romanLetter String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model CustomerBranchVatRegis {
|
||||
id String @id @default(cuid())
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model Employee {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue