mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
32 lines
941 B
Rust
32 lines
941 B
Rust
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3
|
|
|
|
use sea_orm::entity::prelude::*;
|
|
|
|
use super::newtype::StringVec;
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Default)]
|
|
#[sea_orm(table_name = "emoji")]
|
|
pub struct Model {
|
|
#[sea_orm(primary_key, auto_increment = false)]
|
|
pub id: String,
|
|
#[sea_orm(column_name = "updatedAt")]
|
|
pub updated_at: Option<DateTimeWithTimeZone>,
|
|
pub name: String,
|
|
pub host: Option<String>,
|
|
#[sea_orm(column_name = "originalUrl")]
|
|
pub original_url: String,
|
|
pub uri: Option<String>,
|
|
pub r#type: Option<String>,
|
|
pub aliases: StringVec,
|
|
pub category: Option<String>,
|
|
#[sea_orm(column_name = "publicUrl")]
|
|
pub public_url: String,
|
|
pub license: Option<String>,
|
|
pub width: Option<i32>,
|
|
pub height: Option<i32>,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
pub enum Relation {}
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|