Skip to content
Clone
563bb99
21 lines 583 B Rust
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<super::workflow_job::Entity>,
}
impl ActiveModelBehavior for ActiveModel {}