2023-04-02 17:06:16 +00:00
|
|
|
pub use sea_orm_migration::prelude::*;
|
|
|
|
|
|
|
|
pub struct Migrator;
|
|
|
|
|
|
|
|
pub mod m20230402_162601_create_table_users;
|
2023-04-02 19:25:52 +00:00
|
|
|
pub mod m20230402_183515_create_table_magic_links;
|
2023-04-02 23:12:08 +00:00
|
|
|
pub mod m20230402_213712_create_table_session_tokens;
|
2023-04-02 17:06:16 +00:00
|
|
|
|
|
|
|
#[async_trait::async_trait]
|
|
|
|
impl MigratorTrait for Migrator {
|
|
|
|
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
|
|
|
vec![
|
2023-04-02 19:25:52 +00:00
|
|
|
Box::new(m20230402_162601_create_table_users::Migration),
|
|
|
|
Box::new(m20230402_183515_create_table_magic_links::Migration),
|
2023-04-02 23:12:08 +00:00
|
|
|
Box::new(m20230402_213712_create_table_session_tokens::Migration),
|
2023-04-02 17:06:16 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|