mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-28 23:54:51 +09:00
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"
|
, addFieldPrimRequired "Collab" ("RoleAdmin" :: String) "role"
|
||||||
-- 540
|
-- 540
|
||||||
, addFieldRefOptional "Actor" Nothing "justCreatedBy" "Actor"
|
, addFieldRefOptional "Actor" Nothing "justCreatedBy" "Actor"
|
||||||
|
-- 541
|
||||||
|
, addEntities model_541_project
|
||||||
]
|
]
|
||||||
|
|
||||||
migrateDB
|
migrateDB
|
||||||
|
|
|
@ -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")
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue