Initialized on Shariff system

Added overrides for Luxon to package.json. Luxon had conflicting dependencies when trying to perform `npm install`
This commit is contained in:
shb 2025-06-12 09:31:47 +08:00
parent b8373092f3
commit 52a080e69a
5 changed files with 2564 additions and 175 deletions

1638
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -102,5 +102,8 @@
"date-fns": "^2.30.0", "date-fns": "^2.30.0",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"joi": "^17.11.0" "joi": "^17.11.0"
},
"overrides": {
"luxon": "^3.1.0"
} }
} }

View File

@ -41,11 +41,7 @@ model department {
org_id Int org_id Int
cabinets cabinets[] cabinets cabinets[]
organization organization @relation(fields: [org_id], references: [org_id], onDelete: Cascade, onUpdate: NoAction, map: "department_organization_FK") organization organization @relation(fields: [org_id], references: [org_id], onDelete: Cascade, onUpdate: NoAction, map: "department_organization_FK")
<<<<<<< HEAD
user user[] user user[]
=======
users sys_user[]
>>>>>>> d4880c491e3491be4f09fbfbc0e0a9f8b5cfb1b8
@@index([org_id], map: "department_organization_FK") @@index([org_id], map: "department_organization_FK")
} }
@ -54,14 +50,17 @@ model cabinets {
cb_id Int @id @default(autoincrement()) cb_id Int @id @default(autoincrement())
cb_name String @unique(map: "cabinet_master_unique") @db.VarChar(255) cb_name String @unique(map: "cabinet_master_unique") @db.VarChar(255)
cb_parent_id Int? cb_parent_id Int?
cb_private Int? @default(0)
cb_owner Int? cb_owner Int?
cb_sector String @db.VarChar(7)
dp_id Int? dp_id Int?
userID Int?
created_at DateTime? @db.DateTime(0) created_at DateTime? @db.DateTime(0)
modified_at DateTime? @db.DateTime(0) modified_at DateTime? @db.DateTime(0)
department department? @relation(fields: [dp_id], references: [dp_id], onDelete: NoAction, onUpdate: NoAction, map: "cabinets_department_FK") department department? @relation(fields: [dp_id], references: [dp_id], onDelete: NoAction, onUpdate: NoAction, map: "cabinets_department_FK")
user user? @relation(fields: [userID], references: [userID], onDelete: NoAction, onUpdate: NoAction, map: "cabinets_user_FK")
@@index([dp_id], map: "cabinets_department_FK") @@index([dp_id], map: "cabinets_department_FK")
@@index([userID], map: "cabinets_user_FK")
} }
model role { model role {
@ -83,10 +82,15 @@ model user {
userEmail String? @db.VarChar(255) userEmail String? @db.VarChar(255)
userPhone String? @db.VarChar(255) userPhone String? @db.VarChar(255)
userStatus String? @db.VarChar(255) userStatus String? @db.VarChar(255)
dp_id Int?
userCreatedDate DateTime? @db.DateTime(0) userCreatedDate DateTime? @db.DateTime(0)
userModifiedDate DateTime? @db.DateTime(0) userModifiedDate DateTime? @db.DateTime(0)
audit audit[] audit audit[]
cabinets cabinets[]
department department? @relation(fields: [dp_id], references: [dp_id], onDelete: NoAction, onUpdate: NoAction, map: "user_department_FK")
userrole userrole[] userrole userrole[]
@@index([dp_id], map: "user_department_FK")
} }
model userrole { model userrole {

View File

@ -0,0 +1,14 @@
import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient();
export default defineEventHandler( async (event) => {
console.log("This is a test for a GET request to the backend");
const successMsg = "Hello from the backend";
return {
status: 200,
message: successMsg
};
});

1050
yarn.lock

File diff suppressed because it is too large Load Diff