Sprankelprachtig aan/afmeldsysteem

schema.rb 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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: 20170917140643) 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.datetime "reminder_at"
  24. t.boolean "reminder_done"
  25. t.index ["group_id"], name: "index_activities_on_group_id"
  26. end
  27. create_table "delayed_jobs", force: :cascade do |t|
  28. t.integer "priority", default: 0, null: false
  29. t.integer "attempts", default: 0, null: false
  30. t.text "handler", null: false
  31. t.text "last_error"
  32. t.datetime "run_at"
  33. t.datetime "locked_at"
  34. t.datetime "failed_at"
  35. t.string "locked_by"
  36. t.string "queue"
  37. t.datetime "created_at"
  38. t.datetime "updated_at"
  39. t.index ["priority", "run_at"], name: "delayed_jobs_priority"
  40. end
  41. create_table "groups", force: :cascade do |t|
  42. t.string "name"
  43. t.datetime "created_at", null: false
  44. t.datetime "updated_at", null: false
  45. end
  46. create_table "members", force: :cascade do |t|
  47. t.integer "person_id"
  48. t.integer "group_id"
  49. t.boolean "is_leader"
  50. t.datetime "created_at", null: false
  51. t.datetime "updated_at", null: false
  52. t.index ["group_id"], name: "index_members_on_group_id"
  53. t.index ["person_id", "group_id"], name: "index_members_on_person_id_and_group_id", unique: true
  54. t.index ["person_id"], name: "index_members_on_person_id"
  55. end
  56. create_table "participants", force: :cascade do |t|
  57. t.integer "person_id"
  58. t.integer "activity_id"
  59. t.boolean "is_organizer"
  60. t.boolean "attending"
  61. t.text "notes"
  62. t.datetime "created_at", null: false
  63. t.datetime "updated_at", null: false
  64. t.index ["activity_id"], name: "index_participants_on_activity_id"
  65. t.index ["person_id", "activity_id"], name: "index_participants_on_person_id_and_activity_id", unique: true
  66. t.index ["person_id"], name: "index_participants_on_person_id"
  67. end
  68. create_table "people", force: :cascade do |t|
  69. t.string "first_name"
  70. t.string "infix"
  71. t.string "last_name"
  72. t.date "birth_date"
  73. t.string "email"
  74. t.boolean "is_admin"
  75. t.datetime "created_at", null: false
  76. t.datetime "updated_at", null: false
  77. t.boolean "send_attendance_reminder", default: true
  78. t.index ["email"], name: "index_people_on_email", unique: true
  79. end
  80. create_table "sessions", force: :cascade do |t|
  81. t.string "ip"
  82. t.datetime "expires"
  83. t.string "remember_digest"
  84. t.integer "user_id"
  85. t.boolean "active", default: true
  86. t.datetime "created_at", null: false
  87. t.datetime "updated_at", null: false
  88. t.index ["user_id"], name: "index_sessions_on_user_id"
  89. end
  90. create_table "tokens", force: :cascade do |t|
  91. t.string "token"
  92. t.datetime "expires"
  93. t.string "tokentype"
  94. t.integer "user_id"
  95. t.index ["token"], name: "index_tokens_on_token", unique: true
  96. end
  97. create_table "users", force: :cascade do |t|
  98. t.string "email"
  99. t.string "password_digest"
  100. t.integer "person_id"
  101. t.datetime "created_at", null: false
  102. t.datetime "updated_at", null: false
  103. t.boolean "confirmed"
  104. t.index ["email"], name: "index_users_on_email", unique: true
  105. t.index ["person_id"], name: "index_users_on_person_id", unique: true
  106. end
  107. end