Sprankelprachtig aan/afmeldsysteem

schema.rb 5.3KB

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