diff options
Diffstat (limited to 'rvh/db/schema.rb')
| -rw-r--r-- | rvh/db/schema.rb | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/rvh/db/schema.rb b/rvh/db/schema.rb index b66177d..d333f5e 100644 --- a/rvh/db/schema.rb +++ b/rvh/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2020_03_15_180659) do +ActiveRecord::Schema.define(version: 2020_03_15_181211) do create_table "accounts", force: :cascade do |t| t.string "name", null: false @@ -21,13 +21,22 @@ ActiveRecord::Schema.define(version: 2020_03_15_180659) do t.datetime "updated_at", precision: 6, null: false end - create_table "nurses", force: :cascade do |t| - t.integer "account_id", null: false - t.datetime "hired_at", null: false - t.string "certification" + create_table "care_centres", force: :cascade do |t| + t.string "employee_type", null: false + t.integer "employee_id", null: false + t.string "name" + t.string "location" + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.index ["employee_type", "employee_id"], name: "index_care_centres_on_employee_type_and_employee_id" + end + + create_table "employees", force: :cascade do |t| + t.string "type" + t.datetime "hired_at" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false - t.index ["account_id"], name: "index_nurses_on_account_id" + t.index ["type"], name: "index_employees_on_type" end create_table "patients", force: :cascade do |t| @@ -38,6 +47,5 @@ ActiveRecord::Schema.define(version: 2020_03_15_180659) do t.index ["account_id"], name: "index_patients_on_account_id" end - add_foreign_key "nurses", "accounts" add_foreign_key "patients", "accounts" end |
