Sprankelprachtig aan/afmeldsysteem

schema.rb 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # This file is auto-generated from the current state of the database. Instead
  2. # of editing this file, please use the migrations feature of Active Record to
  3. # incrementally modify your database, and then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your
  6. # database schema. If you need to create the application database on another
  7. # system, you should be using db:schema:load, not running all the migrations
  8. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  9. # you'll amass, the slower it'll run and the greater likelihood for issues).
  10. #
  11. # It's strongly recommended that you check this file into your version control system.
  12. ActiveRecord::Schema.define(version: 20161214112504) do
  13. create_table "activities", force: :cascade do |t|
  14. t.string "public_name"
  15. t.string "secret_name"
  16. t.string "description"
  17. t.string "location"
  18. t.datetime "start"
  19. t.datetime "end"
  20. t.datetime "deadline"
  21. t.boolean "show_hidden"
  22. t.integer "group_id"
  23. t.datetime "created_at", null: false
  24. t.datetime "updated_at", null: false
  25. t.index ["group_id"], name: "index_activities_on_group_id"
  26. end
  27. create_table "groups", force: :cascade do |t|
  28. t.string "name"
  29. t.datetime "created_at", null: false
  30. t.datetime "updated_at", null: false
  31. end
  32. create_table "members", force: :cascade do |t|
  33. t.integer "person_id"
  34. t.integer "group_id"
  35. t.boolean "is_leader"
  36. t.datetime "created_at", null: false
  37. t.datetime "updated_at", null: false
  38. t.index ["group_id"], name: "index_members_on_group_id"
  39. t.index ["person_id"], name: "index_members_on_person_id"
  40. end
  41. create_table "participants", force: :cascade do |t|
  42. t.integer "person_id"
  43. t.integer "activity_id"
  44. t.boolean "is_organizer"
  45. t.boolean "attending"
  46. t.text "notes"
  47. t.datetime "created_at", null: false
  48. t.datetime "updated_at", null: false
  49. t.index ["activity_id"], name: "index_participants_on_activity_id"
  50. t.index ["person_id"], name: "index_participants_on_person_id"
  51. end
  52. create_table "people", force: :cascade do |t|
  53. t.string "first_name"
  54. t.string "infix"
  55. t.string "last_name"
  56. t.date "birth_date"
  57. t.string "email"
  58. t.boolean "is_admin"
  59. t.datetime "created_at", null: false
  60. t.datetime "updated_at", null: false
  61. t.index ["email"], name: "index_people_on_email", unique: true
  62. end
  63. create_table "sessions", force: :cascade do |t|
  64. t.string "ip"
  65. t.datetime "expires"
  66. t.string "remember_digest"
  67. t.integer "user_id"
  68. t.boolean "active", default: true
  69. t.datetime "created_at", null: false
  70. t.datetime "updated_at", null: false
  71. t.index ["user_id"], name: "index_sessions_on_user_id"
  72. end
  73. create_table "users", force: :cascade do |t|
  74. t.string "email"
  75. t.string "password_digest"
  76. t.string "confirmation_token"
  77. t.string "password_reset_token"
  78. t.integer "person_id"
  79. t.datetime "created_at", null: false
  80. t.datetime "updated_at", null: false
  81. t.index ["email"], name: "index_users_on_email", unique: true
  82. t.index ["person_id"], name: "index_users_on_person_id"
  83. end
  84. end