1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-27 16:24:52 +09:00

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"
-- 540
, addFieldRefOptional "Actor" Nothing "justCreatedBy" "Actor"
-- 541
, addEntities model_541_project
]
migrateDB

View file

@ -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")

View file

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