use sea_orm::entity::prelude::*; use time::OffsetDateTime; use uuid::Uuid; #[sea_orm::model] #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "ci_log_chunk")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: Uuid, #[sea_orm(indexed)] pub job_id: Uuid, pub seq: i32, pub object_key: String, pub size: i64, pub created_at: OffsetDateTime, #[sea_orm(belongs_to, from = "job_id", to = "id")] pub job: BelongsTo, } impl ActiveModelBehavior for ActiveModel {}