feat: init book handler
This commit is contained in:
22
migration/src/lib.rs
Normal file
22
migration/src/lib.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
pub use sea_orm_migration::prelude::*;
|
||||
|
||||
mod m20250525_000001_create_ledger_table_category;
|
||||
mod m20250525_000002_create_ledger_table_book;
|
||||
mod m20250525_000003_create_ledger_table_tag;
|
||||
mod m20250525_000004_create_ledger_table_account;
|
||||
mod m20250525_000005_create_ledger_table_transaction;
|
||||
|
||||
pub struct Migrator;
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl MigratorTrait for Migrator {
|
||||
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
||||
vec![
|
||||
Box::new(m20250525_000001_create_ledger_table_category::Migration),
|
||||
Box::new(m20250525_000002_create_ledger_table_book::Migration),
|
||||
Box::new(m20250525_000003_create_ledger_table_tag::Migration),
|
||||
Box::new(m20250525_000004_create_ledger_table_account::Migration),
|
||||
Box::new(m20250525_000005_create_ledger_table_transaction::Migration),
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user