use chrono::{DateTime, FixedOffset};
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "todo_items")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: String,
pub title: String,
#[sea_orm(column_name = "note")]
pub note: String,
pub status: String,
pub priority: i32,
pub created_at: DateTime<FixedOffset>,
pub updated_at: DateTime<FixedOffset>,
pub completed_at: Option<DateTime<FixedOffset>>,
pub deleted_at: Option<DateTime<FixedOffset>>,
}
impl ActiveModelBehavior for ActiveModel {}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}