fix: wrong understanding of system

This commit is contained in:
Methapon2001 2024-06-13 15:47:11 +07:00
parent ea10a5c3d9
commit 96618c6e06
5 changed files with 36 additions and 60 deletions

View file

@ -0,0 +1,14 @@
/*
Warnings:
- You are about to drop the column `attributes` on the `Product` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Product" DROP COLUMN "attributes";
-- AlterTable
ALTER TABLE "Service" ADD COLUMN "attributes" JSONB;
-- AlterTable
ALTER TABLE "Work" ADD COLUMN "attributes" JSONB;

View file

@ -537,9 +537,10 @@ model EmployeeOtherInfo {
model Service {
id String @id @default(uuid())
code String
name String
detail String
code String
name String
detail String
attributes Json?
status Status @default(CREATED)
@ -554,7 +555,8 @@ model Service {
model Work {
id String @id @default(uuid())
name String
name String
attributes Json?
status Status @default(CREATED)
@ -655,8 +657,6 @@ model Product {
workProduct WorkProduct[]
attributes Json?
createdBy String?
createdAt DateTime @default(now())
updateBy String?