aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/world/service/crud.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/world/service/crud.lux')
-rw-r--r--stdlib/source/library/lux/world/service/crud.lux14
1 files changed, 8 insertions, 6 deletions
diff --git a/stdlib/source/library/lux/world/service/crud.lux b/stdlib/source/library/lux/world/service/crud.lux
index 056628491..5635bc1c3 100644
--- a/stdlib/source/library/lux/world/service/crud.lux
+++ b/stdlib/source/library/lux/world/service/crud.lux
@@ -11,8 +11,9 @@
(type: .public ID Nat)
(type: .public Time
- {#created Instant
- #updated Instant})
+ (Record
+ [#created Instant
+ #updated Instant]))
(capability: .public (Can_Create ! entity)
(can_create [Instant entity] (! (Try ID))))
@@ -27,7 +28,8 @@
(can_delete ID (! (Try Any))))
(type: .public (CRUD ! entity)
- {#can_create (Can_Create ! entity)
- #can_retrieve (Can_Retrieve ! entity)
- #can_update (Can_Update ! entity)
- #can_delete (Can_Delete ! entity)})
+ (Record
+ [#can_create (Can_Create ! entity)
+ #can_retrieve (Can_Retrieve ! entity)
+ #can_update (Can_Update ! entity)
+ #can_delete (Can_Delete ! entity)]))