|
124 | 124 | t.string "image_content_type" |
125 | 125 | t.bigint "image_file_size" |
126 | 126 | t.datetime "image_updated_at" |
| 127 | + t.bigint "space_id" |
127 | 128 | t.index ["slug"], name: "index_collections_on_slug", unique: true |
| 129 | + t.index ["space_id"], name: "index_collections_on_space_id" |
128 | 130 | t.index ["user_id"], name: "index_collections_on_user_id" |
129 | 131 | end |
130 | 132 |
|
|
230 | 232 | t.boolean "visible", default: true |
231 | 233 | t.string "language" |
232 | 234 | t.string "open_science", default: [], array: true |
| 235 | + t.bigint "space_id" |
233 | 236 | t.index ["presence"], name: "index_events_on_presence" |
234 | 237 | t.index ["slug"], name: "index_events_on_slug", unique: true |
| 238 | + t.index ["space_id"], name: "index_events_on_space_id" |
235 | 239 | t.index ["user_id"], name: "index_events_on_user_id" |
236 | 240 | end |
237 | 241 |
|
|
294 | 298 | t.datetime "created_at", null: false |
295 | 299 | t.datetime "updated_at", null: false |
296 | 300 | t.string "difficulty_level", default: "notspecified" |
| 301 | + t.bigint "space_id" |
| 302 | + t.index ["space_id"], name: "index_learning_path_topics_on_space_id" |
297 | 303 | end |
298 | 304 |
|
299 | 305 | create_table "learning_paths", force: :cascade do |t| |
|
316 | 322 | t.datetime "created_at", null: false |
317 | 323 | t.datetime "updated_at", null: false |
318 | 324 | t.boolean "public", default: true |
| 325 | + t.bigint "space_id" |
319 | 326 | t.index ["content_provider_id"], name: "index_learning_paths_on_content_provider_id" |
320 | 327 | t.index ["slug"], name: "index_learning_paths_on_slug", unique: true |
| 328 | + t.index ["space_id"], name: "index_learning_paths_on_space_id" |
321 | 329 | t.index ["user_id"], name: "index_learning_paths_on_user_id" |
322 | 330 | end |
323 | 331 |
|
|
379 | 387 | t.text "learning_objectives" |
380 | 388 | t.string "fields", default: [], array: true |
381 | 389 | t.boolean "visible", default: true |
| 390 | + t.bigint "space_id" |
382 | 391 | t.index ["content_provider_id"], name: "index_materials_on_content_provider_id" |
383 | 392 | t.index ["slug"], name: "index_materials_on_slug", unique: true |
| 393 | + t.index ["space_id"], name: "index_materials_on_space_id" |
384 | 394 | t.index ["user_id"], name: "index_materials_on_user_id" |
385 | 395 | end |
386 | 396 |
|
|
616 | 626 | t.date "remote_updated_date" |
617 | 627 | t.boolean "hide_child_nodes", default: false |
618 | 628 | t.boolean "public", default: true |
| 629 | + t.bigint "space_id" |
619 | 630 | t.index ["slug"], name: "index_workflows_on_slug", unique: true |
| 631 | + t.index ["space_id"], name: "index_workflows_on_space_id" |
620 | 632 | t.index ["user_id"], name: "index_workflows_on_user_id" |
621 | 633 | end |
622 | 634 |
|
623 | 635 | add_foreign_key "bans", "users" |
624 | 636 | add_foreign_key "bans", "users", column: "banner_id" |
625 | 637 | add_foreign_key "collaborations", "users" |
| 638 | + add_foreign_key "collections", "spaces" |
626 | 639 | add_foreign_key "collections", "users" |
627 | 640 | add_foreign_key "content_providers", "nodes" |
628 | 641 | add_foreign_key "content_providers", "users" |
629 | 642 | add_foreign_key "event_materials", "events" |
630 | 643 | add_foreign_key "event_materials", "materials" |
| 644 | + add_foreign_key "events", "spaces" |
631 | 645 | add_foreign_key "events", "users" |
632 | 646 | add_foreign_key "learning_path_topic_links", "learning_paths" |
| 647 | + add_foreign_key "learning_path_topics", "spaces" |
633 | 648 | add_foreign_key "learning_paths", "content_providers" |
| 649 | + add_foreign_key "learning_paths", "spaces" |
634 | 650 | add_foreign_key "learning_paths", "users" |
635 | 651 | add_foreign_key "llm_interactions", "events" |
636 | 652 | add_foreign_key "materials", "content_providers" |
| 653 | + add_foreign_key "materials", "spaces" |
637 | 654 | add_foreign_key "materials", "users" |
638 | 655 | add_foreign_key "node_links", "nodes" |
639 | 656 | add_foreign_key "nodes", "users" |
|
644 | 661 | add_foreign_key "stars", "users" |
645 | 662 | add_foreign_key "subscriptions", "users" |
646 | 663 | add_foreign_key "users", "roles" |
| 664 | + add_foreign_key "workflows", "spaces" |
647 | 665 | add_foreign_key "workflows", "users" |
648 | 666 | end |
0 commit comments