edgedb: move Calculations into own type

This commit is contained in:
2024-05-05 22:05:10 +02:00
parent f00efe607f
commit 10c7f2656c
2 changed files with 20 additions and 3 deletions
+11 -1
View File
@@ -63,8 +63,9 @@ module default {
required type: str {
readonly := true;
}
calculations: array<json> {
required multi calculations: Calculations {
readonly := true;
on source delete delete target;
}
}
@@ -80,4 +81,13 @@ module default {
}
}
type Calculations {
required turn: int32 {
readonly := true;
}
required data: array<json> {
readonly := true;
}
}
}