Sprankelprachtig aan/afmeldsysteem

schema.rb 4.6KB

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