|
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | 13 | ActiveRecord::Schema[7.1].define(version: 2025_03_27_094635) do |
14 | | - create_table "activity_types", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 14 | + create_table "activity_types", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
15 | 15 | t.string "name", null: false |
16 | 16 | t.string "abbreviation", null: false |
17 | 17 | t.datetime "created_at", null: false |
|
20 | 20 | t.index ["name"], name: "index_activity_types_on_name", unique: true |
21 | 21 | end |
22 | 22 |
|
23 | | - create_table "auth_tokens", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 23 | + create_table "auth_tokens", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
24 | 24 | t.datetime "auth_token_expiry", null: false |
25 | 25 | t.bigint "user_id" |
26 | 26 | t.string "authentication_token", null: false |
|
29 | 29 | t.index ["user_id"], name: "index_auth_tokens_on_user_id" |
30 | 30 | end |
31 | 31 |
|
32 | | - create_table "breaks", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 32 | + create_table "breaks", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
33 | 33 | t.datetime "start_date", null: false |
34 | 34 | t.integer "number_of_weeks", null: false |
35 | 35 | t.bigint "teaching_period_id" |
36 | 36 | t.index ["teaching_period_id"], name: "index_breaks_on_teaching_period_id" |
37 | 37 | end |
38 | 38 |
|
39 | | - create_table "campuses", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 39 | + create_table "campuses", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
40 | 40 | t.string "name", null: false |
41 | 41 | t.integer "mode", null: false |
42 | 42 | t.string "abbreviation", null: false |
|
56 | 56 | t.index ["tutor_id"], name: "index_chip_usages_on_tutor_id" |
57 | 57 | end |
58 | 58 |
|
59 | | - create_table "comments_read_receipts", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 59 | + create_table "comments_read_receipts", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
60 | 60 | t.bigint "task_comment_id", null: false |
61 | 61 | t.bigint "user_id", null: false |
62 | 62 | t.datetime "created_at", null: false |
|
75 | 75 | t.index ["unit_id"], name: "index_d2l_assessment_mappings_on_unit_id", unique: true |
76 | 76 | end |
77 | 77 |
|
78 | | - create_table "discussion_comments", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 78 | + create_table "discussion_comments", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
79 | 79 | t.datetime "time_started" |
80 | 80 | t.datetime "time_completed" |
81 | 81 | t.integer "number_of_prompts" |
|
98 | 98 | t.index ["parent_chip_id"], name: "index_feedback_chips_on_parent_chip_id" |
99 | 99 | end |
100 | 100 |
|
101 | | - create_table "group_memberships", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 101 | + create_table "group_memberships", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
102 | 102 | t.bigint "group_id" |
103 | 103 | t.bigint "project_id" |
104 | 104 | t.boolean "active", default: true |
|
108 | 108 | t.index ["project_id"], name: "index_group_memberships_on_project_id" |
109 | 109 | end |
110 | 110 |
|
111 | | - create_table "group_sets", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 111 | + create_table "group_sets", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
112 | 112 | t.bigint "unit_id" |
113 | 113 | t.string "name" |
114 | 114 | t.boolean "allow_students_to_create_groups", default: true |
|
122 | 122 | t.index ["unit_id"], name: "index_group_sets_on_unit_id" |
123 | 123 | end |
124 | 124 |
|
125 | | - create_table "group_submissions", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 125 | + create_table "group_submissions", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
126 | 126 | t.bigint "group_id" |
127 | 127 | t.string "notes" |
128 | 128 | t.bigint "submitted_by_project_id" |
|
134 | 134 | t.index ["task_definition_id"], name: "index_group_submissions_on_task_definition_id" |
135 | 135 | end |
136 | 136 |
|
137 | | - create_table "groups", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 137 | + create_table "groups", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
138 | 138 | t.bigint "group_set_id" |
139 | 139 | t.bigint "tutorial_id" |
140 | 140 | t.string "name" |
|
158 | 158 | t.index ["target_id"], name: "index_learning_outcome_links_on_target_id" |
159 | 159 | end |
160 | 160 |
|
161 | | - create_table "learning_outcomes", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 161 | + create_table "learning_outcomes", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
162 | 162 | t.string "short_description" |
163 | 163 | t.string "full_outcome_description", limit: 4096 |
164 | 164 | t.string "abbreviation" |
|
168 | 168 | t.index ["context_id", "context_type"], name: "index_learning_outcomes_on_context_id_and_context_type" |
169 | 169 | end |
170 | 170 |
|
171 | | - create_table "logins", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 171 | + create_table "logins", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
172 | 172 | t.datetime "timestamp" |
173 | 173 | t.bigint "user_id" |
174 | 174 | t.datetime "created_at", null: false |
175 | 175 | t.datetime "updated_at", null: false |
176 | 176 | t.index ["user_id"], name: "index_logins_on_user_id" |
177 | 177 | end |
178 | 178 |
|
179 | | - create_table "overseer_assessments", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 179 | + create_table "overseer_assessments", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
180 | 180 | t.bigint "task_id", null: false |
181 | 181 | t.string "submission_timestamp", null: false |
182 | 182 | t.string "result_task_status" |
|
187 | 187 | t.index ["task_id"], name: "index_overseer_assessments_on_task_id" |
188 | 188 | end |
189 | 189 |
|
190 | | - create_table "overseer_images", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 190 | + create_table "overseer_images", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
191 | 191 | t.string "name", null: false |
192 | 192 | t.string "tag", null: false |
193 | 193 | t.datetime "created_at", null: false |
|
199 | 199 | t.index ["tag"], name: "index_overseer_images_on_tag", unique: true |
200 | 200 | end |
201 | 201 |
|
202 | | - create_table "projects", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 202 | + create_table "projects", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
203 | 203 | t.bigint "unit_id" |
204 | 204 | t.string "project_role" |
205 | 205 | t.datetime "created_at", null: false |
|
226 | 226 | t.index ["user_id"], name: "index_projects_on_user_id" |
227 | 227 | end |
228 | 228 |
|
229 | | - create_table "roles", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 229 | + create_table "roles", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
230 | 230 | t.string "name" |
231 | 231 | t.text "description" |
232 | 232 | t.datetime "created_at", null: false |
233 | 233 | t.datetime "updated_at", null: false |
234 | 234 | end |
235 | 235 |
|
236 | | - create_table "task_comments", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 236 | + create_table "task_comments", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
237 | 237 | t.bigint "task_id", null: false |
238 | 238 | t.bigint "user_id", null: false |
239 | 239 | t.string "comment", limit: 4096 |
|
265 | 265 | t.index ["user_id"], name: "index_task_comments_on_user_id" |
266 | 266 | end |
267 | 267 |
|
268 | | - create_table "task_definitions", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 268 | + create_table "task_definitions", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
269 | 269 | t.bigint "unit_id" |
270 | 270 | t.string "name" |
271 | 271 | t.string "description", limit: 4096 |
|
303 | 303 | t.index ["unit_id"], name: "index_task_definitions_on_unit_id" |
304 | 304 | end |
305 | 305 |
|
306 | | - create_table "task_engagements", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 306 | + create_table "task_engagements", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
307 | 307 | t.datetime "engagement_time" |
308 | 308 | t.string "engagement" |
309 | 309 | t.bigint "task_id" |
|
312 | 312 | t.index ["task_id"], name: "index_task_engagements_on_task_id" |
313 | 313 | end |
314 | 314 |
|
315 | | - create_table "task_pins", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 315 | + create_table "task_pins", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
316 | 316 | t.bigint "task_id", null: false |
317 | 317 | t.bigint "user_id", null: false |
318 | 318 | t.datetime "created_at", null: false |
|
322 | 322 | t.index ["user_id"], name: "fk_rails_915df186ed" |
323 | 323 | end |
324 | 324 |
|
325 | | - create_table "task_similarities", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 325 | + create_table "task_similarities", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
326 | 326 | t.bigint "task_id" |
327 | 327 | t.bigint "other_task_id" |
328 | 328 | t.integer "pct" |
|
337 | 337 | t.index ["tii_submission_id"], name: "index_task_similarities_on_tii_submission_id" |
338 | 338 | end |
339 | 339 |
|
340 | | - create_table "task_statuses", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 340 | + create_table "task_statuses", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
341 | 341 | t.string "name" |
342 | 342 | t.string "description" |
343 | 343 | t.datetime "created_at", null: false |
344 | 344 | t.datetime "updated_at", null: false |
345 | 345 | end |
346 | 346 |
|
347 | | - create_table "task_submissions", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 347 | + create_table "task_submissions", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
348 | 348 | t.datetime "submission_time" |
349 | 349 | t.datetime "assessment_time" |
350 | 350 | t.string "outcome" |
|
356 | 356 | t.index ["task_id"], name: "index_task_submissions_on_task_id" |
357 | 357 | end |
358 | 358 |
|
359 | | - create_table "tasks", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 359 | + create_table "tasks", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
360 | 360 | t.bigint "task_definition_id" |
361 | 361 | t.bigint "project_id" |
362 | 362 | t.bigint "task_status_id" |
|
383 | 383 | t.index ["task_status_id"], name: "index_tasks_on_task_status_id" |
384 | 384 | end |
385 | 385 |
|
386 | | - create_table "teaching_periods", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 386 | + create_table "teaching_periods", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
387 | 387 | t.string "period", null: false |
388 | 388 | t.datetime "start_date", null: false |
389 | 389 | t.datetime "end_date", null: false |
|
453 | 453 | t.index ["tii_task_similarity_id"], name: "index_tii_submissions_on_tii_task_similarity_id" |
454 | 454 | end |
455 | 455 |
|
456 | | - create_table "tutorial_enrolments", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 456 | + create_table "tutorial_enrolments", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
457 | 457 | t.datetime "created_at", null: false |
458 | 458 | t.datetime "updated_at", null: false |
459 | 459 | t.bigint "project_id", null: false |
|
463 | 463 | t.index ["tutorial_id"], name: "index_tutorial_enrolments_on_tutorial_id" |
464 | 464 | end |
465 | 465 |
|
466 | | - create_table "tutorial_streams", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 466 | + create_table "tutorial_streams", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
467 | 467 | t.string "name", null: false |
468 | 468 | t.string "abbreviation", null: false |
469 | 469 | t.datetime "created_at", null: false |
|
477 | 477 | t.index ["unit_id"], name: "index_tutorial_streams_on_unit_id" |
478 | 478 | end |
479 | 479 |
|
480 | | - create_table "tutorials", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 480 | + create_table "tutorials", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
481 | 481 | t.bigint "unit_id" |
482 | 482 | t.string "meeting_day" |
483 | 483 | t.string "meeting_time" |
|
497 | 497 | t.index ["unit_role_id"], name: "index_tutorials_on_unit_role_id" |
498 | 498 | end |
499 | 499 |
|
500 | | - create_table "unit_roles", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 500 | + create_table "unit_roles", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
501 | 501 | t.bigint "user_id" |
502 | 502 | t.bigint "tutorial_id" |
503 | 503 | t.datetime "created_at", null: false |
|
510 | 510 | t.index ["user_id"], name: "index_unit_roles_on_user_id" |
511 | 511 | end |
512 | 512 |
|
513 | | - create_table "units", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 513 | + create_table "units", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
514 | 514 | t.string "name" |
515 | 515 | t.string "description", limit: 4096 |
516 | 516 | t.datetime "start_date" |
|
560 | 560 | t.index ["user_id"], name: "index_user_oauth_tokens_on_user_id" |
561 | 561 | end |
562 | 562 |
|
563 | | - create_table "users", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 563 | + create_table "users", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
564 | 564 | t.string "email", default: "", null: false |
565 | 565 | t.string "encrypted_password", default: "", null: false |
566 | 566 | t.string "reset_password_token" |
|
596 | 596 | t.index ["username"], name: "index_users_on_username", unique: true |
597 | 597 | end |
598 | 598 |
|
599 | | - create_table "webcal_unit_exclusions", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 599 | + create_table "webcal_unit_exclusions", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
600 | 600 | t.bigint "webcal_id", null: false |
601 | 601 | t.bigint "unit_id", null: false |
602 | 602 | t.index ["unit_id", "webcal_id"], name: "index_webcal_unit_exclusions_on_unit_id_and_webcal_id", unique: true |
603 | 603 | t.index ["unit_id"], name: "index_webcal_unit_exclusions_on_unit_id" |
604 | 604 | t.index ["webcal_id"], name: "fk_rails_d5fab02cb7" |
605 | 605 | end |
606 | 606 |
|
607 | | - create_table "webcals", charset: "utf8", collation: "utf8_unicode_ci", force: :cascade do |t| |
| 607 | + create_table "webcals", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| |
608 | 608 | t.string "guid", limit: 36, null: false |
609 | 609 | t.boolean "include_start_dates", default: false, null: false |
610 | 610 | t.bigint "user_id" |
|
0 commit comments