1141 lines
44 KiB
Ruby
1141 lines
44 KiB
Ruby
# encoding: UTF-8
|
|
# 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: 20190613184241) do
|
|
|
|
create_table "admins", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "firstname", limit: 255
|
|
t.string "avatar", limit: 255
|
|
t.string "username", limit: 255, default: "", null: false
|
|
t.string "email", limit: 255, default: "", null: false
|
|
t.string "password_digest", limit: 255, default: "", null: false
|
|
t.string "reset_password_token", limit: 255
|
|
t.datetime "reset_password_sent_at"
|
|
t.datetime "remember_created_at"
|
|
t.integer "sign_in_count", limit: 4, default: 0
|
|
t.datetime "current_sign_in_at"
|
|
t.datetime "last_sign_in_at"
|
|
t.string "current_sign_in_ip", limit: 255
|
|
t.string "last_sign_in_ip", limit: 255
|
|
t.string "remember_token", limit: 255
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.boolean "cms"
|
|
t.boolean "transactions"
|
|
t.boolean "orders"
|
|
t.boolean "petitions"
|
|
t.boolean "donators"
|
|
t.boolean "newsletter"
|
|
t.boolean "moderateur"
|
|
t.boolean "label_role"
|
|
t.string "color", limit: 255
|
|
t.boolean "contact_role"
|
|
t.boolean "super_admin", default: false
|
|
end
|
|
|
|
create_table "albums", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.boolean "super_admin"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "answer_sets", force: :cascade do |t|
|
|
t.integer "question_set_id", limit: 4
|
|
t.integer "survey_item_answer_id", limit: 4
|
|
t.text "content", limit: 65535
|
|
t.boolean "is_checked"
|
|
t.integer "position", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
add_index "answer_sets", ["question_set_id"], name: "index_answer_sets_on_question_set_id", using: :btree
|
|
add_index "answer_sets", ["survey_item_answer_id"], name: "index_answer_sets_on_survey_item_answer_id", using: :btree
|
|
|
|
create_table "article_authors", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.boolean "enabled"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.string "title", limit: 255
|
|
t.string "url", limit: 255
|
|
end
|
|
|
|
create_table "articles", force: :cascade do |t|
|
|
t.datetime "published_at"
|
|
t.string "title", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.string "tag", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.text "keywords", limit: 65535
|
|
t.boolean "enabled"
|
|
t.integer "image_file_id", limit: 4
|
|
t.boolean "title_cached"
|
|
t.string "tags_cache", limit: 255
|
|
t.string "tags_cache_slug", limit: 255
|
|
t.integer "category_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.string "thumb_style", limit: 255
|
|
t.boolean "commentable"
|
|
t.boolean "show_comments"
|
|
t.integer "title_bottom", limit: 4
|
|
t.boolean "gradient_cached"
|
|
t.integer "article_author_id", limit: 4
|
|
t.integer "without_text_image_file_id", limit: 4
|
|
t.boolean "juridique"
|
|
end
|
|
|
|
add_index "articles", ["article_author_id"], name: "index_articles_on_article_author_id", using: :btree
|
|
|
|
create_table "block_contents", force: :cascade do |t|
|
|
t.integer "style", limit: 4
|
|
t.integer "nbr_columns", limit: 4
|
|
t.integer "row1", limit: 4
|
|
t.integer "row2", limit: 4
|
|
t.integer "row3", limit: 4
|
|
t.integer "row4", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.integer "image_file_id", limit: 4
|
|
t.integer "margin_top", limit: 4
|
|
t.integer "margin_bottom", limit: 4
|
|
t.integer "margin_left", limit: 4
|
|
t.integer "margin_right", limit: 4
|
|
t.integer "padding_top", limit: 4
|
|
t.integer "padding_bottom", limit: 4
|
|
t.integer "padding_left", limit: 4
|
|
t.integer "padding_right", limit: 4
|
|
t.boolean "parallax"
|
|
t.boolean "center"
|
|
t.integer "center_width", limit: 4
|
|
t.string "background_color", limit: 255
|
|
t.string "gradient_start", limit: 255
|
|
t.string "gradient_stop", limit: 255
|
|
end
|
|
|
|
add_index "block_contents", ["image_file_id"], name: "index_block_contents_on_image_file_id", using: :btree
|
|
|
|
create_table "blocks", force: :cascade do |t|
|
|
t.integer "lang_site_id", limit: 4
|
|
t.string "block_name", limit: 255
|
|
t.string "blockable_type", limit: 255
|
|
t.integer "blockable_id", limit: 4
|
|
t.text "content", limit: 65535
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "break_contents", force: :cascade do |t|
|
|
t.boolean "line"
|
|
t.integer "height", limit: 4
|
|
t.string "style", limit: 255
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "categories", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.boolean "enabled"
|
|
t.text "description", limit: 65535
|
|
t.integer "image_file_id", limit: 4
|
|
t.integer "position", limit: 4
|
|
t.integer "parent_id", limit: 4
|
|
t.string "permalink", limit: 255
|
|
t.boolean "front_page"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "category_langs", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.integer "image_file_id", limit: 4
|
|
t.integer "lang_site_id", limit: 4
|
|
t.integer "category_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "category_langs", ["category_id"], name: "index_category_langs_on_category_id", using: :btree
|
|
add_index "category_langs", ["lang_site_id"], name: "index_category_langs_on_lang_site_id", using: :btree
|
|
|
|
create_table "cel_tables", force: :cascade do |t|
|
|
t.integer "position", limit: 4
|
|
t.integer "style", limit: 4
|
|
t.integer "table_row_id", limit: 4
|
|
t.integer "table_content_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "comments", force: :cascade do |t|
|
|
t.string "pseudo", limit: 255, default: ""
|
|
t.string "email", limit: 255, default: ""
|
|
t.string "website", limit: 255, default: ""
|
|
t.boolean "enabled"
|
|
t.text "comment", limit: 65535
|
|
t.integer "commentable_id", limit: 4
|
|
t.string "commentable_type", limit: 255
|
|
t.integer "user_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.integer "parent_id", limit: 4
|
|
t.boolean "newsletter"
|
|
t.boolean "notified", default: false
|
|
t.datetime "notified_at"
|
|
t.integer "lang_site_id", limit: 4, default: 1
|
|
end
|
|
|
|
create_table "contact_actions", force: :cascade do |t|
|
|
t.integer "admin_id", limit: 4
|
|
t.datetime "action_at"
|
|
t.integer "contact_id", limit: 4
|
|
t.string "action_title", limit: 255
|
|
t.text "action_message", limit: 65535
|
|
t.integer "contact_action_pattern_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
add_index "contact_actions", ["contact_id"], name: "index_contact_actions_on_contact_id", using: :btree
|
|
|
|
create_table "contacts", force: :cascade do |t|
|
|
t.string "civilite", limit: 255
|
|
t.string "firstname", limit: 255
|
|
t.string "name", limit: 255
|
|
t.string "address", limit: 255
|
|
t.string "address2", limit: 255
|
|
t.string "cp", limit: 255
|
|
t.string "city", limit: 255
|
|
t.string "country", limit: 255
|
|
t.string "phone", limit: 255
|
|
t.string "token", limit: 255
|
|
t.string "email", limit: 255
|
|
t.string "website", limit: 255
|
|
t.integer "raison_id", limit: 4
|
|
t.text "message", limit: 65535
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.text "notes", limit: 65535
|
|
t.integer "survey_set_id", limit: 4
|
|
t.string "statut", limit: 255
|
|
t.boolean "readed", default: false
|
|
t.integer "admin_id", limit: 4
|
|
t.boolean "archived", default: false
|
|
t.integer "provenance_id", limit: 4
|
|
t.text "small_comment", limit: 65535
|
|
t.string "contact_status", limit: 255
|
|
t.string "corporate", limit: 255
|
|
t.boolean "urgent", default: false
|
|
t.text "objet", limit: 65535
|
|
t.string "raison_text", limit: 255
|
|
end
|
|
|
|
create_table "data_file_categories", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.integer "parent_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "data_file_passwords", force: :cascade do |t|
|
|
t.integer "data_file_id", limit: 4
|
|
t.string "token", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.integer "nbr_downloads", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "data_file_passwords", ["data_file_id"], name: "index_data_file_passwords_on_data_file_id", using: :btree
|
|
|
|
create_table "data_files", force: :cascade do |t|
|
|
t.string "file", limit: 255
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.string "token", limit: 255
|
|
t.string "description", limit: 255
|
|
t.integer "file_folder_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.string "title", limit: 255
|
|
t.text "long_desc", limit: 65535
|
|
t.boolean "boutique"
|
|
t.integer "data_file_category_id", limit: 4
|
|
t.integer "image_file_id", limit: 4
|
|
t.text "yumpu_content", limit: 65535
|
|
t.boolean "show_yumpu"
|
|
t.integer "lang_site_id", limit: 4, default: 1
|
|
t.integer "militer_position", limit: 4
|
|
end
|
|
|
|
add_index "data_files", ["image_file_id"], name: "index_data_files_on_image_file_id", using: :btree
|
|
|
|
create_table "download_contents", force: :cascade do |t|
|
|
t.string "title", limit: 255
|
|
t.string "style", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.integer "data_file_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.boolean "boutique"
|
|
t.boolean "show_yumpu"
|
|
end
|
|
|
|
create_table "dynamic_contents", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "export_hists", force: :cascade do |t|
|
|
t.string "piece", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "external_links", force: :cascade do |t|
|
|
t.string "title", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.string "url", limit: 255
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "file_folders", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.boolean "super_admin"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "gallery_contents", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.integer "style", limit: 4
|
|
t.integer "nbr_img", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "gallery_images", force: :cascade do |t|
|
|
t.string "title", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.string "tags", limit: 255
|
|
t.integer "position", limit: 4
|
|
t.integer "image_file_id", limit: 4
|
|
t.integer "gallery_content_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "hashtaggings", force: :cascade do |t|
|
|
t.integer "hashtag_id", limit: 4
|
|
t.integer "hashtaggable_id", limit: 4
|
|
t.string "hashtaggable_type", limit: 255
|
|
t.integer "lang_site_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "hashtaggings", ["hashtag_id"], name: "index_hashtaggings_on_hashtag_id", using: :btree
|
|
|
|
create_table "hashtags", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.boolean "enabled"
|
|
t.integer "lang_site_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.string "slug", limit: 255
|
|
end
|
|
|
|
create_table "home_slide_langs", force: :cascade do |t|
|
|
t.integer "home_slider_slide_id", limit: 4
|
|
t.integer "lang_site_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "home_slide_langs", ["home_slider_slide_id"], name: "index_home_slide_langs_on_home_slider_slide_id", using: :btree
|
|
add_index "home_slide_langs", ["lang_site_id"], name: "index_home_slide_langs_on_lang_site_id", using: :btree
|
|
|
|
create_table "home_slider_slides", force: :cascade do |t|
|
|
t.integer "home_slider_id", limit: 4
|
|
t.integer "position", limit: 4
|
|
t.datetime "start_at"
|
|
t.datetime "end_at"
|
|
t.integer "image_file_id", limit: 4
|
|
t.boolean "enabled"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.string "url", limit: 255
|
|
t.integer "blur_image_id", limit: 4
|
|
t.string "blur_color", limit: 255
|
|
t.string "title", limit: 255
|
|
t.text "description", limit: 65535
|
|
end
|
|
|
|
add_index "home_slider_slides", ["home_slider_id"], name: "index_home_slider_slides_on_home_slider_id", using: :btree
|
|
|
|
create_table "home_sliders", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "html_contents", force: :cascade do |t|
|
|
t.text "content", limit: 65535
|
|
t.string "style", limit: 255
|
|
t.string "content_type", limit: 255
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "image_actu_album_langs", force: :cascade do |t|
|
|
t.integer "lang_site_id", limit: 4
|
|
t.integer "image_actu_album_id", limit: 4
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "image_actu_album_langs", ["image_actu_album_id"], name: "index_image_actu_album_langs_on_image_actu_album_id", using: :btree
|
|
add_index "image_actu_album_langs", ["lang_site_id"], name: "index_image_actu_album_langs_on_lang_site_id", using: :btree
|
|
|
|
create_table "image_actu_albums", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.integer "image_file_id", limit: 4
|
|
t.integer "parent_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "image_actu_albums", ["image_file_id"], name: "index_image_actu_albums_on_image_file_id", using: :btree
|
|
|
|
create_table "image_actu_langs", force: :cascade do |t|
|
|
t.integer "lang_site_id", limit: 4
|
|
t.integer "image_actu_id", limit: 4
|
|
t.string "title", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.string "slug", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "image_actu_langs", ["image_actu_id"], name: "index_image_actu_langs_on_image_actu_id", using: :btree
|
|
add_index "image_actu_langs", ["lang_site_id"], name: "index_image_actu_langs_on_lang_site_id", using: :btree
|
|
|
|
create_table "image_actus", force: :cascade do |t|
|
|
t.string "title", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.string "slug", limit: 255
|
|
t.boolean "enabled", default: false
|
|
t.boolean "homeable", default: false
|
|
t.integer "position", limit: 4
|
|
t.integer "image_file_id", limit: 4
|
|
t.integer "image_actu_album_id", limit: 4
|
|
t.datetime "published_at"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.string "random_position", limit: 255
|
|
end
|
|
|
|
add_index "image_actus", ["image_file_id"], name: "index_image_actus_on_image_file_id", using: :btree
|
|
|
|
create_table "image_contents", force: :cascade do |t|
|
|
t.integer "image_file_id", limit: 4
|
|
t.integer "width", limit: 4
|
|
t.integer "height", limit: 4
|
|
t.string "alignement", limit: 255
|
|
t.boolean "expandable"
|
|
t.string "style", limit: 255
|
|
t.string "alt", limit: 255
|
|
t.integer "cible_id", limit: 4
|
|
t.string "cible_type", limit: 255
|
|
t.boolean "with_cible"
|
|
t.boolean "popup"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.integer "margin_top", limit: 4
|
|
t.integer "margin_left", limit: 4
|
|
t.integer "margin_right", limit: 4
|
|
t.integer "margin_bottom", limit: 4
|
|
end
|
|
|
|
create_table "image_files", force: :cascade do |t|
|
|
t.string "file", limit: 255
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.string "tags", limit: 255
|
|
t.integer "album_id", limit: 4
|
|
t.string "photograph", limit: 255
|
|
t.string "cible_type", limit: 255
|
|
t.integer "cible_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.string "origin_name", limit: 255
|
|
t.string "token_s", limit: 255
|
|
end
|
|
|
|
create_table "lang_articles", force: :cascade do |t|
|
|
t.datetime "published_at"
|
|
t.string "title", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.text "keywords", limit: 65535
|
|
t.boolean "enabled"
|
|
t.integer "image_file_id", limit: 4
|
|
t.boolean "title_cached"
|
|
t.string "tags_cache", limit: 255
|
|
t.string "tags_cache_slug", limit: 255
|
|
t.integer "lang_site_id", limit: 4
|
|
t.integer "article_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.string "html_title", limit: 255
|
|
t.string "fb_title", limit: 255
|
|
end
|
|
|
|
create_table "lang_pages", force: :cascade do |t|
|
|
t.integer "lang_site_id", limit: 4
|
|
t.integer "page_id", limit: 4
|
|
t.text "title", limit: 65535
|
|
t.text "description", limit: 65535
|
|
t.text "keywords", limit: 65535
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "lang_pages", ["lang_site_id"], name: "index_lang_pages_on_lang_site_id", using: :btree
|
|
add_index "lang_pages", ["page_id"], name: "index_lang_pages_on_page_id", using: :btree
|
|
|
|
create_table "lang_sites", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.boolean "enabled"
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "link_contents", force: :cascade do |t|
|
|
t.integer "type", limit: 4
|
|
t.string "name", limit: 255
|
|
t.string "title", limit: 255
|
|
t.boolean "popup"
|
|
t.string "url", limit: 255
|
|
t.string "style", limit: 255
|
|
t.integer "cible_id", limit: 4
|
|
t.string "cible_type", limit: 255
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "mail_contents", force: :cascade do |t|
|
|
t.integer "lang_site_id", limit: 4
|
|
t.integer "mail_type_id", limit: 4
|
|
t.string "subject", limit: 255
|
|
t.text "message", limit: 65535
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.boolean "enabled"
|
|
t.string "content_type", limit: 255
|
|
t.text "tags", limit: 65535
|
|
t.integer "mail_template_id", limit: 4
|
|
end
|
|
|
|
create_table "mail_profiles", force: :cascade do |t|
|
|
t.string "civilite", limit: 255
|
|
t.string "firstname", limit: 255
|
|
t.string "name", limit: 255
|
|
t.string "address", limit: 255
|
|
t.string "address2", limit: 255
|
|
t.string "cp", limit: 255
|
|
t.string "city", limit: 255
|
|
t.string "country", limit: 255
|
|
t.string "email", limit: 255
|
|
t.string "phone", limit: 255
|
|
t.string "token", limit: 255
|
|
t.string "provider", limit: 255
|
|
t.string "uid", limit: 255
|
|
t.string "facebook_token", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "mail_templates", force: :cascade do |t|
|
|
t.string "title", limit: 255
|
|
t.text "template_html", limit: 65535
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "mail_types", force: :cascade do |t|
|
|
t.string "slug", limit: 255
|
|
t.string "default_title", limit: 255
|
|
t.text "default_message", limit: 65535
|
|
t.integer "mail_type_reference_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "map_contents", force: :cascade do |t|
|
|
t.string "address", limit: 255
|
|
t.string "name", limit: 255
|
|
t.integer "view", limit: 4
|
|
t.boolean "info_bule"
|
|
t.integer "zoom", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "menu_aliases", force: :cascade do |t|
|
|
t.integer "menu_item_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "menu_item_articles", force: :cascade do |t|
|
|
t.integer "menu_item_id", limit: 4
|
|
t.integer "article_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "menu_item_categories", force: :cascade do |t|
|
|
t.integer "menu_item_id", limit: 4
|
|
t.integer "category_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "menu_item_langs", force: :cascade do |t|
|
|
t.integer "lang_site_id", limit: 4
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.string "permalink", limit: 255
|
|
t.boolean "enabled"
|
|
t.boolean "visible"
|
|
t.integer "menu_item_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.integer "image_file_id", limit: 4
|
|
end
|
|
|
|
add_index "menu_item_langs", ["image_file_id"], name: "index_menu_item_langs_on_image_file_id", using: :btree
|
|
add_index "menu_item_langs", ["lang_site_id"], name: "index_menu_item_langs_on_lang_site_id", using: :btree
|
|
|
|
create_table "menu_item_link_contents", force: :cascade do |t|
|
|
t.integer "menu_item_id", limit: 4
|
|
t.integer "image_file_id", limit: 4
|
|
t.string "title", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.string "url", limit: 255
|
|
t.boolean "popup"
|
|
t.string "style", limit: 255
|
|
t.string "block_type", limit: 255
|
|
t.integer "cible_id", limit: 4
|
|
t.string "cible_type", limit: 255
|
|
t.decimal "proportion", precision: 15, scale: 10
|
|
t.integer "level", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "menu_item_link_contents", ["image_file_id"], name: "index_menu_item_link_contents_on_image_file_id", using: :btree
|
|
add_index "menu_item_link_contents", ["menu_item_id"], name: "index_menu_item_link_contents_on_menu_item_id", using: :btree
|
|
|
|
create_table "menu_item_slug_histories", force: :cascade do |t|
|
|
t.string "permalink", limit: 255
|
|
t.string "locale", limit: 255
|
|
t.integer "menu_item_id", limit: 4
|
|
t.integer "menu_item_lang_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "menu_item_tags", force: :cascade do |t|
|
|
t.integer "menu_item_id", limit: 4
|
|
t.integer "tag_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "menu_items", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.string "permalink", limit: 255
|
|
t.integer "image_file_id", limit: 4
|
|
t.string "section_name", limit: 255
|
|
t.integer "section_id", limit: 4
|
|
t.string "repertoire_name", limit: 255
|
|
t.integer "repertoire_id", limit: 4
|
|
t.integer "parent_id", limit: 4
|
|
t.integer "position", limit: 4
|
|
t.boolean "super_admin"
|
|
t.boolean "enabled"
|
|
t.boolean "visible"
|
|
t.boolean "deleted"
|
|
t.integer "menu_id", limit: 4
|
|
t.integer "menu_content_id", limit: 4
|
|
t.string "menu_content_type", limit: 255
|
|
t.integer "archive_id", limit: 4
|
|
t.boolean "archived"
|
|
t.datetime "archived_at"
|
|
t.boolean "password"
|
|
t.boolean "comment"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.boolean "sidebar"
|
|
t.boolean "title_image"
|
|
t.string "title_image_style", limit: 255
|
|
t.boolean "title_cached"
|
|
t.integer "icon_image_file_id", limit: 4
|
|
t.integer "icon_b_image_file_id", limit: 4
|
|
t.text "primary_description", limit: 65535
|
|
end
|
|
|
|
create_table "menu_urls", force: :cascade do |t|
|
|
t.string "url", limit: 255
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "menus", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "max_levels", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "newsletters", force: :cascade do |t|
|
|
t.string "subject", limit: 255
|
|
t.text "content", limit: 65535
|
|
t.boolean "sended"
|
|
t.boolean "send_at"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.boolean "special"
|
|
t.string "slug", limit: 255
|
|
t.text "html_content", limit: 65535
|
|
t.boolean "html_news"
|
|
end
|
|
|
|
create_table "pages", force: :cascade do |t|
|
|
t.text "title", limit: 65535
|
|
t.text "description", limit: 65535
|
|
t.text "keywords", limit: 65535
|
|
t.integer "lang_site_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
add_index "pages", ["lang_site_id"], name: "index_pages_on_lang_site_id", using: :btree
|
|
|
|
create_table "portlets", force: :cascade do |t|
|
|
t.integer "block_id", limit: 4
|
|
t.integer "content_id", limit: 4
|
|
t.string "content_type", limit: 255
|
|
t.integer "position", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "press_releases", force: :cascade do |t|
|
|
t.string "title", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.text "description_longue", limit: 65535
|
|
t.datetime "published_at"
|
|
t.string "author", limit: 255
|
|
t.integer "image_file_id", limit: 4
|
|
t.integer "category_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.boolean "enabled", default: false
|
|
t.integer "lang_site_id", limit: 4, default: 1
|
|
t.integer "press_type_id", limit: 4, default: 1
|
|
end
|
|
|
|
create_table "question_sets", force: :cascade do |t|
|
|
t.integer "survey_item_id", limit: 4
|
|
t.integer "survey_set_id", limit: 4
|
|
t.string "content", limit: 255
|
|
t.boolean "boolean_content"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
add_index "question_sets", ["survey_item_id"], name: "index_question_sets_on_survey_item_id", using: :btree
|
|
add_index "question_sets", ["survey_set_id"], name: "index_question_sets_on_survey_set_id", using: :btree
|
|
|
|
create_table "quote_contents", force: :cascade do |t|
|
|
t.text "quote", limit: 65535
|
|
t.string "author", limit: 255
|
|
t.string "color", limit: 255
|
|
t.string "background", limit: 255
|
|
t.string "style", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "registrants", force: :cascade do |t|
|
|
t.string "token", limit: 255
|
|
t.string "name", limit: 255
|
|
t.string "surname", limit: 255
|
|
t.string "email", limit: 255
|
|
t.boolean "enabled"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.integer "lang_site_id", limit: 4, default: 1
|
|
t.integer "provenance_id", limit: 4
|
|
end
|
|
|
|
create_table "specific_map_items", force: :cascade do |t|
|
|
t.integer "specific_map_id", limit: 4
|
|
t.decimal "g_latitude", precision: 10, scale: 6
|
|
t.decimal "decimal", precision: 10, scale: 6
|
|
t.decimal "g_longitude", precision: 10, scale: 6
|
|
t.string "g_text", limit: 255
|
|
t.string "titre", limit: 255
|
|
t.string "name", limit: 255
|
|
t.string "firstname", limit: 255
|
|
t.string "organisation", limit: 255
|
|
t.string "address", limit: 255
|
|
t.string "cp", limit: 255
|
|
t.string "city", limit: 255
|
|
t.string "country", limit: 255
|
|
t.string "tel", limit: 255
|
|
t.string "email", limit: 255
|
|
t.string "website", limit: 255
|
|
t.string "notes", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "specific_map_items", ["specific_map_id"], name: "index_specific_map_items_on_specific_map_id", using: :btree
|
|
|
|
create_table "specific_maps", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "specific_preferences", force: :cascade do |t|
|
|
t.string "key", limit: 255
|
|
t.string "value", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "survey_groups", force: :cascade do |t|
|
|
t.text "name", limit: 65535
|
|
t.integer "group_type", limit: 4, default: 1
|
|
t.integer "survey_step_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.string "slug", limit: 255
|
|
end
|
|
|
|
create_table "survey_item_answers", force: :cascade do |t|
|
|
t.text "label_text", limit: 65535
|
|
t.text "help_text", limit: 65535
|
|
t.string "class_text", limit: 255
|
|
t.integer "field_type", limit: 4
|
|
t.integer "data_type", limit: 4
|
|
t.integer "survey_item_id", limit: 4
|
|
t.boolean "locked"
|
|
t.boolean "archived"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.string "slug", limit: 255
|
|
end
|
|
|
|
add_index "survey_item_answers", ["survey_item_id"], name: "index_survey_item_answers_on_survey_item_id", using: :btree
|
|
|
|
create_table "survey_items", force: :cascade do |t|
|
|
t.integer "item_type", limit: 4
|
|
t.text "title", limit: 65535
|
|
t.text "description", limit: 65535
|
|
t.text "help", limit: 65535
|
|
t.integer "questions_type", limit: 4
|
|
t.integer "display_type", limit: 4
|
|
t.integer "survey_type_id", limit: 4
|
|
t.integer "string_type", limit: 4
|
|
t.boolean "locked"
|
|
t.boolean "archived"
|
|
t.integer "text_presentation", limit: 4
|
|
t.integer "max_checkboxes", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.integer "survey_group_id", limit: 4
|
|
t.integer "survey_step_id", limit: 4
|
|
t.string "slug", limit: 255
|
|
end
|
|
|
|
add_index "survey_items", ["survey_group_id"], name: "index_survey_items_on_survey_group_id", using: :btree
|
|
add_index "survey_items", ["survey_step_id"], name: "index_survey_items_on_survey_step_id", using: :btree
|
|
add_index "survey_items", ["survey_type_id"], name: "index_survey_items_on_survey_type_id", using: :btree
|
|
|
|
create_table "survey_sets", force: :cascade do |t|
|
|
t.integer "survey_type_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.boolean "is_fill", default: false
|
|
t.boolean "is_complete", default: false
|
|
end
|
|
|
|
add_index "survey_sets", ["survey_type_id"], name: "index_survey_sets_on_survey_type_id", using: :btree
|
|
|
|
create_table "survey_steps", force: :cascade do |t|
|
|
t.text "name", limit: 65535
|
|
t.integer "survey_type_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
t.string "slug", limit: 255
|
|
end
|
|
|
|
create_table "survey_types", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.text "thank_text", limit: 65535
|
|
t.text "intro_text", limit: 65535
|
|
t.boolean "locked"
|
|
t.boolean "archived"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "table_contents", force: :cascade do |t|
|
|
t.integer "style", limit: 4
|
|
t.integer "nbr_rows", limit: 4
|
|
t.integer "nbr_cols", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "table_rows", force: :cascade do |t|
|
|
t.integer "position", limit: 4
|
|
t.integer "style", limit: 4
|
|
t.integer "table_content_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "tag_taggables", force: :cascade do |t|
|
|
t.string "taggable_type", limit: 255
|
|
t.integer "taggable_id", limit: 4
|
|
t.integer "tag_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "tags", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.integer "parent_id", limit: 4
|
|
t.boolean "public"
|
|
t.string "taggable_type", limit: 255
|
|
t.integer "taggable_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "text_contents", force: :cascade do |t|
|
|
t.string "style", limit: 255
|
|
t.text "content", limit: 65535
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "timeline_contents", force: :cascade do |t|
|
|
t.integer "image_file_id", limit: 4
|
|
t.string "title", limit: 255
|
|
t.integer "position", limit: 4
|
|
t.text "content", limit: 65535
|
|
t.integer "timeline_year_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "timeline_contents", ["image_file_id"], name: "index_timeline_contents_on_image_file_id", using: :btree
|
|
add_index "timeline_contents", ["timeline_year_id"], name: "index_timeline_contents_on_timeline_year_id", using: :btree
|
|
|
|
create_table "timeline_histories", force: :cascade do |t|
|
|
t.string "title", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "timeline_history_contents", force: :cascade do |t|
|
|
t.integer "timeline_history_id", limit: 4
|
|
t.string "style", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "timeline_history_contents", ["timeline_history_id"], name: "index_timeline_history_contents_on_timeline_history_id", using: :btree
|
|
|
|
create_table "timeline_years", force: :cascade do |t|
|
|
t.integer "year", limit: 4
|
|
t.integer "r", limit: 4
|
|
t.integer "timeline_history_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "timeline_years", ["timeline_history_id"], name: "index_timeline_years_on_timeline_history_id", using: :btree
|
|
|
|
create_table "tiny_urls", force: :cascade do |t|
|
|
t.string "url", limit: 255
|
|
t.string "slug", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.datetime "start_at"
|
|
t.datetime "stop_at"
|
|
t.integer "nbr_views", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "title_contents", force: :cascade do |t|
|
|
t.text "content", limit: 65535
|
|
t.integer "level", limit: 4
|
|
t.string "style", limit: 255
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.string "alignement", limit: 255
|
|
end
|
|
|
|
create_table "transaction_abos", force: :cascade do |t|
|
|
t.decimal "amount", precision: 10
|
|
t.string "number", limit: 255
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
create_table "translations", force: :cascade do |t|
|
|
t.string "locale", limit: 255
|
|
t.string "key", limit: 255
|
|
t.text "value", limit: 65535
|
|
t.text "interpolations", limit: 65535
|
|
t.boolean "is_proc", default: false
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "video_contents", force: :cascade do |t|
|
|
t.integer "video_file_id", limit: 4
|
|
t.string "title", limit: 255
|
|
t.boolean "download"
|
|
t.boolean "autoplay"
|
|
t.boolean "fullscreen"
|
|
t.boolean "controls"
|
|
t.string "legend", limit: 255
|
|
t.string "style", limit: 255
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
add_index "video_contents", ["video_file_id"], name: "index_video_contents_on_video_file_id", using: :btree
|
|
|
|
create_table "video_file_langs", force: :cascade do |t|
|
|
t.string "title", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.string "slug", limit: 255
|
|
t.integer "video_file_id", limit: 4
|
|
t.integer "lang_site_id", limit: 4
|
|
t.datetime "created_at", null: false
|
|
t.datetime "updated_at", null: false
|
|
end
|
|
|
|
add_index "video_file_langs", ["video_file_id"], name: "index_video_file_langs_on_video_file_id", using: :btree
|
|
|
|
create_table "video_files", force: :cascade do |t|
|
|
t.string "title", limit: 255
|
|
t.text "description", limit: 65535
|
|
t.string "token", limit: 255
|
|
t.string "poster", limit: 255
|
|
t.string "mpg", limit: 255
|
|
t.string "ogg", limit: 255
|
|
t.string "webm", limit: 255
|
|
t.string "youtube_link", limit: 255
|
|
t.string "youtube_code", limit: 255
|
|
t.integer "video_folder_id", limit: 4
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.string "slug", limit: 255
|
|
t.integer "image_file_id", limit: 4
|
|
t.string "vimeo_code", limit: 255
|
|
t.boolean "public", default: false
|
|
t.datetime "published_at"
|
|
t.integer "position", limit: 4
|
|
t.boolean "fr", default: true
|
|
t.boolean "en", default: false
|
|
end
|
|
|
|
add_index "video_files", ["image_file_id"], name: "index_video_files_on_image_file_id", using: :btree
|
|
add_index "video_files", ["video_folder_id"], name: "index_video_files_on_video_folder_id", using: :btree
|
|
|
|
create_table "video_folders", force: :cascade do |t|
|
|
t.string "name", limit: 255
|
|
t.boolean "super_admin"
|
|
t.text "description", limit: 65535
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.boolean "public"
|
|
t.integer "position", limit: 4
|
|
end
|
|
|
|
add_foreign_key "articles", "article_authors"
|
|
add_foreign_key "block_contents", "image_files"
|
|
add_foreign_key "data_file_passwords", "data_files"
|
|
add_foreign_key "data_files", "image_files"
|
|
add_foreign_key "home_slide_langs", "home_slider_slides"
|
|
add_foreign_key "home_slide_langs", "lang_sites"
|
|
add_foreign_key "home_slider_slides", "home_sliders"
|
|
add_foreign_key "image_actu_album_langs", "image_actu_albums"
|
|
add_foreign_key "image_actu_album_langs", "lang_sites"
|
|
add_foreign_key "image_actu_albums", "image_files"
|
|
add_foreign_key "image_actu_langs", "image_actus"
|
|
add_foreign_key "image_actu_langs", "lang_sites"
|
|
add_foreign_key "image_actus", "image_files"
|
|
add_foreign_key "lang_pages", "lang_sites"
|
|
add_foreign_key "lang_pages", "pages"
|
|
add_foreign_key "menu_item_langs", "image_files"
|
|
add_foreign_key "menu_item_langs", "lang_sites"
|
|
add_foreign_key "specific_map_items", "specific_maps"
|
|
add_foreign_key "survey_items", "survey_groups"
|
|
add_foreign_key "survey_items", "survey_steps"
|
|
add_foreign_key "timeline_contents", "image_files"
|
|
add_foreign_key "timeline_contents", "timeline_years"
|
|
add_foreign_key "timeline_years", "timeline_histories"
|
|
add_foreign_key "video_file_langs", "video_files"
|
|
add_foreign_key "video_files", "image_files"
|
|
end
|