refactor(db): remove project_board entity (replaced)
zhenyi committed
Deleted lib/db/project/project_board.rs lib/db/project/project_board.rs +0 −19
@@ -1,19 +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_board")]
8pub struct Model {
9 #[sea_orm(primary_key, auto_increment = false)]
10 pub id: Uuid,
11 pub project_id: Uuid,
12 pub name: String,
13 pub position: i32,
14 pub created_at: OffsetDateTime,
15 #[sea_orm(belongs_to, from = "project_id", to = "id")]
16 pub project: BelongsTo<super::project::Entity>,
17}
18
19impl ActiveModelBehavior for ActiveModel {}