Skip to content
Clone

feat(db): refresh issue_comment entity

zhenyi committed
parent 064b26c commit 82a84db Browse files

1 file changed

+6 −3

Modified lib/db/issue/comment.rs View lib/db/issue/comment.rs
@@ -8,18 +8,21 @@
88pub struct Model {
99 #[sea_orm(primary_key, auto_increment = false)]
1010 pub id: Uuid,
11 pub issue_id: Uuid,
11 pub issue_id: Option<Uuid>,
12 pub project_id: Option<Uuid>,
1213 pub parent_id: Option<Uuid>,
1314 pub poster_id: Uuid,
1415 pub content: String,
1516 pub created_at: OffsetDateTime,
1617 pub updated_at: Option<OffsetDateTime>,
1718 #[sea_orm(belongs_to, from = "issue_id", to = "id")]
18 pub issue: BelongsTo<super::issue::Entity>,
19 pub issue: BelongsTo<Option<super::issue::Entity>>,
20 #[sea_orm(belongs_to, from = "project_id", to = "id")]
21 pub project: BelongsTo<Option<super::super::project::project::Entity>>,
1922 #[sea_orm(belongs_to, from = "parent_id", to = "id")]
2023 pub parent: BelongsTo<Option<super::comment::Entity>>,
2124 #[sea_orm(belongs_to, from = "poster_id", to = "uid")]
2225 pub poster: BelongsTo<super::super::user::users::Entity>,
2326}
2427
25impl ActiveModelBehavior for ActiveModel {}
No newline at end of file
28impl ActiveModelBehavior for ActiveModel {}