29 lines
845 B
Rust
29 lines
845 B
Rust
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.10.7
|
|
|
|
use sea_orm::entity::prelude::*;
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
|
#[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: Vec<String>,
|
|
pub category: Option<String>,
|
|
#[sea_orm(column_name = "publicUrl")]
|
|
pub public_url: String,
|
|
pub license: Option<String>,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
pub enum Relation {}
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|