feat(init::schema) init database schema

This commit is contained in:
lumither committed 2024-11-20 21:38:36 -08:00
1 parent 7f400470ff
commit 99a19d8d9e
6 files changed
+71 -13

No files matched your search

+3 -1
View File
@@ -1,6 +1,7 @@
mod cron;
mod database;
pub mod logger;
mod schema;
pub mod server;
use macros::panic_with_log;
@@ -39,9 +40,10 @@ pub async fn start() {
};
// schema init
schema::init(&db_pool).await;
// load cron task
cron::start();
cron::start(db_pool.clone());
// api serve
match server::start(db_pool).await {