diff options
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/db/schema.rb b/db/schema.rb index 07579bb..4ad3bbd 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,14 +10,22 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2023_12_18_190546) do +ActiveRecord::Schema[7.1].define(version: 2023_12_20_202718) do create_table "events", force: :cascade do |t| t.date "date" t.string "name" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.integer "operation_id", null: false + t.index ["operation_id"], name: "index_events_on_operation_id" + end + + create_table "operations", force: :cascade do |t| + t.string "name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.integer "organisation_id", null: false - t.index ["organisation_id"], name: "index_events_on_organisation_id" + t.index ["organisation_id"], name: "index_operations_on_organisation_id" end create_table "organisations", force: :cascade do |t| @@ -26,5 +34,6 @@ ActiveRecord::Schema[7.1].define(version: 2023_12_18_190546) do t.datetime "updated_at", null: false end - add_foreign_key "events", "organisations" + add_foreign_key "events", "operations" + add_foreign_key "operations", "organisations" end |