diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-10-30 16:40:03 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-10-30 16:40:03 +0100 |
| commit | 0725e4f7cf4c6f723264b6d461b91c660d144cb7 (patch) | |
| tree | aae5876b5760c80679161d918c34d753ec0e2582 /code/api/src/Data/Database/Todo/TodoStatus.cs | |
| parent | d76c180c9631df015d37138045c79a46cca350e8 (diff) | |
| download | greatoffice-0725e4f7cf4c6f723264b6d461b91c660d144cb7.tar.xz greatoffice-0725e4f7cf4c6f723264b6d461b91c660d144cb7.zip | |
feat: Apiwork
Diffstat (limited to 'code/api/src/Data/Database/Todo/TodoStatus.cs')
| -rw-r--r-- | code/api/src/Data/Database/Todo/TodoStatus.cs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/code/api/src/Data/Database/Todo/TodoStatus.cs b/code/api/src/Data/Database/Todo/TodoStatus.cs new file mode 100644 index 0000000..9ace7d0 --- /dev/null +++ b/code/api/src/Data/Database/Todo/TodoStatus.cs @@ -0,0 +1,37 @@ +namespace IOL.GreatOffice.Api.Data.Database; + +public class TodoStatus : BaseWithOwner +{ + public string Name { get; set; } + public string Color { get; set; } + public Todo Todo { get; set; } + + public static List<TodoStatus> GetDefaultStatusSetForTenant(Guid tenantId) { + return new List<TodoStatus>() { + new() { + Name = "Reported", + }, + new() { + Name = "Resolved", + }, + new() { + Name = "Fixed", + }, + new() { + Name = "Implemented", + }, + new() { + Name = "Won't fix", + }, + new() { + Name = "By design", + }, + new() { + Name = "Invalid", + }, + new() { + Name = "Duplicate", + } + }; + } +} |
