generated from corrad-software/corrad-af-2024
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:
parent
b8373092f3
commit
52a080e69a
1638
package-lock.json
generated
1638
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -102,5 +102,8 @@
|
||||
"date-fns": "^2.30.0",
|
||||
"fuse.js": "^7.0.0",
|
||||
"joi": "^17.11.0"
|
||||
},
|
||||
"overrides": {
|
||||
"luxon": "^3.1.0"
|
||||
}
|
||||
}
|
||||
|
@ -41,11 +41,7 @@ model department {
|
||||
org_id Int
|
||||
cabinets cabinets[]
|
||||
organization organization @relation(fields: [org_id], references: [org_id], onDelete: Cascade, onUpdate: NoAction, map: "department_organization_FK")
|
||||
<<<<<<< HEAD
|
||||
user user[]
|
||||
=======
|
||||
users sys_user[]
|
||||
>>>>>>> d4880c491e3491be4f09fbfbc0e0a9f8b5cfb1b8
|
||||
|
||||
@@index([org_id], map: "department_organization_FK")
|
||||
}
|
||||
@ -54,14 +50,17 @@ model cabinets {
|
||||
cb_id Int @id @default(autoincrement())
|
||||
cb_name String @unique(map: "cabinet_master_unique") @db.VarChar(255)
|
||||
cb_parent_id Int?
|
||||
cb_private Int? @default(0)
|
||||
cb_owner Int?
|
||||
cb_sector String @db.VarChar(7)
|
||||
dp_id Int?
|
||||
userID Int?
|
||||
created_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")
|
||||
user user? @relation(fields: [userID], references: [userID], onDelete: NoAction, onUpdate: NoAction, map: "cabinets_user_FK")
|
||||
|
||||
@@index([dp_id], map: "cabinets_department_FK")
|
||||
@@index([userID], map: "cabinets_user_FK")
|
||||
}
|
||||
|
||||
model role {
|
||||
@ -83,10 +82,15 @@ model user {
|
||||
userEmail String? @db.VarChar(255)
|
||||
userPhone String? @db.VarChar(255)
|
||||
userStatus String? @db.VarChar(255)
|
||||
dp_id Int?
|
||||
userCreatedDate DateTime? @db.DateTime(0)
|
||||
userModifiedDate DateTime? @db.DateTime(0)
|
||||
audit audit[]
|
||||
cabinets cabinets[]
|
||||
department department? @relation(fields: [dp_id], references: [dp_id], onDelete: NoAction, onUpdate: NoAction, map: "user_department_FK")
|
||||
userrole userrole[]
|
||||
|
||||
@@index([dp_id], map: "user_department_FK")
|
||||
}
|
||||
|
||||
model userrole {
|
||||
|
14
server/api/dms/folder.get.js
Normal file
14
server/api/dms/folder.get.js
Normal 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
|
||||
};
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user