Newer
Older
# 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.
#
# This file is the source Rails uses to define your schema when running `bin/rails
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
# be faster and is potentially less error prone than running all of your
# migrations from scratch. Old migrations may fail to apply correctly if those
# migrations use external dependencies or application code.
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_04_25_084700) do
# These are extensions that must be enabled in order to support this database
create_table "action_text_rich_texts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name", null: false
t.text "body"
t.string "record_type", null: false
t.uuid "record_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["record_type", "record_id", "name"], name: "index_action_text_rich_texts_uniqueness", unique: true
end
create_table "active_storage_attachments", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
t.uuid "record_id", null: false
t.uuid "blob_id", null: false
t.datetime "created_at", precision: nil, null: false
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
end
create_table "active_storage_blobs", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "key", null: false
t.string "filename", null: false
t.string "content_type"
t.text "metadata"
t.string "service_name", null: false
t.bigint "byte_size", null: false
t.string "checksum"
t.datetime "created_at", precision: nil, null: false
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
t.index ["university_id"], name: "index_active_storage_blobs_on_university_id"
create_table "active_storage_variant_records", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "blob_id", null: false
t.string "variation_digest", null: false
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
end
create_table "administration_locations", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.string "name"
t.text "summary"
t.string "address"
t.string "zipcode"
t.string "city"
t.string "country"
t.float "latitude"
t.float "longitude"
t.string "phone"
t.string "url"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.text "featured_image_alt"
t.text "featured_image_credit"
t.uuid "language_id", null: false
t.uuid "original_id"
t.index ["language_id"], name: "index_administration_locations_on_language_id"
t.index ["original_id"], name: "index_administration_locations_on_original_id"
t.index ["university_id"], name: "index_administration_locations_on_university_id"
end
create_table "administration_locations_education_programs", id: false, force: :cascade do |t|
t.uuid "education_program_id", null: false
t.uuid "administration_location_id", null: false
t.index ["administration_location_id", "education_program_id"], name: "index_program_location"
t.index ["education_program_id", "administration_location_id"], name: "index_location_program"
end
create_table "administration_locations_education_schools", id: false, force: :cascade do |t|
t.uuid "education_school_id", null: false
t.uuid "administration_location_id", null: false
t.index ["administration_location_id", "education_school_id"], name: "index_school_location"
t.index ["education_school_id", "administration_location_id"], name: "index_location_school"
create_table "administration_qualiopi_criterions", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
create_table "administration_qualiopi_indicators", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "criterion_id", null: false
t.integer "number"
t.text "name"
t.text "level_expected"
t.text "proof"
t.text "requirement"
t.text "non_conformity"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["criterion_id"], name: "index_administration_qualiopi_indicators_on_criterion_id"
create_table "communication_block_headings", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.string "about_type", null: false
t.uuid "about_id", null: false
t.string "title"
t.integer "level", default: 2
t.uuid "parent_id"
t.integer "position"
t.string "slug"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["about_type", "about_id"], name: "index_communication_block_headings_on_about"
t.index ["parent_id"], name: "index_communication_block_headings_on_parent_id"
t.index ["slug"], name: "index_communication_block_headings_on_slug"
t.index ["university_id"], name: "index_communication_block_headings_on_university_id"
end
create_table "communication_blocks", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.string "about_type"
t.uuid "about_id"
t.jsonb "data"
t.integer "position", default: 0, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.uuid "communication_website_id"
t.index ["about_type", "about_id"], name: "index_communication_website_blocks_on_about"
t.index ["communication_website_id"], name: "index_communication_blocks_on_communication_website_id"
t.index ["heading_id"], name: "index_communication_blocks_on_heading_id"
t.index ["university_id"], name: "index_communication_blocks_on_university_id"
create_table "communication_extranet_connections", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.uuid "extranet_id", null: false
t.string "about_type"
t.uuid "about_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["about_type", "about_id"], name: "index_communication_extranet_connections_on_object"
t.index ["extranet_id"], name: "index_communication_extranet_connections_on_extranet_id"
t.index ["university_id"], name: "index_communication_extranet_connections_on_university_id"
end
create_table "communication_extranet_document_categories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "extranet_id", null: false
t.uuid "university_id", null: false
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["extranet_id"], name: "index_communication_extranet_document_categories_on_extranet_id"
t.index ["slug"], name: "index_communication_extranet_document_categories_on_slug"
t.index ["university_id"], name: "extranet_document_categories_universities"
end
create_table "communication_extranet_document_kinds", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "extranet_id", null: false
t.uuid "university_id", null: false
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["extranet_id"], name: "index_communication_extranet_document_kinds_on_extranet_id"
t.index ["slug"], name: "index_communication_extranet_document_kinds_on_slug"
t.index ["university_id"], name: "extranet_document_kinds_universities"
end
create_table "communication_extranet_documents", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name"
t.uuid "university_id", null: false
t.uuid "extranet_id", null: false
t.boolean "published"
t.datetime "published_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.uuid "kind_id"
t.uuid "category_id"
t.index ["category_id"], name: "extranet_document_categories"
t.index ["extranet_id"], name: "index_communication_extranet_documents_on_extranet_id"
t.index ["kind_id"], name: "index_extranet_document_kinds"
t.index ["university_id"], name: "index_communication_extranet_documents_on_university_id"
create_table "communication_extranet_post_categories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name"
t.string "slug"
t.uuid "extranet_id", null: false
t.uuid "university_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["extranet_id"], name: "index_communication_extranet_post_categories_on_extranet_id"
t.index ["slug"], name: "index_communication_extranet_post_categories_on_slug"
t.index ["university_id"], name: "index_communication_extranet_post_categories_on_university_id"
end
create_table "communication_extranet_posts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "title"
t.boolean "published", default: false
t.datetime "published_at"
t.uuid "author_id"
t.uuid "extranet_id", null: false
t.uuid "university_id", null: false
t.string "featured_image_alt"
t.text "featured_image_credit"
t.string "slug"
t.text "summary"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["author_id"], name: "index_communication_extranet_posts_on_author_id"
t.index ["category_id"], name: "index_communication_extranet_posts_on_category_id"
t.index ["extranet_id"], name: "index_communication_extranet_posts_on_extranet_id"
t.index ["slug"], name: "index_communication_extranet_posts_on_slug"
t.index ["university_id"], name: "index_communication_extranet_posts_on_university_id"
end
create_table "communication_extranets", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "host"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "has_sso", default: false
t.text "sso_cert"
t.jsonb "sso_mapping"
t.string "sso_name_identifier_format"
t.integer "sso_provider", default: 0
t.text "terms"
t.text "privacy_policy"
t.text "cookies_policy"
t.string "color"
t.boolean "feature_posts", default: false
t.boolean "feature_jobs", default: false
t.index ["about_type", "about_id"], name: "index_communication_extranets_on_about"
t.index ["university_id"], name: "index_communication_extranets_on_university_id"
end
create_table "communication_website_agenda_categories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name"
t.string "path"
t.integer "position"
t.string "featured_image_alt"
t.text "featured_image_credit"
t.text "meta_description"
t.string "slug"
t.text "summary"
t.uuid "communication_website_id", null: false
t.uuid "language_id", null: false
t.uuid "original_id"
t.uuid "university_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "is_programs_root", default: false
t.uuid "program_id"
t.index ["communication_website_id"], name: "idx_communication_website_agenda_cats_on_website_id"
t.index ["language_id"], name: "index_communication_website_agenda_categories_on_language_id"
t.index ["original_id"], name: "index_communication_website_agenda_categories_on_original_id"
t.index ["parent_id"], name: "index_communication_website_agenda_categories_on_parent_id"
t.index ["program_id"], name: "index_communication_website_agenda_categories_on_program_id"
t.index ["university_id"], name: "index_communication_website_agenda_categories_on_university_id"
end
create_table "communication_website_agenda_events", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "title"
t.text "summary"
t.uuid "university_id", null: false
t.uuid "communication_website_id", null: false
t.uuid "language_id", null: false
t.boolean "published", default: false
t.date "from_day"
t.time "from_hour"
t.date "to_day"
t.time "to_hour"
t.text "featured_image_alt"
t.text "featured_image_credit"
t.text "meta_description"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["communication_website_id"], name: "index_agenda_events_on_communication_website_id"
t.index ["language_id"], name: "index_communication_website_agenda_events_on_language_id"
t.index ["original_id"], name: "index_communication_website_agenda_events_on_original_id"
t.index ["parent_id"], name: "index_communication_website_agenda_events_on_parent_id"
t.index ["slug"], name: "index_communication_website_agenda_events_on_slug"
t.index ["university_id"], name: "index_communication_website_agenda_events_on_university_id"
end
create_table "communication_website_agenda_events_categories", id: false, force: :cascade do |t|
t.uuid "communication_website_agenda_event_id", null: false
t.uuid "communication_website_agenda_category_id", null: false
t.index ["communication_website_agenda_category_id", "communication_website_agenda_event_id"], name: "category_event"
t.index ["communication_website_agenda_event_id", "communication_website_agenda_category_id"], name: "event_category"
create_table "communication_website_categories_posts", id: false, force: :cascade do |t|
t.uuid "communication_website_post_id", null: false
t.uuid "communication_website_category_id", null: false
t.index ["communication_website_category_id", "communication_website_post_id"], name: "category_post"
t.index ["communication_website_post_id", "communication_website_category_id"], name: "post_category"
end
create_table "communication_website_connections", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.uuid "website_id", null: false
t.string "indirect_object_type", null: false
t.uuid "indirect_object_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "direct_source_type"
t.uuid "direct_source_id"
t.index ["direct_source_type", "direct_source_id"], name: "index_communication_website_connections_on_source"
t.index ["indirect_object_type", "indirect_object_id"], name: "index_communication_website_connections_on_object"
t.index ["university_id"], name: "index_communication_website_connections_on_university_id"
t.index ["website_id"], name: "index_communication_website_connections_on_website_id"
end
create_table "communication_website_git_file_layouts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "path"
t.uuid "communication_website_id", null: false
t.uuid "university_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["communication_website_id"], name: "idx_on_communication_website_id_eb9ee4bc34"
t.index ["university_id"], name: "index_communication_website_git_file_layouts_on_university_id"
end
create_table "communication_website_git_file_orphans", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "path"
t.uuid "communication_website_id", null: false
t.uuid "university_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["communication_website_id"], name: "idx_on_communication_website_id_18bd864000"
t.index ["university_id"], name: "index_communication_website_git_file_orphans_on_university_id"
end
create_table "communication_website_git_files", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "about_type", null: false
t.uuid "about_id", null: false
t.uuid "website_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["about_type", "about_id"], name: "index_communication_website_github_files_on_about"
t.index ["website_id"], name: "index_communication_website_git_files_on_website_id"
create_table "communication_website_localizations", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "communication_website_id", null: false
t.uuid "language_id", null: false
t.uuid "university_id", null: false
t.string "name"
t.string "social_email"
t.string "social_mastodon"
t.string "social_peertube"
t.string "social_x"
t.string "social_github"
t.string "social_linkedin"
t.string "social_youtube"
t.string "social_vimeo"
t.string "social_instagram"
t.string "social_facebook"
t.string "social_tiktok"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["communication_website_id"], name: "idx_on_communication_website_id_ed4630e334"
t.index ["language_id"], name: "index_communication_website_localizations_on_language_id"
t.index ["university_id"], name: "index_communication_website_localizations_on_university_id"
end
create_table "communication_website_menu_items", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.uuid "website_id", null: false
t.uuid "menu_id", null: false
t.string "title"
t.integer "position"
t.integer "kind", default: 0
t.uuid "parent_id"
t.string "about_type"
t.uuid "about_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["about_type", "about_id"], name: "index_communication_website_menu_items_on_about"
t.index ["menu_id"], name: "index_communication_website_menu_items_on_menu_id"
t.index ["parent_id"], name: "index_communication_website_menu_items_on_parent_id"
t.index ["university_id"], name: "index_communication_website_menu_items_on_university_id"
t.index ["website_id"], name: "index_communication_website_menu_items_on_website_id"
end
create_table "communication_website_menus", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["communication_website_id"], name: "idx_comm_website_menus_on_communication_website_id"
t.index ["language_id"], name: "index_communication_website_menus_on_language_id"
t.index ["original_id"], name: "index_communication_website_menus_on_original_id"
t.index ["university_id"], name: "index_communication_website_menus_on_university_id"
end
create_table "communication_website_pages", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.uuid "communication_website_id", null: false
t.string "title"
t.string "slug"
t.text "path"
t.uuid "parent_id"
t.integer "position", default: 0, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "breadcrumb_title"
t.text "header_text"
t.integer "kind"
t.boolean "header_cta", default: false
t.string "header_cta_url"
t.string "header_cta_label"
t.index ["communication_website_id"], name: "index_communication_website_pages_on_communication_website_id"
t.index ["language_id"], name: "index_communication_website_pages_on_language_id"
t.index ["original_id"], name: "index_communication_website_pages_on_original_id"
t.index ["parent_id"], name: "index_communication_website_pages_on_parent_id"
t.index ["slug"], name: "index_communication_website_pages_on_slug"
t.index ["university_id"], name: "index_communication_website_pages_on_university_id"
end
create_table "communication_website_permalinks", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.uuid "website_id", null: false
t.string "about_type", null: false
t.uuid "about_id", null: false
t.string "path"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "is_current", default: true
t.index ["about_type", "about_id"], name: "index_communication_website_permalinks_on_about"
t.index ["university_id"], name: "index_communication_website_permalinks_on_university_id"
t.index ["website_id"], name: "index_communication_website_permalinks_on_website_id"
end
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
create_table "communication_website_portfolio_categories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name"
t.string "slug"
t.text "featured_image_alt"
t.text "featured_image_credit"
t.text "meta_description"
t.boolean "is_programs_root", default: false
t.string "path"
t.integer "position"
t.text "summary"
t.uuid "communication_website_id", null: false
t.uuid "language_id", null: false
t.uuid "original_id"
t.uuid "parent_id"
t.uuid "university_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["communication_website_id"], name: "idx_on_communication_website_id_8f309901d4"
t.index ["language_id"], name: "idx_on_language_id_6e6ffc92a8"
t.index ["original_id"], name: "idx_on_original_id_4cbc9f1290"
t.index ["parent_id"], name: "index_communication_website_portfolio_categories_on_parent_id"
t.index ["university_id"], name: "idx_on_university_id_a07cc0a296"
end
create_table "communication_website_portfolio_categories_projects", id: false, force: :cascade do |t|
t.uuid "communication_website_portfolio_category_id", null: false
t.uuid "communication_website_portfolio_project_id", null: false
t.index ["communication_website_portfolio_category_id", "communication_website_portfolio_project_id"], name: "idx_on_communication_website_portfolio_category_id__77417ffc96"
t.index ["communication_website_portfolio_project_id", "communication_website_portfolio_category_id"], name: "idx_on_communication_website_portfolio_project_id_c_8ffd53123b"
end
create_table "communication_website_portfolio_projects", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "title"
t.string "slug"
t.text "featured_image_alt"
t.text "featured_image_credit"
t.integer "year"
t.text "meta_description"
t.boolean "published", default: false
t.text "summary"
t.uuid "communication_website_id", null: false
t.uuid "language_id", null: false
t.uuid "original_id"
t.uuid "university_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["communication_website_id"], name: "idx_on_communication_website_id_aac12e3adb"
t.index ["language_id"], name: "index_communication_website_portfolio_projects_on_language_id"
t.index ["original_id"], name: "index_communication_website_portfolio_projects_on_original_id"
t.index ["university_id"], name: "idx_on_university_id_ac2f4a0bfc"
end
create_table "communication_website_post_categories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
t.uuid "university_id", null: false
t.uuid "communication_website_id", null: false
t.string "name"
t.text "meta_description"
t.integer "position"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "slug"
t.uuid "parent_id"
t.uuid "program_id"
t.boolean "is_programs_root", default: false
t.string "path"
t.string "featured_image_alt"
t.text "summary"
t.text "featured_image_credit"
t.uuid "original_id"
t.uuid "language_id", null: false
t.index ["communication_website_id"], name: "idx_communication_website_post_cats_on_communication_website_id"
t.index ["language_id"], name: "index_communication_website_post_categories_on_language_id"
t.index ["original_id"], name: "index_communication_website_post_categories_on_original_id"
t.index ["parent_id"], name: "index_communication_website_post_categories_on_parent_id"
t.index ["program_id"], name: "index_communication_website_post_categories_on_program_id"
t.index ["slug"], name: "index_communication_website_post_categories_on_slug"
t.index ["university_id"], name: "index_communication_website_post_categories_on_university_id"
end
create_table "communication_website_posts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.uuid "communication_website_id", null: false
t.string "title"
t.datetime "published_at", precision: nil
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["author_id"], name: "index_communication_website_posts_on_author_id"
t.index ["communication_website_id"], name: "index_communication_website_posts_on_communication_website_id"
t.index ["language_id"], name: "index_communication_website_posts_on_language_id"
t.index ["original_id"], name: "index_communication_website_posts_on_original_id"
t.index ["slug"], name: "index_communication_website_posts_on_slug"
t.index ["university_id"], name: "index_communication_website_posts_on_university_id"
end
create_table "communication_websites", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "access_token"
t.string "repository"
t.text "style"
t.date "style_updated_at"
t.string "git_branch"
t.boolean "in_production", default: false
t.uuid "default_language_id", null: false
t.boolean "feature_posts", default: true
t.boolean "feature_agenda", default: false
t.string "social_mastodon"
t.string "social_x"
t.string "social_linkedin"
t.string "social_youtube"
t.string "social_vimeo"
t.string "social_peertube"
t.string "social_instagram"
t.string "social_facebook"
t.index ["about_type", "about_id"], name: "index_communication_websites_on_about"
t.index ["default_language_id"], name: "index_communication_websites_on_default_language_id"
t.index ["name"], name: "index_communication_websites_on_name", opclass: :gin_trgm_ops, using: :gin
t.index ["university_id"], name: "index_communication_websites_on_university_id"
end
create_table "communication_websites_languages", id: false, force: :cascade do |t|
t.uuid "communication_website_id", null: false
t.uuid "language_id", null: false
t.index ["communication_website_id", "language_id"], name: "website_language"
end
create_table "communication_websites_users", id: false, force: :cascade do |t|
t.uuid "communication_website_id", null: false
t.uuid "user_id", null: false
t.index ["communication_website_id", "user_id"], name: "website_user"
t.index ["user_id", "communication_website_id"], name: "user_website"
end
create_table "delayed_jobs", force: :cascade do |t|
t.integer "priority", default: 0, null: false
t.integer "attempts", default: 0, null: false
t.text "handler", null: false
t.text "last_error"
t.datetime "run_at", precision: nil
t.datetime "locked_at", precision: nil
t.datetime "failed_at", precision: nil
t.datetime "created_at"
t.datetime "updated_at"
t.index ["priority", "run_at"], name: "delayed_jobs_priority"
end
create_table "education_academic_years", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.integer "year"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["university_id"], name: "index_education_academic_years_on_university_id"
end
create_table "education_academic_years_university_people", id: false, force: :cascade do |t|
t.uuid "university_person_id", null: false
t.uuid "education_academic_year_id", null: false
t.index ["education_academic_year_id", "university_person_id"], name: "index_academic_year_person"
t.index ["university_person_id", "education_academic_year_id"], name: "index_person_academic_year"
end
create_table "education_cohorts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.uuid "program_id", null: false
t.uuid "academic_year_id", null: false
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["academic_year_id"], name: "index_education_cohorts_on_academic_year_id"
t.index ["program_id"], name: "index_education_cohorts_on_program_id"
t.index ["school_id"], name: "index_education_cohorts_on_school_id"
t.index ["university_id"], name: "index_education_cohorts_on_university_id"
end
create_table "education_cohorts_university_people", id: false, force: :cascade do |t|
t.uuid "education_cohort_id", null: false
t.uuid "university_person_id", null: false
t.index ["education_cohort_id", "university_person_id"], name: "index_cohort_person"
t.index ["university_person_id", "education_cohort_id"], name: "index_person_cohort"
end
create_table "education_diplomas", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name"
t.string "short_name"
t.integer "level", default: 0
t.string "slug"
t.uuid "university_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.uuid "language_id", null: false
t.uuid "original_id"
t.index ["language_id"], name: "index_education_diplomas_on_language_id"
t.index ["original_id"], name: "index_education_diplomas_on_original_id"
t.index ["university_id"], name: "index_education_diplomas_on_university_id"
end
create_table "education_programs", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.string "name"
t.integer "capacity"
t.boolean "continuing"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "slug"
t.text "evaluation"
t.text "objectives"
t.text "opportunities"
t.text "other"
t.text "pedagogy"
t.text "prerequisites"
t.text "pricing"
t.text "registration"
t.text "content"
t.text "results"
t.text "pricing_continuing"
t.text "pricing_apprenticeship"
t.text "pricing_initial"
t.boolean "qualiopi_certified", default: false
t.text "qualiopi_text"
t.uuid "language_id", null: false
t.uuid "original_id"
t.index ["diploma_id"], name: "index_education_programs_on_diploma_id"
t.index ["language_id"], name: "index_education_programs_on_language_id"
t.index ["original_id"], name: "index_education_programs_on_original_id"
t.index ["university_id"], name: "index_education_programs_on_university_id"
create_table "education_programs_schools", id: false, force: :cascade do |t|
t.uuid "education_program_id", null: false
t.uuid "education_school_id", null: false
t.index ["education_program_id", "education_school_id"], name: "program_school"
t.index ["education_school_id", "education_program_id"], name: "school_program"
end
create_table "education_programs_university_people", id: false, force: :cascade do |t|
t.uuid "university_person_id", null: false
t.uuid "education_program_id", null: false
t.index ["education_program_id", "university_person_id"], name: "index_program_person"
t.index ["university_person_id", "education_program_id"], name: "index_person_program"
end
create_table "education_programs_users", id: false, force: :cascade do |t|
t.uuid "education_program_id", null: false
t.uuid "user_id", null: false
t.index ["education_program_id", "user_id"], name: "index_education_programs_users_on_program_id_and_user_id"
end
create_table "education_schools", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.string "name"
t.string "address"
t.string "zipcode"
t.string "city"
t.string "country"
t.float "latitude"
t.float "longitude"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["university_id"], name: "index_education_schools_on_university_id"
end
create_table "emergency_messages", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id"
t.string "name"
t.string "role"
t.string "subject_fr"
t.string "subject_en"
t.text "content_fr"
t.text "content_en"
t.datetime "delivered_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["university_id"], name: "index_emergency_messages_on_university_id", where: "(university_id IS NOT NULL)"
end
create_table "imports", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.integer "status", default: 0
t.uuid "university_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["university_id"], name: "index_imports_on_university_id"
t.index ["user_id"], name: "index_imports_on_user_id"
create_table "languages", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
create_table "research_hal_authors", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "form_identifier"
t.string "person_identifier"
t.string "first_name"
t.string "last_name"
t.string "full_name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "research_hal_authors_publications", id: false, force: :cascade do |t|
t.uuid "research_hal_author_id", null: false
t.index ["research_hal_author_id", "research_publication_id"], name: "hal_publication_author"
t.index ["research_publication_id", "research_hal_author_id"], name: "hal_author_publication"
create_table "research_hal_authors_university_people", id: false, force: :cascade do |t|
t.uuid "research_hal_author_id", null: false
t.index ["research_hal_author_id", "university_person_id"], name: "hal_person_author"
t.index ["university_person_id", "research_hal_author_id"], name: "hal_author_person"
create_table "research_journal_paper_kinds", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.uuid "journal_id", null: false
t.string "title"
t.string "slug"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.uuid "language_id", null: false
t.uuid "original_id"
t.index ["journal_id"], name: "index_research_journal_paper_kinds_on_journal_id"
t.index ["language_id"], name: "index_research_journal_paper_kinds_on_language_id"
t.index ["original_id"], name: "index_research_journal_paper_kinds_on_original_id"
t.index ["slug"], name: "index_research_journal_paper_kinds_on_slug"
t.index ["university_id"], name: "index_research_journal_paper_kinds_on_university_id"
end
create_table "research_journal_papers", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.uuid "research_journal_id", null: false
t.uuid "research_journal_volume_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "slug"
t.boolean "published", default: false
t.integer "position"
t.uuid "language_id", null: false
t.uuid "original_id"
t.index ["kind_id"], name: "index_research_journal_papers_on_kind_id"
t.index ["language_id"], name: "index_research_journal_papers_on_language_id"
t.index ["original_id"], name: "index_research_journal_papers_on_original_id"
t.index ["research_journal_id"], name: "index_research_journal_papers_on_research_journal_id"
t.index ["research_journal_volume_id"], name: "index_research_journal_papers_on_research_journal_volume_id"
t.index ["university_id"], name: "index_research_journal_papers_on_university_id"
t.index ["updated_by_id"], name: "index_research_journal_papers_on_updated_by_id"
create_table "research_journal_papers_researchers", force: :cascade do |t|
t.uuid "paper_id", null: false
t.index ["paper_id"], name: "index_research_journal_papers_researchers_on_paper_id"
t.index ["researcher_id"], name: "index_research_journal_papers_researchers_on_researcher_id"
create_table "research_journal_volumes", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.uuid "research_journal_id", null: false
t.string "title"
t.integer "number"
t.datetime "published_at", precision: nil
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "slug"
t.uuid "language_id", null: false
t.uuid "original_id"
t.index ["language_id"], name: "index_research_journal_volumes_on_language_id"
t.index ["original_id"], name: "index_research_journal_volumes_on_original_id"
t.index ["research_journal_id"], name: "index_research_journal_volumes_on_research_journal_id"
t.index ["university_id"], name: "index_research_journal_volumes_on_university_id"
end
create_table "research_journals", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.uuid "language_id", null: false
t.index ["language_id"], name: "index_research_journals_on_language_id"
t.index ["university_id"], name: "index_research_journals_on_university_id"
end
create_table "research_laboratories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "university_id", null: false
t.string "name"
t.string "address"
t.string "zipcode"
t.string "city"
t.string "country"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["university_id"], name: "index_research_laboratories_on_university_id"
end