sea_orm_migration/seaql_migrations.rs
1use sea_orm::entity::prelude::*;
2
3#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
4// One should override the name of migration table via `MigratorTrait::migration_table_name` method
5#[sea_orm(table_name = "seaql_migrations")]
6pub struct Model {
7 #[sea_orm(primary_key, auto_increment = false)]
8 pub version: String,
9 pub applied_at: i64,
10}
11
12#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
13pub enum Relation {}
14
15impl ActiveModelBehavior for ActiveModel {}