Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/db/refactor_platform_rs.dbml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Table refactor_platform.actions {
}

enum status {
not_started
in_progress
completed
wont_do
Expand Down
8 changes: 5 additions & 3 deletions entity/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Eq, PartialEq, EnumIter, Deserialize, Serialize, DeriveActiveEnum)]
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "status")]
pub enum Status {
#[sea_orm(string_value = "InProgress")]
#[sea_orm(string_value = "not_started")]
NotStarted,
#[sea_orm(string_value = "in_progress")]
InProgress,
#[sea_orm(string_value = "Completed")]
#[sea_orm(string_value = "completed")]
Completed,
#[sea_orm(string_value = "WontDo")]
#[sea_orm(string_value = "wont_do")]
WontDo,
}

Expand Down
Loading