2024-07-05 11:16:21 +02:00
|
|
|
pub use sea_orm_migration::prelude::*;
|
|
|
|
|
|
|
|
pub struct Migrator;
|
|
|
|
|
2024-07-05 15:14:36 +02:00
|
|
|
mod m20240705_100914_create_user;
|
2024-07-08 12:55:11 +02:00
|
|
|
mod m20240708_085852_create_admin_user;
|
2024-07-05 15:14:36 +02:00
|
|
|
|
2024-07-05 11:16:21 +02:00
|
|
|
#[async_trait::async_trait]
|
|
|
|
impl MigratorTrait for Migrator {
|
|
|
|
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
2024-07-08 12:55:11 +02:00
|
|
|
vec![
|
|
|
|
Box::new(m20240705_100914_create_user::Migration),
|
|
|
|
Box::new(m20240708_085852_create_admin_user::Migration),
|
|
|
|
]
|
2024-07-05 11:16:21 +02:00
|
|
|
}
|
|
|
|
}
|