25 lines
577 B
Rust
25 lines
577 B
Rust
//! `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 = "page")]
|
|
pub struct Model {
|
|
#[sea_orm(primary_key)]
|
|
pub id: i32,
|
|
pub video_id: i32,
|
|
pub cid: i32,
|
|
pub pid: i32,
|
|
pub name: String,
|
|
pub path: String,
|
|
pub image: String,
|
|
pub valid: bool,
|
|
pub download_status: i32,
|
|
pub created_at: String,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
pub enum Relation {}
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|