Add WIP relays to database and api

This commit is contained in:
Tobias Reisinger 2023-11-26 00:54:03 +01:00
parent 4e3df272c3
commit 734f8b291c
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
14 changed files with 387 additions and 88 deletions
emgauwa-lib/src/db

View file

@ -10,14 +10,16 @@ use crate::db::types::ScheduleUid;
pub mod errors;
mod model_utils;
mod models;
mod schedules;
pub mod tag;
mod tag;
pub mod types;
mod controllers;
mod relays;
pub use controllers::Controller;
pub use relays::Relay;
pub use schedules::{Periods, Schedule};
pub use tag::Tag;
static MIGRATOR: Migrator = sqlx::migrate!("../migrations"); // defaults to "./migrations"