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-03 00:57:33 +00:00
|
|
|
pub mod m20230402_232316_create_table_organizations;
|
|
|
|
pub mod m20230402_233043_create_table_api_keys;
|
|
|
|
pub mod m20230402_233047_create_table_api_keys_scopes;
|
2023-04-03 20:42:52 +00:00
|
|
|
pub mod m20230402_234025_create_table_totp_authenticators;
|
|
|
|
pub mod m20230403_002256_create_table_auth_tokens;
|
|
|
|
pub mod m20230403_142517_create_table_signing_cas;
|
|
|
|
pub mod m20230403_173431_create_table_networks;
|
2023-04-04 13:44:19 +00:00
|
|
|
mod m20230404_133809_create_table_roles;
|
|
|
|
mod m20230404_133813_create_table_firewall_rules;
|
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-03 00:57:33 +00:00
|
|
|
Box::new(m20230402_232316_create_table_organizations::Migration),
|
|
|
|
Box::new(m20230402_233043_create_table_api_keys::Migration),
|
|
|
|
Box::new(m20230402_233047_create_table_api_keys_scopes::Migration),
|
|
|
|
Box::new(m20230402_234025_create_table_totp_authenticators::Migration),
|
|
|
|
Box::new(m20230403_002256_create_table_auth_tokens::Migration),
|
2023-04-03 17:28:12 +00:00
|
|
|
Box::new(m20230403_142517_create_table_signing_cas::Migration),
|
2023-04-03 20:42:52 +00:00
|
|
|
Box::new(m20230403_173431_create_table_networks::Migration),
|
2023-04-04 13:44:19 +00:00
|
|
|
Box::new(m20230404_133809_create_table_roles::Migration),
|
|
|
|
Box::new(m20230404_133813_create_table_firewall_rules::Migration),
|
2023-04-02 17:06:16 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|