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.
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
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_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_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.index ["about_type", "about_id"], name: "index_communication_website_blocks_on_about"
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 "object_type"
t.uuid "object_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["extranet_id"], name: "index_communication_extranet_connections_on_extranet_id"
t.index ["object_type", "object_id"], name: "index_communication_extranet_connections_on_object"
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 ["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 ["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 ["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 ["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"
Loading
Loading full blame...