database persistence in progress

This commit is contained in:
2026-02-05 23:22:00 +01:00
parent a398911527
commit f7e55536ab
17 changed files with 3600 additions and 22 deletions

18
src/model/alarm.rs Normal file
View File

@@ -0,0 +1,18 @@
//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.19
use sea_orm::entity::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "alarm")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub time: DateTime,
pub enabled: bool,
pub title: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}