-
Notifications
You must be signed in to change notification settings - Fork 4
/
schema.rb
157 lines (146 loc) · 5.99 KB
/
schema.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_02_24_192634) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
create_table "applications", id: :serial, force: :cascade do |t|
t.string "name"
t.string "email"
t.boolean "language_de"
t.boolean "language_en"
t.boolean "attended_before"
t.boolean "rejected_before"
t.integer "level"
t.text "comments"
t.string "os"
t.boolean "needs_computer"
t.text "tutorials"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "event_id"
t.boolean "attendance_confirmed", default: false, null: false
t.string "random_id"
t.date "selected_on"
t.integer "sequence_number"
t.integer "state", default: 0, null: false
t.boolean "attended", default: false
t.text "referred_by"
t.index ["event_id"], name: "index_applications_on_event_id"
end
create_table "coach_applications", force: :cascade do |t|
t.boolean "installationparty"
t.boolean "workshopday"
t.string "lightningtalk"
t.string "notes"
t.bigint "event_id"
t.bigint "coach_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "state", default: 0, null: false
t.boolean "lightningtalk_approved", default: false
t.datetime "contacted_at"
t.boolean "first_time_coaching", default: false
t.boolean "coach_the_coaches", default: false
t.string "sponsor"
t.index ["coach_id"], name: "index_coach_applications_on_coach_id"
t.index ["event_id"], name: "index_coach_applications_on_event_id"
end
create_table "coaches", force: :cascade do |t|
t.string "name"
t.boolean "language_de"
t.boolean "language_en"
t.boolean "notifications", default: false
t.bigint "user_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "gender", default: "female", null: false
t.index ["user_id"], name: "index_coaches_on_user_id"
end
create_table "event_group_attendees", force: :cascade do |t|
t.bigint "application_id"
t.bigint "event_group_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["application_id"], name: "index_event_group_attendees_on_application_id"
t.index ["event_group_id"], name: "index_event_group_attendees_on_event_group_id"
end
create_table "event_group_coaches", force: :cascade do |t|
t.bigint "coach_application_id"
t.bigint "event_group_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["coach_application_id"], name: "index_event_group_coaches_on_coach_application_id"
t.index ["event_group_id"], name: "index_event_group_coaches_on_event_group_id"
end
create_table "event_groups", force: :cascade do |t|
t.bigint "event_id"
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["event_id"], name: "index_event_groups_on_event_id"
end
create_table "events", id: :serial, force: :cascade do |t|
t.string "name"
t.string "place"
t.date "scheduled_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.date "application_start"
t.date "application_end"
t.date "confirmation_date"
t.boolean "selection_complete", default: false, null: false
t.text "application_mail"
t.text "selection_mail"
t.text "rejection_mail"
t.text "reminder_mail"
t.text "reminder_mail_subject"
t.text "application_mail_subject"
t.text "selection_mail_subject"
t.text "rejection_mail_subject"
t.text "waiting_list_mail"
t.text "waiting_list_mail_subject"
t.integer "confirmation_deadline", default: 5, null: false
t.integer "reminder_date", default: 2, null: false
t.text "reminder_attendance_mail"
t.text "reminder_attendance_mail_subject"
t.boolean "coach_registration_enabled", default: true
t.text "coach_approval_mail"
t.text "coach_approval_mail_subject"
t.date "coach_the_coaches_date"
t.time "coach_the_coaches_start_time"
t.time "coach_the_coaches_end_time"
t.date "installation_get_together_date"
t.time "installation_get_together_start_time"
t.time "installation_get_together_end_time"
t.time "start_time", null: false
t.time "end_time", null: false
end
create_table "users", id: :serial, force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "email", null: false
t.string "encrypted_password", limit: 128, null: false
t.string "confirmation_token", limit: 128
t.string "remember_token", limit: 128, null: false
t.boolean "admin", default: false, null: false
t.boolean "blacklisted", default: false
t.index ["email"], name: "index_users_on_email"
t.index ["remember_token"], name: "index_users_on_remember_token"
end
add_foreign_key "coach_applications", "coaches"
add_foreign_key "coach_applications", "events"
add_foreign_key "event_group_attendees", "applications"
add_foreign_key "event_group_attendees", "event_groups"
add_foreign_key "event_group_coaches", "coach_applications"
add_foreign_key "event_group_coaches", "event_groups"
add_foreign_key "event_groups", "events"
end