Sprankelprachtig aan/afmeldsysteem

schema.rb 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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: 20170815155155) do
  13. create_table "activities", force: :cascade do |t|
  14. t.string "name"
  15. t.string "description"
  16. t.string "location"
  17. t.datetime "start"
  18. t.datetime "end"
  19. t.datetime "deadline"
  20. t.integer "group_id"
  21. t.datetime "created_at", null: false
  22. t.datetime "updated_at", null: false
  23. t.index ["group_id"], name: "index_activities_on_group_id"
  24. end
  25. create_table "groups", force: :cascade do |t|
  26. t.string "name"
  27. t.datetime "created_at", null: false
  28. t.datetime "updated_at", null: false
  29. end
  30. create_table "members", force: :cascade do |t|
  31. t.integer "person_id"
  32. t.integer "group_id"
  33. t.boolean "is_leader"
  34. t.datetime "created_at", null: false
  35. t.datetime "updated_at", null: false
  36. t.index ["group_id"], name: "index_members_on_group_id"
  37. t.index ["person_id", "group_id"], name: "index_members_on_person_id_and_group_id", unique: true
  38. t.index ["person_id"], name: "index_members_on_person_id"
  39. end
  40. create_table "participants", force: :cascade do |t|
  41. t.integer "person_id"
  42. t.integer "activity_id"
  43. t.boolean "is_organizer"
  44. t.boolean "attending"
  45. t.text "notes"
  46. t.datetime "created_at", null: false
  47. t.datetime "updated_at", null: false
  48. t.index ["activity_id"], name: "index_participants_on_activity_id"
  49. t.index ["person_id", "activity_id"], name: "index_participants_on_person_id_and_activity_id", unique: true
  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 "tokens", force: :cascade do |t|
  74. t.string "token"
  75. t.datetime "expires"
  76. t.string "tokentype"
  77. t.integer "user_id"
  78. t.index ["token"], name: "index_tokens_on_token", unique: true
  79. end
  80. create_table "users", force: :cascade do |t|
  81. t.string "email"
  82. t.string "password_digest"
  83. t.integer "person_id"
  84. t.datetime "created_at", null: false
  85. t.datetime "updated_at", null: false
  86. t.boolean "confirmed"
  87. t.index ["email"], name: "index_users_on_email", unique: true
  88. t.index ["person_id"], name: "index_users_on_person_id", unique: true
  89. end
  90. end