use oparl_types::{DateTime, Name, Url};
use uuid::Uuid;
use crate::{AgendaItem, MeetingState};
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Meeting {
pub id: Uuid,
pub created: DateTime,
pub modified: DateTime,
pub body: Uuid,
pub organization: Uuid,
pub start: Option<DateTime>,
pub end: Option<DateTime>,
pub name: Option<String>,
pub meeting_state: MeetingState,
pub agenda_item: Vec<AgendaItem>,
pub keyword: Vec<String>,
pub license: Option<Url>,
pub web: Option<Url>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct NewMeeting {
pub body_id: Uuid,
pub organization_id: Uuid,
pub start: Option<DateTime>,
pub end: Option<DateTime>,
pub name: Option<Name>,
pub state: MeetingState,
pub keyword: Option<Vec<String>>,
pub license: Option<Url>,
pub web: Option<Url>,
}