Refactor event status handling: Remove EventStatus enum from the Prisma schema and update related API routes and UI components to calculate event status dynamically based on event date. This change simplifies event management and enhances data integrity by ensuring status is always derived from the date.
This commit is contained in:
@@ -856,7 +856,6 @@ export const EventScalarFieldEnum = {
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
type: 'type',
|
||||
status: 'status',
|
||||
room: 'room',
|
||||
time: 'time',
|
||||
maxPlaces: 'maxPlaces',
|
||||
@@ -953,13 +952,6 @@ export type EnumEventTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$Prisma
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'EventStatus'
|
||||
*/
|
||||
export type EnumEventStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'EventStatus'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Float'
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user