Spaces:
Paused
Paused
File size: 2,116 Bytes
7cb5dfa fbc8659 094c13f 02c8c3c f0e0245 7f36b83 8762688 6db0b76 5283e2c 4b9bf53 41b3b51 76b8a0b f54670e c165e10 70cc48f 7cb5dfa fbc8659 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | use sea_orm::entity::prelude::*;
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "api_key_settings")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub api_key_id: i32,
pub image_source: String,
pub lang: String,
pub textless: bool,
pub ratings_limit: i32,
pub ratings_order: String,
pub poster_position: String,
pub logo_ratings_limit: i32,
pub backdrop_ratings_limit: i32,
pub poster_badge_style: String,
pub logo_badge_style: String,
pub backdrop_badge_style: String,
pub poster_label_style: String,
pub logo_label_style: String,
pub backdrop_label_style: String,
pub poster_badge_direction: String,
pub poster_badge_split: bool,
pub poster_fit: String,
pub poster_badge_size: String,
pub logo_badge_size: String,
pub backdrop_badge_size: String,
pub backdrop_position: String,
pub backdrop_badge_direction: String,
pub episode_ratings_limit: i32,
pub episode_badge_style: String,
pub episode_label_style: String,
pub episode_badge_size: String,
pub episode_position: String,
pub episode_badge_direction: String,
pub episode_blur: bool,
pub ratings_exclude: String,
pub poster_badge_shape: String,
pub logo_badge_shape: String,
pub backdrop_badge_shape: String,
pub episode_badge_shape: String,
pub poster_badge_background: String,
pub logo_badge_background: String,
pub backdrop_badge_background: String,
pub episode_badge_background: String,
/// Distance (percent of width, 0–50) to inset backdrop ratings from the
/// anchored horizontal edge (left or right). Ignored for centered positions.
pub backdrop_edge_inset_x: i32,
/// Distance (percent of height, 0–50) to inset backdrop ratings from the
/// anchored vertical edge (top or bottom). Ignored for centered positions.
pub backdrop_edge_inset_y: i32,
pub updated_at: Option<i64>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}
|