mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-10-26 02:09:07 +00:00
26 lines
1.0 KiB
Rust
26 lines
1.0 KiB
Rust
|
|
use sea_orm_migration::prelude::*;
|
||
|
|
|
||
|
|
mod m20241201_000001_create_users_table;
|
||
|
|
mod m20241201_000002_create_certificates_table;
|
||
|
|
mod m20241201_000003_create_inbound_templates_table;
|
||
|
|
mod m20241201_000004_create_servers_table;
|
||
|
|
mod m20241201_000005_create_server_inbounds_table;
|
||
|
|
mod m20241201_000006_create_user_access_table;
|
||
|
|
mod m20241201_000007_create_inbound_users_table;
|
||
|
|
|
||
|
|
pub struct Migrator;
|
||
|
|
|
||
|
|
#[async_trait::async_trait]
|
||
|
|
impl MigratorTrait for Migrator {
|
||
|
|
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
||
|
|
vec![
|
||
|
|
Box::new(m20241201_000001_create_users_table::Migration),
|
||
|
|
Box::new(m20241201_000002_create_certificates_table::Migration),
|
||
|
|
Box::new(m20241201_000003_create_inbound_templates_table::Migration),
|
||
|
|
Box::new(m20241201_000004_create_servers_table::Migration),
|
||
|
|
Box::new(m20241201_000005_create_server_inbounds_table::Migration),
|
||
|
|
Box::new(m20241201_000006_create_user_access_table::Migration),
|
||
|
|
Box::new(m20241201_000007_create_inbound_users_table::Migration),
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|