Skip to content

Commit c64f7e8

Browse files
authored
[EdgeDB] Create Producible, Film, EthnoArt, and Story schemas (#2970)
1 parent 0ce6699 commit c64f7e8

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

dbschema/migrations/00028.edgeql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CREATE MIGRATION m1rob2znvgmu7myqon4wzkdxur6765udhhucohw6apoxhtrbbnxova
2+
ONTO m1aqhugpxmkst3yhkmyd5avjuqvbxk7ekgroiipkkhz3ockszv2rka
3+
{
4+
CREATE ABSTRACT TYPE default::Producible EXTENDING default::Resource, Mixin::Named {
5+
ALTER PROPERTY name {
6+
SET OWNED;
7+
CREATE DELEGATED CONSTRAINT std::exclusive;
8+
};
9+
CREATE PROPERTY scriptureReferences: multirange<std::int32>;
10+
};
11+
CREATE TYPE default::EthnoArt EXTENDING default::Producible;
12+
CREATE TYPE default::Film EXTENDING default::Producible;
13+
CREATE TYPE default::Story EXTENDING default::Producible;
14+
};

dbschema/producible.esdl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module default {
2+
abstract type Producible extending Resource, Mixin::Named {
3+
overloaded name {
4+
delegated constraint exclusive;
5+
};
6+
7+
scriptureReferences: multirange<int32>;
8+
}
9+
10+
type EthnoArt extending Producible;
11+
type Film extending Producible;
12+
type Story extending Producible;
13+
}

0 commit comments

Comments
 (0)