//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.10 use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)] #[sea_orm(table_name = "comments")] pub struct Model { pub created_at: DateTimeWithTimeZone, pub updated_at: DateTimeWithTimeZone, #[sea_orm(primary_key)] pub id: i32, pub post_id: Option, pub post_slug: Option, pub author: Option, pub email: Option, pub avatar: Option, pub ip_address: Option, pub user_agent: Option, pub referer: Option, #[sea_orm(column_type = "Text", nullable)] pub content: Option, pub scope: String, pub paragraph_key: Option, pub paragraph_excerpt: Option, pub reply_to: Option, pub reply_to_comment_id: Option, pub approved: Option, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation {}