Skip to content
Clone

refactor(db): remove project_issue entity (replaced)

zhenyi committed
parent a97adaf commit a63e269 Browse files

1 file changed

+0 −24

Deleted lib/db/project/project_issue.rs
@@ -1,24 +0,0 @@
1use sea_orm::entity::prelude::*;
2use time::OffsetDateTime;
3use uuid::Uuid;
4
5#[sea_orm::model]
6#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
7#[sea_orm(table_name = "project_issue")]
8pub struct Model {
9 #[sea_orm(primary_key, auto_increment = false)]
10 pub id: Uuid,
11 pub project_id: Uuid,
12 pub board_id: Uuid,
13 pub issue_id: Uuid,
14 pub position: i32,
15 pub created_at: OffsetDateTime,
16 #[sea_orm(belongs_to, from = "project_id", to = "id")]
17 pub project: BelongsTo<super::project::Entity>,
18 #[sea_orm(belongs_to, from = "board_id", to = "id")]
19 pub board: BelongsTo<super::project_board::Entity>,
20 #[sea_orm(belongs_to, from = "issue_id", to = "id")]
21 pub issue: BelongsTo<super::super::issue::issue::Entity>,
22}
23
24impl ActiveModelBehavior for ActiveModel {}