use sea_orm::entity::prelude::*; use uuid::Uuid; #[derive(Clone, Debug, PartialEq, DeriveEntityModel)] #[sea_orm(table_name = "metadata")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub uuid: Uuid, pub key: String, pub value: String, pub bytes: Vec, } #[derive(Copy, Clone, Debug, EnumIter)] pub enum Relation {} impl RelationTrait for Relation { fn def(&self) -> RelationDef { unreachable!() } } impl ActiveModelBehavior for ActiveModel {}