DB entity for Project

This commit is contained in:
Pere Lev 2023-06-26 17:26:20 +03:00
parent 050e8d09bc
commit 3db602e3bd
No known key found for this signature in database
GPG key ID: 5252C5C863E5E57D
4 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,6 @@
Project
actor ActorId
create OutboxItemId
UniqueProjectActor actor
UniqueProjectCreate create

View file

@ -2956,6 +2956,8 @@ changes hLocal ctx =
, addFieldPrimRequired "Collab" ("RoleAdmin" :: String) "role" , addFieldPrimRequired "Collab" ("RoleAdmin" :: String) "role"
-- 540 -- 540
, addFieldRefOptional "Actor" Nothing "justCreatedBy" "Actor" , addFieldRefOptional "Actor" Nothing "justCreatedBy" "Actor"
-- 541
, addEntities model_541_project
] ]
migrateDB migrateDB

View file

@ -62,6 +62,7 @@ module Vervis.Migration.Entities
, model_508_invite , model_508_invite
, model_530_join , model_530_join
, model_531_follow_request , model_531_follow_request
, model_541_project
) )
where where
@ -240,3 +241,6 @@ model_530_join = $(schema "530_2022-11-01_join")
model_531_follow_request :: [Entity SqlBackend] model_531_follow_request :: [Entity SqlBackend]
model_531_follow_request = $(schema "531_2023-06-15_follow_request") 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")

View file

@ -285,6 +285,13 @@ GroupMember
-- Projects -- Projects
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Project
actor ActorId
create OutboxItemId
UniqueProjectActor actor
UniqueProjectCreate create
Deck Deck
actor ActorId actor ActorId
workflow WorkflowId workflow WorkflowId