clickup_ical_sync/
models.rs

1/// This file contains the models for the database tables. The models are used by Diesel to generate the SQL queries.
2/// Make sure to create a new diesel migration after changing the models!!!!!
3use diesel::prelude::*;
4
5#[derive(Queryable, Selectable)]
6#[diesel(table_name = crate::schema::clickup_ical_mapping)]
7#[diesel(check_for_backend(diesel::pg::Pg))]
8#[derive(Debug)]
9pub struct CalendarMapping {
10    pub mapping_id: i32,
11    pub clickup_id: String,
12    pub calendar_id: String,
13}