Skip to content
Snippets Groups Projects
Commit ddea8c87 authored by Jakob Junck's avatar Jakob Junck
Browse files

Added new example files

parent 1f583986
No related branches found
No related tags found
No related merge requests found
{
"eventTypes": [
{
"name": "create-order",
"attributes": [
{
"name": "total-items",
"type": "integer"
}
]
}
],
"objectTypes": [
{
"name": "order",
"attributes": [
{
"name": "item",
"type": "integer"
}
]
}
],
"events": [
{
"id": "e1",
"type": "create-order",
"time": "1970-01-01T00:00:00Z",
"attributes": [
{
"name": "total-items",
"value": 1
}
],
"relationships": [
{
"objectId": "o1",
"qualifier": "item"
}
]
}
],
"objects": [
{
"id": "o1",
"type": "order",
"attributes": [
{
"name": "item",
"time": "1970-01-01T00:00:00Z",
"value": 1
}
]
}
]
}
\ No newline at end of file
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "event" (
"ocel_id" TEXT,
"ocel_type" TEXT
);
INSERT INTO event VALUES('e1','Create Order');
CREATE TABLE IF NOT EXISTS "event_object" (
"ocel_event_id" TEXT,
"ocel_object_id" TEXT,
"ocel_qualifier" TEXT
);
INSERT INTO event_object VALUES('e1','o1','order');
CREATE TABLE IF NOT EXISTS "object" (
"ocel_id" TEXT,
"ocel_type" TEXT
);
INSERT INTO object VALUES('o1','Order');
CREATE TABLE IF NOT EXISTS "object_object" (
"ocel_source_id" TEXT,
"ocel_target_id" TEXT,
"ocel_qualifier" TEXT
);
CREATE TABLE IF NOT EXISTS "event_CreateOrder" (
"ocel_id" TEXT,
"ocel_time" TEXT
, "total items" INTEGER);
INSERT INTO event_CreateOrder VALUES('e1','1970-01-01 00:00:00',1);
CREATE TABLE IF NOT EXISTS "event_map_type" (
"ocel_type" TEXT,
"ocel_type_map" TEXT
);
INSERT INTO event_map_type VALUES('Create Order','CreateOrder');
CREATE TABLE IF NOT EXISTS "object_map_type" (
"ocel_type" TEXT,
"ocel_type_map" TEXT
);
INSERT INTO object_map_type VALUES('Order','Order');
CREATE TABLE IF NOT EXISTS "object_Order" (
"ocel_id" TEXT,
"ocel_time" TEXT,
"ocel_changed_field" TEXT,
"item" INTEGER
);
INSERT INTO object_Order VALUES('o1','1970-01-01 00:00:00',NULL,1);
COMMIT;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment