DB entity for Project
This commit is contained in:
parent
050e8d09bc
commit
3db602e3bd
4 changed files with 19 additions and 0 deletions
6
migrations/541_2023-06-26_project.model
Normal file
6
migrations/541_2023-06-26_project.model
Normal file
|
@ -0,0 +1,6 @@
|
|||
Project
|
||||
actor ActorId
|
||||
create OutboxItemId
|
||||
|
||||
UniqueProjectActor actor
|
||||
UniqueProjectCreate create
|
|
@ -2956,6 +2956,8 @@ changes hLocal ctx =
|
|||
, addFieldPrimRequired "Collab" ("RoleAdmin" :: String) "role"
|
||||
-- 540
|
||||
, addFieldRefOptional "Actor" Nothing "justCreatedBy" "Actor"
|
||||
-- 541
|
||||
, addEntities model_541_project
|
||||
]
|
||||
|
||||
migrateDB
|
||||
|
|
|
@ -62,6 +62,7 @@ module Vervis.Migration.Entities
|
|||
, model_508_invite
|
||||
, model_530_join
|
||||
, model_531_follow_request
|
||||
, model_541_project
|
||||
)
|
||||
where
|
||||
|
||||
|
@ -240,3 +241,6 @@ model_530_join = $(schema "530_2022-11-01_join")
|
|||
|
||||
model_531_follow_request :: [Entity SqlBackend]
|
||||
model_531_follow_request = $(schema "531_2023-06-15_follow_request")
|
||||
|
||||
model_541_project :: [Entity SqlBackend]
|
||||
model_541_project = $(schema "541_2023-06-26_project")
|
||||
|
|
|
@ -285,6 +285,13 @@ GroupMember
|
|||
-- Projects
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Project
|
||||
actor ActorId
|
||||
create OutboxItemId
|
||||
|
||||
UniqueProjectActor actor
|
||||
UniqueProjectCreate create
|
||||
|
||||
Deck
|
||||
actor ActorId
|
||||
workflow WorkflowId
|
||||
|
|
Loading…
Reference in a new issue