diff --git a/source/structure/r1.sindri.json b/source/structure/r1.sindri.json index 5460990..4007f8e 100644 --- a/source/structure/r1.sindri.json +++ b/source/structure/r1.sindri.json @@ -90,11 +90,16 @@ ] }, { - "name": "events", + "name": "local_resource_events", "key_field": { "name": "id" }, "data_fields": [ + { + "name": "local_resource_id", + "type": "integer", + "nullable": false + }, { "name": "name", "type": "string_medium", @@ -121,24 +126,6 @@ "nullable": true } ], - "constraints": [ - ] - }, - { - "name": "local_resource_events", - "key_field": null, - "data_fields": [ - { - "name": "local_resource_id", - "type": "integer", - "nullable": false - }, - { - "name": "event_id", - "type": "integer", - "nullable": false - } - ], "constraints": [ { "kind": "foreign_key", @@ -149,16 +136,6 @@ "fields": ["id"] } } - }, - { - "kind": "foreign_key", - "parameters": { - "fields": ["event_id"], - "reference": { - "name": "events", - "fields": ["id"] - } - } } ] },