951a522
use sea_orm::entity::prelude::*;
use time::OffsetDateTime;
use uuid::Uuid;
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "issue_relation_pull")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub issue_id: Uuid,
pub pull_request_id: Uuid,
pub created_at: OffsetDateTime,
#[sea_orm(belongs_to, from = "issue_id", to = "id")]
pub issue: BelongsTo<super::issue_item::Entity>,
#[sea_orm(belongs_to, from = "pull_request_id", to = "id")]
pub pull_request: BelongsTo<super::super::pull_request::pull_requests::Entity>,
}
impl ActiveModelBehavior for ActiveModel {}