Sprankelprachtig aan/afmeldsysteem

schema.rb 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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: 20170222104408) 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", "group_id"], name: "index_members_on_person_id_and_group_id", unique: true
  40. t.index ["person_id"], name: "index_members_on_person_id"
  41. end
  42. create_table "participants", force: :cascade do |t|
  43. t.integer "person_id"
  44. t.integer "activity_id"
  45. t.boolean "is_organizer"
  46. t.boolean "attending"
  47. t.text "notes"
  48. t.datetime "created_at", null: false
  49. t.datetime "updated_at", null: false
  50. t.index ["activity_id"], name: "index_participants_on_activity_id"
  51. t.index ["person_id", "activity_id"], name: "index_participants_on_person_id_and_activity_id", unique: true
  52. t.index ["person_id"], name: "index_participants_on_person_id"
  53. end
  54. create_table "people", force: :cascade do |t|
  55. t.string "first_name"
  56. t.string "infix"
  57. t.string "last_name"
  58. t.date "birth_date"
  59. t.string "email"
  60. t.boolean "is_admin"
  61. t.datetime "created_at", null: false
  62. t.datetime "updated_at", null: false
  63. t.index ["email"], name: "index_people_on_email", unique: true
  64. end
  65. create_table "sessions", force: :cascade do |t|
  66. t.string "ip"
  67. t.datetime "expires"
  68. t.string "remember_digest"
  69. t.integer "user_id"
  70. t.boolean "active", default: true
  71. t.datetime "created_at", null: false
  72. t.datetime "updated_at", null: false
  73. t.index ["user_id"], name: "index_sessions_on_user_id"
  74. end
  75. create_table "tokens", force: :cascade do |t|
  76. t.string "token"
  77. t.datetime "expires"
  78. t.string "tokentype"
  79. t.integer "user_id"
  80. t.index ["token"], name: "index_tokens_on_token", unique: true
  81. end
  82. create_table "users", force: :cascade do |t|
  83. t.string "email"
  84. t.string "password_digest"
  85. t.integer "person_id"
  86. t.datetime "created_at", null: false
  87. t.datetime "updated_at", null: false
  88. t.boolean "confirmed"
  89. t.index ["email"], name: "index_users_on_email", unique: true
  90. t.index ["person_id"], name: "index_users_on_person_id", unique: true
  91. end
  92. end