//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0 use super::sea_orm_active_enums::Method; use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)] #[sea_orm(table_name = "revert_logs")] pub struct Model { #[sea_orm(primary_key)] pub id: u64, pub user_key_id: u64, pub timestamp: DateTimeUtc, pub method: Method, pub to: Vec, #[sea_orm(column_type = "Text", nullable)] pub call_data: Option, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { #[sea_orm( belongs_to = "super::user_keys::Entity", from = "Column::UserKeyId", to = "super::user_keys::Column::Id", on_update = "NoAction", on_delete = "NoAction" )] UserKeys, } impl Related for Entity { fn to() -> RelationDef { Relation::UserKeys.def() } } impl ActiveModelBehavior for ActiveModel {}