model spec
This commit is contained in:
22
specs/models/mcc/calendar.v
Normal file
22
specs/models/mcc/calendar.v
Normal file
@@ -0,0 +1,22 @@
|
||||
module biz
|
||||
import base
|
||||
|
||||
import freeflowuniverse.herolib.data.ourtime
|
||||
|
||||
// CalendarEvent represents a calendar event with all its properties
|
||||
pub struct CalendarEvent {
|
||||
base.Base
|
||||
pub mut:
|
||||
title string // Event title
|
||||
description string // Event details
|
||||
location string // Event location
|
||||
start_time ourtime.OurTime
|
||||
end_time ourtime.OurTime // End time
|
||||
all_day bool // True if it's an all-day event
|
||||
recurrence string // RFC 5545 Recurrence Rule (e.g., "FREQ=DAILY;COUNT=10")
|
||||
attendees []u32 // List of contact id's
|
||||
organizer u32 // The user (see circle) who created the event
|
||||
status string // "CONFIRMED", "CANCELLED", "TENTATIVE" //TODO: make enum
|
||||
color string // User-friendly color categorization, e.g., "red", "blue" //TODO: make enum
|
||||
reminder []ourtime.OurTime // Reminder time before the event
|
||||
}
|
Reference in New Issue
Block a user