//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0
use sea_orm::entity::prelude::*;
use serde::Serialize;
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Serialize)]
#[sea_orm(table_name = "ticket_attachments")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
#[sea_orm(unique)]
pub uuid: Uuid,
pub ticket_id: i64,
/// The original filename as uploaded by the user.
pub filename: String,
/// The MIME type of the attachment, e.g. "image/png" or "application/pdf".
pub content_type: String,
/// The size of the attachment in bytes.
pub size: i64,
/// The raw bytes of the attachment, stored in the database.
pub data: Vec<u8>,
pub created_at: DateTimeWithTimeZone,
}
impl ActiveModelBehavior for ActiveModel {}