29 lines
701 B
Rust
29 lines
701 B
Rust
//! SeaORM Entity. Generated by sea-orm-codegen 0.4.2
|
|
|
|
use sea_orm::entity::prelude::*;
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
|
|
#[sea_orm(table_name = "film_text")]
|
|
pub struct Model {
|
|
#[sea_orm(
|
|
primary_key,
|
|
auto_increment = false,
|
|
column_type = "Custom(\"BLOB\".to_owned())"
|
|
)]
|
|
pub film_id: String,
|
|
pub title: String,
|
|
#[sea_orm(column_type = "Custom(\"BLOB\".to_owned())", nullable)]
|
|
pub description: Option<String>,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter)]
|
|
pub enum Relation {}
|
|
|
|
impl RelationTrait for Relation {
|
|
fn def(&self) -> RelationDef {
|
|
panic!("No RelationDef")
|
|
}
|
|
}
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|