//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.15 use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] #[sea_orm(table_name = "ticker")] /// 🤠 » ticker entity model pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: String, pub symbol: String, pub market_id: String, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { #[sea_orm( belongs_to = "super::market::Entity", from = "Column::MarketId", to = "super::market::Column::Id", on_update = "Cascade", on_delete = "Cascade" )] Market, } impl Related for Entity { fn to() -> RelationDef { Relation::Market.def() } } impl ActiveModelBehavior for ActiveModel {}