CREATE TABLE "batch"."Batch"
(
"id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
...
"version" BIGINT NOT NULL,
CONSTRAINT "Batch_PK" PRIMARY KEY ("id")
)
CREATE TABLE "fvessel"."FermentationVessel"
(
"id" BIGINT GENERATED BY DEFAULT AS IDENTITY,
"state" NVARCHAR(255) NOT NULL,
...
"version" TIMESTAMP NOT NULL,
CONSTRAINT "FermentationVessel_PK" PRIMARY KEY ("id")
)
CREATE TABLE "batch"."Batch_vessels"
(
"id_OID" BIGINT NOT NULL,
"id_EID" BIGINT NOT NULL,
CONSTRAINT "Batch_vessels_PK" PRIMARY KEY ("id_OID","id_EID")
)