use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, DeriveEntityModel)]
#[sea_orm(table_name = "move_struct")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
#[sea_orm(indexed)]
pub contract_id: i32,
#[sea_orm(column_type = "Text")]
pub name: String,
#[sea_orm(column_type = "Text")]
pub generic_params: String,
#[sea_orm(column_type = "Text")]
pub fields: String,
#[sea_orm(belongs_to, from = "contract_id", to = "id")]
pub contract: HasOne<super::super::contract::Entity>,
}
impl ActiveModelBehavior for ActiveModel {}