flix_db/entity/info/
collections.rs1use flix_model::id::CollectionId;
4
5use sea_orm::{
6 ActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey, DeriveRelation, EntityTrait,
7 EnumIter, PrimaryKeyTrait,
8};
9
10#[derive(Debug, Clone, DeriveEntityModel)]
12#[sea_orm(table_name = "flix_info_collections")]
13pub struct Model {
14 #[sea_orm(primary_key, auto_increment = false)]
16 pub id: CollectionId,
17 pub title: String,
19 pub overview: String,
21}
22
23impl ActiveModelBehavior for ActiveModel {}
24
25#[derive(Debug, EnumIter, DeriveRelation)]
27pub enum Relation {}