chaging schemas for front

This commit is contained in:
José Salazar
2025-12-04 17:05:27 -05:00
parent ef88639463
commit cf18fdb16b
9 changed files with 43 additions and 31 deletions

View File

@@ -13,7 +13,7 @@ type ActivityLog @table(name: "activity_logs") {
title: String!
description: String!
activityType: ActivityType!
userId: UUID! # user_id (FK lógica a User.id)
userId: String! # user_id (FK lógica a User.id)
isRead: Boolean @default(expr: "false")
createdDate: Timestamp @default(expr: "request.time")
updatedDate: Timestamp @default(expr: "request.time")

View File

@@ -33,16 +33,16 @@ type Event @table(name: "events") {
recurrenceType: RecurrenceType
recurrenceStartDate: Timestamp
recurrenceEndDate: Timestamp
scatterDates: String
scatterDates: Any
multiDayStartDate: Timestamp
multiDayEndDate: Timestamp
bufferTimeBefore: Float @default(expr: "0")
bufferTimeAfter: Float @default(expr: "0")
conflictDetectionEnabled: Boolean @default(expr: "true")
detectedConflicts: String
detectedConflicts: Any
businessId: UUID!
businessName: String
vendorId: UUID
vendorId: String
vendorName: String
hub: String
eventLocation: String
@@ -50,8 +50,8 @@ type Event @table(name: "events") {
poReference: String
status: EventStatus!
date: Timestamp!
shifts: String
addons: String
shifts: Any
addons: Any
total: Float
clientName: String
clientEmail: String
@@ -59,7 +59,7 @@ type Event @table(name: "events") {
invoiceId: UUID
notes: String
requested: Int @default(expr: "0")
assignedStaff: String
assignedStaff: Any
createdDate: Timestamp @default(expr: "request.time")
updatedDate: Timestamp @default(expr: "request.time")
createdBy: String @default(expr: "auth.uid")

View File

@@ -11,7 +11,7 @@ enum TeamOwnerRole {
type Team @table(name: "team") {
id: UUID! @default(expr: "uuidV4()")
teamName: String!
ownerId: UUID!
ownerId: String!
ownerName: String!
ownerRole: TeamOwnerRole!
favoriteStaff: String