84 lines
3.1 KiB
Markdown
84 lines
3.1 KiB
Markdown
# Generated Model Code
|
|
|
|
This README documents the automatically generated code for the data models.
|
|
|
|
## Table of Contents
|
|
|
|
- [Meeting](#meeting)
|
|
- [Task](#task)
|
|
|
|
## Meeting
|
|
|
|
### Fields
|
|
- `id`: String
|
|
- `title`: String
|
|
- `description`: String
|
|
- `participants`: Vec<String>
|
|
- `start`: String
|
|
|
|
### Builder Methods
|
|
- `with_title(value)`: Sets the title field (String)
|
|
- `with_description(value)`: Sets the description field (String)
|
|
- `with_participants(value)`: Sets the participants field (Vec<String>)
|
|
- `with_start(value)`: Sets the start field (String)
|
|
- `meeting()`: Creates a new Meeting builder
|
|
- `get_fields()`: Returns a Map of all set fields
|
|
|
|
### Database Operations
|
|
- `create_meeting_typed(fields)`: Creates a new Meeting in the database
|
|
- `find_meeting_by_id_typed(id)`: Finds a Meeting by ID
|
|
- `update_meeting_typed(id, fields)`: Updates a Meeting in the database
|
|
- `delete_meeting_typed(id)`: Deletes a Meeting from the database
|
|
- `list_meetings_typed()`: Lists all Meetings in the database
|
|
- `filter_meetings_typed(query)`: Filters Meetings based on query parameters
|
|
- `find_meeting_typed(query)`: Finds a specific Meeting based on query parameters
|
|
|
|
### Rhai Integration
|
|
- `create_meeting(fields)`: Creates a new Meeting in the database
|
|
- `find_meeting_by_id(id)`: Finds a Meeting by ID
|
|
- `update_meeting(id, fields)`: Updates a Meeting in the database
|
|
- `delete_meeting(id)`: Deletes a Meeting from the database
|
|
- `list_meetings()`: Lists all Meetings in the database
|
|
- `filter_meetings(query)`: Filters Meetings based on query parameters
|
|
- `find_meeting(query)`: Finds a specific Meeting based on query parameters
|
|
|
|
## Task
|
|
|
|
### Fields
|
|
- `id`: String
|
|
- `title`: String
|
|
- `description`: String
|
|
- `assignee`: String
|
|
- `due_date`: String
|
|
- `priority`: String
|
|
- `completed`: bool
|
|
|
|
### Builder Methods
|
|
- `with_title(value)`: Sets the title field (String)
|
|
- `with_description(value)`: Sets the description field (String)
|
|
- `with_assignee(value)`: Sets the assignee field (String)
|
|
- `with_due_date(value)`: Sets the due_date field (String)
|
|
- `with_priority(value)`: Sets the priority field (String)
|
|
- `with_completed(value)`: Sets the completed field (bool)
|
|
- `task()`: Creates a new Task builder
|
|
- `get_fields()`: Returns a Map of all set fields
|
|
|
|
### Database Operations
|
|
- `create_task_typed(fields)`: Creates a new Task in the database
|
|
- `find_task_by_id_typed(id)`: Finds a Task by ID
|
|
- `update_task_typed(id, fields)`: Updates a Task in the database
|
|
- `delete_task_typed(id)`: Deletes a Task from the database
|
|
- `list_tasks_typed()`: Lists all Tasks in the database
|
|
- `filter_tasks_typed(query)`: Filters Tasks based on query parameters
|
|
- `find_task_typed(query)`: Finds a specific Task based on query parameters
|
|
|
|
### Rhai Integration
|
|
- `create_task(fields)`: Creates a new Task in the database
|
|
- `find_task_by_id(id)`: Finds a Task by ID
|
|
- `update_task(id, fields)`: Updates a Task in the database
|
|
- `delete_task(id)`: Deletes a Task from the database
|
|
- `list_tasks()`: Lists all Tasks in the database
|
|
- `filter_tasks(query)`: Filters Tasks based on query parameters
|
|
- `find_task(query)`: Finds a specific Task based on query parameters
|
|
|