# 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: 20180322155011) do

  create_table "admins", force: true do |t|
    t.string   "email",                  default: "", null: false
    t.string   "encrypted_password",     default: "", null: false
    t.string   "reset_password_token"
    t.datetime "reset_password_sent_at"
    t.datetime "remember_created_at"
    t.integer  "sign_in_count",          default: 0
    t.datetime "current_sign_in_at"
    t.datetime "last_sign_in_at"
    t.string   "current_sign_in_ip"
    t.string   "last_sign_in_ip"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "avatar"
    t.string   "password_digest",        default: "", null: false
    t.string   "remember_token"
    t.string   "username"
    t.string   "name"
    t.string   "firstname"
    t.string   "file"
  end

  create_table "albums", force: true do |t|
    t.string   "name"
    t.boolean  "super_admin"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "answer_sets", force: true do |t|
    t.integer  "question_set_id"
    t.integer  "survey_item_answer_id"
    t.text     "content"
    t.boolean  "is_checked"
    t.datetime "created_at",            null: false
    t.datetime "updated_at",            null: false
    t.integer  "position"
  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 "archive_newsletters", force: true do |t|
    t.integer  "newsletter_id"
    t.string   "title"
    t.text     "content"
    t.string   "email_from"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "archive_newsletters", ["newsletter_id"], name: "index_archive_newsletters_on_newsletter_id", using: :btree

  create_table "articles", force: true do |t|
    t.datetime "published_at"
    t.string   "title"
    t.string   "slug"
    t.string   "tag"
    t.text     "description"
    t.text     "keywords"
    t.boolean  "enabled"
    t.integer  "image_file_id"
    t.boolean  "title_cached"
    t.string   "tags_cache"
    t.string   "tags_cache_slug"
    t.integer  "category_id"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "author_id"
    t.boolean  "echo",            default: false
  end

  add_index "articles", ["author_id"], name: "index_articles_on_author_id", using: :btree

  create_table "authors", force: true do |t|
    t.string   "name"
    t.text     "bio"
    t.integer  "image_file_id"
    t.string   "slug"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "authors", ["image_file_id"], name: "index_authors_on_image_file_id", using: :btree

  create_table "block_contents", force: true do |t|
    t.integer  "style"
    t.integer  "nbr_columns"
    t.integer  "row1"
    t.integer  "row2"
    t.integer  "row3"
    t.integer  "row4"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "image_file_id"
    t.integer  "margin_top"
    t.integer  "margin_bottom"
    t.integer  "margin_left"
    t.integer  "margin_right"
    t.integer  "padding_top"
    t.integer  "padding_bottom"
    t.integer  "padding_left"
    t.integer  "padding_right"
    t.boolean  "parallax"
    t.boolean  "center"
    t.integer  "center_width"
    t.string   "background_color"
    t.string   "gradient_start"
    t.string   "gradient_stop"
  end

  create_table "blocks", force: true do |t|
    t.string   "block_name"
    t.string   "blockable_type"
    t.integer  "blockable_id"
    t.text     "content"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "break_contents", force: true do |t|
    t.boolean  "line"
    t.integer  "height"
    t.string   "style"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "categories", force: true do |t|
    t.string   "name"
    t.string   "slug"
    t.boolean  "enabled"
    t.text     "description"
    t.integer  "image_file_id"
    t.integer  "position"
    t.integer  "parent_id"
    t.string   "permalink"
    t.boolean  "front_page"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "cel_tables", force: true do |t|
    t.integer  "position"
    t.integer  "style"
    t.integer  "table_row_id"
    t.integer  "table_content_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "comments", force: true do |t|
    t.string   "pseudo",           default: ""
    t.string   "email",            default: ""
    t.string   "website",          default: ""
    t.boolean  "enabled"
    t.text     "comment"
    t.integer  "commentable_id"
    t.string   "commentable_type"
    t.integer  "user_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "comments", ["commentable_id"], name: "index_comments_on_commentable_id", using: :btree
  add_index "comments", ["commentable_type"], name: "index_comments_on_commentable_type", using: :btree

  create_table "data_files", force: true do |t|
    t.string   "file"
    t.string   "name"
    t.string   "slug"
    t.string   "token"
    t.string   "description"
    t.integer  "file_folder_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "donates", force: true do |t|
    t.date     "paid_at"
    t.integer  "amount"
    t.integer  "payment_type"
    t.string   "bank"
    t.string   "check_number"
    t.text     "comment"
    t.integer  "sheet_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "download_contents", force: true do |t|
    t.string   "title"
    t.string   "style"
    t.text     "description"
    t.integer  "data_file_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "dynamic_contents", force: true do |t|
    t.string   "name"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "events", force: true do |t|
    t.string   "title"
    t.text     "description"
    t.datetime "start_at"
    t.boolean  "entire_day"
    t.boolean  "stop_date"
    t.datetime "stop_at"
    t.boolean  "many_days"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "image_file_id"
  end

  add_index "events", ["image_file_id"], name: "index_events_on_image_file_id", using: :btree

  create_table "external_links", force: true do |t|
    t.string   "title"
    t.text     "description"
    t.string   "url"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "faqs", force: true do |t|
    t.string   "title"
    t.text     "description"
    t.boolean  "enabled"
    t.string   "slug"
    t.integer  "image_file_id"
    t.string   "tags_cache"
    t.string   "tags_cache_slug"
    t.integer  "category_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "file_folders", force: true do |t|
    t.string   "name"
    t.boolean  "super_admin"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "followed_topics", force: true do |t|
    t.integer  "forum_user_id"
    t.integer  "forum_topic_id"
    t.boolean  "enabled"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "followed_topics", ["forum_topic_id"], name: "index_followed_topics_on_forum_topic_id", using: :btree
  add_index "followed_topics", ["forum_user_id"], name: "index_followed_topics_on_forum_user_id", using: :btree

  create_table "forum_categories", force: true do |t|
    t.string   "title"
    t.text     "description"
    t.integer  "parent_id"
    t.integer  "forum_id"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

  create_table "forum_messages", force: true do |t|
    t.integer  "forum_user_id"
    t.integer  "forum_topic_id"
    t.string   "title"
    t.text     "description"
    t.datetime "created_at",     null: false
    t.datetime "updated_at",     null: false
  end

  add_index "forum_messages", ["forum_user_id"], name: "index_forum_messages_on_forum_user_id", using: :btree

  create_table "forum_topics", force: true do |t|
    t.integer  "forum_user_id"
    t.integer  "category_id"
    t.string   "title"
    t.text     "description"
    t.datetime "created_at",    null: false
    t.datetime "updated_at",    null: false
    t.boolean  "enabled"
  end

  add_index "forum_topics", ["forum_user_id"], name: "index_forum_topics_on_forum_user_id", using: :btree

  create_table "forum_user_images", force: true do |t|
    t.integer  "album_id_id"
    t.integer  "forum_user_id"
    t.string   "image"
    t.string   "title"
    t.integer  "views"
    t.text     "description"
    t.datetime "created_at",    null: false
    t.datetime "updated_at",    null: false
  end

  add_index "forum_user_images", ["album_id_id"], name: "index_forum_user_images_on_album_id_id", using: :btree
  add_index "forum_user_images", ["forum_user_id"], name: "index_forum_user_images_on_forum_user_id", using: :btree

  create_table "forum_user_topic_vieweds", force: true do |t|
    t.integer  "forum_topic_id"
    t.integer  "forum_user_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "forum_user_topic_vieweds", ["forum_topic_id"], name: "index_forum_user_topic_vieweds_on_forum_topic_id", using: :btree
  add_index "forum_user_topic_vieweds", ["forum_user_id"], name: "index_forum_user_topic_vieweds_on_forum_user_id", using: :btree

  create_table "forum_users", force: true do |t|
    t.string   "name"
    t.string   "firstname"
    t.text     "bio"
    t.string   "avatar"
    t.string   "localisation"
    t.boolean  "moderator"
    t.string   "email",                                      default: "", null: false
    t.string   "password_digest",                            default: "", null: false
    t.string   "reset_password_token"
    t.datetime "reset_password_sent_at"
    t.datetime "remember_created_at"
    t.integer  "sign_in_count",                              default: 0
    t.datetime "current_sign_in_at"
    t.datetime "last_sign_in_at"
    t.string   "current_sign_in_ip"
    t.string   "last_sign_in_ip"
    t.boolean  "lock"
    t.datetime "locked_at"
    t.datetime "created_at",                                              null: false
    t.datetime "updated_at",                                              null: false
    t.string   "sheet_number"
    t.integer  "sheet_id"
    t.boolean  "show_email"
    t.boolean  "new_message_notification"
    t.datetime "last_new_message_notification"
    t.boolean  "new_message_on_my_topics_notification"
    t.datetime "last_new_message_on_my_topics_notification"
    t.string   "auth_token"
    t.boolean  "new_messages_notifications"
    t.boolean  "new_topic_notifications"
    t.boolean  "follow_new_topics"
    t.boolean  "follow_participated_topics"
  end

  create_table "forums", force: true do |t|
    t.string   "title"
    t.text     "description"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

  create_table "gallery_contents", force: true do |t|
    t.string   "name"
    t.text     "description"
    t.integer  "style"
    t.integer  "nbr_img"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "gallery_images", force: true do |t|
    t.string   "title"
    t.text     "description"
    t.string   "tags"
    t.integer  "position"
    t.integer  "image_file_id"
    t.integer  "gallery_content_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "html_contents", force: true do |t|
    t.text     "content"
    t.string   "style"
    t.string   "content_type"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "image_contents", force: true do |t|
    t.integer  "image_file_id"
    t.integer  "width"
    t.integer  "height"
    t.string   "alignement"
    t.boolean  "expandable"
    t.string   "style"
    t.string   "alt"
    t.integer  "cible_id"
    t.string   "cible_type"
    t.boolean  "with_cible"
    t.boolean  "popup"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.boolean  "with_legend"
    t.string   "credits"
    t.integer  "margin_top"
    t.integer  "margin_bottom"
    t.integer  "margin_left"
    t.integer  "margin_right"
  end

  create_table "image_files", force: true do |t|
    t.string   "file"
    t.string   "name"
    t.string   "slug"
    t.text     "description"
    t.string   "tags"
    t.integer  "album_id"
    t.string   "photograph"
    t.string   "cible_type"
    t.integer  "cible_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "link_contents", force: true do |t|
    t.integer  "type"
    t.string   "name"
    t.string   "title"
    t.boolean  "popup"
    t.string   "url"
    t.string   "style"
    t.integer  "cible_id"
    t.string   "cible_type"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "mail_archives", force: true do |t|
    t.integer  "newsletter_id"
    t.integer  "archive_newsletter_id"
    t.string   "email"
    t.integer  "sheet_id"
    t.integer  "person_id"
    t.string   "token"
    t.boolean  "readed"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "mail_archives", ["archive_newsletter_id"], name: "index_mail_archives_on_archive_newsletter_id", using: :btree
  add_index "mail_archives", ["newsletter_id"], name: "index_mail_archives_on_newsletter_id", using: :btree
  add_index "mail_archives", ["person_id"], name: "index_mail_archives_on_person_id", using: :btree
  add_index "mail_archives", ["sheet_id"], name: "index_mail_archives_on_sheet_id", using: :btree

  create_table "map_contents", force: true do |t|
    t.string   "address"
    t.string   "name"
    t.integer  "view"
    t.boolean  "info_bule"
    t.integer  "zoom"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "menu_aliases", force: true do |t|
    t.integer  "menu_item_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "menu_items", force: true do |t|
    t.string   "name"
    t.string   "slug"
    t.string   "permalink"
    t.string   "section_name"
    t.integer  "section_id"
    t.string   "repertoire_name"
    t.integer  "repertoire_id"
    t.integer  "parent_id"
    t.integer  "position"
    t.boolean  "super_admin"
    t.boolean  "enabled"
    t.boolean  "visible"
    t.boolean  "deleted"
    t.integer  "menu_id"
    t.integer  "menu_content_id"
    t.string   "menu_content_type"
    t.integer  "archive_id"
    t.boolean  "archived"
    t.datetime "archived_at"
    t.boolean  "password"
    t.boolean  "comment"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "menu_urls", force: true do |t|
    t.string   "url"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "menus", force: true do |t|
    t.string   "name"
    t.string   "max_levels"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "newsgroups", force: true do |t|
    t.string   "name"
    t.text     "description"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "newsletters", force: true do |t|
    t.string   "title"
    t.text     "content"
    t.datetime "sendmail"
    t.boolean  "archive"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "email_from"
  end

  create_table "note_files", force: true do |t|
    t.string   "file"
    t.string   "name"
    t.string   "slug"
    t.text     "description"
    t.integer  "admin_id"
    t.integer  "note_id"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

  create_table "notes", force: true do |t|
    t.string   "subject"
    t.text     "message"
    t.integer  "admin_id"
    t.integer  "topic_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
  end

  add_index "notes", ["admin_id"], name: "index_notes_on_admin_id", using: :btree

  create_table "order_products", force: true do |t|
    t.integer  "product_id"
    t.integer  "order_id"
    t.string   "name"
    t.text     "description"
    t.decimal  "price",       precision: 15, scale: 10
    t.string   "slug"
    t.string   "pdf_path"
    t.string   "epub_path"
    t.string   "mobi_path"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "orders", force: true do |t|
    t.string   "email"
    t.string   "subtotal"
    t.string   "partner_id"
    t.string   "total"
    t.string   "firstname"
    t.string   "name"
    t.string   "street1"
    t.string   "street2"
    t.string   "cityname"
    t.string   "state_or_province"
    t.string   "country"
    t.string   "payment_type"
    t.datetime "paid_at"
    t.boolean  "paid"
    t.string   "postal_code"
    t.string   "token"
    t.string   "sheet_token"
    t.string   "paypal_test_ipn"
    t.string   "paypal_txn_type"
    t.string   "paypal_txn_id"
    t.datetime "paypal_payment_date"
    t.string   "paypal_payment_status"
    t.string   "paypal_reason_code"
    t.string   "paypal_payment_type"
    t.string   "paypal_mc_currency"
    t.string   "paypal_mc_fee"
    t.string   "paypal_mc_gross"
    t.string   "paypal_residence_country"
    t.string   "paypal_last_name"
    t.string   "paypal_first_name"
    t.string   "paypal_payer_email"
    t.string   "paypal_payer_id"
    t.string   "paypal_payer_status"
    t.string   "paypal_receiver_id"
    t.string   "paypal_receiver_email"
    t.string   "paypal_protection_eligibility"
    t.string   "paypal_ipn_track_id"
    t.integer  "downloads_count"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "pages", force: true do |t|
    t.text     "title"
    t.text     "description"
    t.text     "keywords"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "people", force: true do |t|
    t.boolean  "newsletter"
    t.string   "surname"
    t.string   "firstname"
    t.string   "email"
    t.string   "phone"
    t.string   "job"
    t.integer  "sheet_id"
    t.integer  "positon"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "people_newsgroups", force: true do |t|
    t.integer  "person_id"
    t.integer  "newsgroup_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "petition_signators", force: true do |t|
    t.integer  "petition_id"
    t.string   "firstname"
    t.string   "name"
    t.string   "address"
    t.string   "address2"
    t.string   "cp"
    t.string   "city"
    t.string   "country"
    t.string   "email"
    t.boolean  "enabled"
    t.string   "token"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

  add_index "petition_signators", ["petition_id"], name: "index_petition_signators_on_petition_id", using: :btree

  create_table "petitions", force: true do |t|
    t.string   "name"
    t.text     "description"
    t.string   "slug"
    t.boolean  "enabled"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

  create_table "plume_articles", force: true do |t|
    t.string   "title"
    t.string   "slug"
    t.integer  "position"
    t.integer  "plume_cat_id"
    t.text     "description"
    t.integer  "image_file_id"
    t.string   "article_type"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "author"
  end

  add_index "plume_articles", ["plume_cat_id"], name: "index_plume_articles_on_plume_cat_id", using: :btree

  create_table "plume_cats", force: true do |t|
    t.string   "title"
    t.integer  "position"
    t.integer  "plume_id"
    t.integer  "image_file_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "plume_events", force: true do |t|
    t.integer  "plume_id"
    t.string   "title"
    t.text     "description"
    t.datetime "start_at"
    t.boolean  "entire_day"
    t.boolean  "stop_date"
    t.datetime "stop_at"
    t.boolean  "many_days"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "plume_events", ["plume_id"], name: "index_plume_events_on_plume_id", using: :btree

  create_table "plumes", force: true do |t|
    t.string   "title"
    t.string   "number"
    t.string   "p_version"
    t.integer  "image_file_id"
    t.integer  "couv_image_file_id"
    t.string   "credits"
    t.integer  "edito_plume_article_id"
    t.integer  "dossier_plume_article_id"
    t.integer  "other_plume_article_id"
    t.string   "redaction_credits"
    t.boolean  "enabled"
    t.datetime "enabled_at"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "portlets", force: true do |t|
    t.integer  "block_id"
    t.integer  "content_id"
    t.string   "content_type"
    t.integer  "position"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "question_sets", force: true do |t|
    t.integer  "survey_item_id"
    t.integer  "survey_set_id"
    t.text     "content"
    t.boolean  "boolean_content"
    t.datetime "created_at",      null: false
    t.datetime "updated_at",      null: false
  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 "sheet_years", force: true do |t|
    t.integer  "year"
    t.integer  "join_type"
    t.boolean  "gift_year"
    t.boolean  "benefactor"
    t.date     "paid_at"
    t.integer  "amount"
    t.integer  "payment_type"
    t.string   "bank"
    t.string   "check_number"
    t.integer  "sheet_id"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.boolean  "plume"
  end

  create_table "sheets", force: true do |t|
    t.string   "corporate"
    t.string   "other_phone"
    t.string   "other_mail"
    t.string   "address"
    t.string   "address2"
    t.string   "address3"
    t.string   "pc"
    t.string   "city"
    t.string   "country"
    t.text     "skills"
    t.integer  "sheet_type"
    t.integer  "first_people"
    t.integer  "first_year"
    t.integer  "last_year"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.boolean  "plume"
    t.string   "token"
    t.string   "sheet_number"
  end

  create_table "survey_item_answers", force: true do |t|
    t.text     "label_text"
    t.text     "help_text"
    t.string   "class_text"
    t.integer  "field_type"
    t.integer  "data_type"
    t.integer  "survey_item_id"
    t.boolean  "locked"
    t.boolean  "archived"
    t.datetime "created_at",     null: false
    t.datetime "updated_at",     null: false
  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: true do |t|
    t.integer  "item_type"
    t.text     "title"
    t.text     "description"
    t.text     "help"
    t.integer  "questions_type"
    t.integer  "display_type"
    t.integer  "survey_type_id"
    t.integer  "string_type"
    t.boolean  "locked"
    t.boolean  "archived"
    t.integer  "text_presentation"
    t.integer  "max_checkboxes"
    t.datetime "created_at",        null: false
    t.datetime "updated_at",        null: false
  end

  add_index "survey_items", ["survey_type_id"], name: "index_survey_items_on_survey_type_id", using: :btree

  create_table "survey_sets", force: true do |t|
    t.integer  "survey_type_id"
    t.datetime "created_at",     null: false
    t.datetime "updated_at",     null: false
  end

  add_index "survey_sets", ["survey_type_id"], name: "index_survey_sets_on_survey_type_id", using: :btree

  create_table "survey_types", force: true do |t|
    t.string   "name"
    t.string   "slug"
    t.text     "description"
    t.text     "thank_text"
    t.text     "intro_text"
    t.boolean  "locked"
    t.boolean  "archived"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

  create_table "table_contents", force: true do |t|
    t.integer  "style"
    t.integer  "nbr_rows"
    t.integer  "nbr_cols"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "table_rows", force: true do |t|
    t.integer  "position"
    t.integer  "style"
    t.integer  "table_content_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "tag_taggables", force: true do |t|
    t.string   "taggable_type"
    t.integer  "taggable_id"
    t.integer  "tag_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "tags", force: true do |t|
    t.string   "name"
    t.string   "slug"
    t.integer  "parent_id"
    t.boolean  "public"
    t.string   "taggable_type"
    t.integer  "taggable_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "text_contents", force: true do |t|
    t.string   "style"
    t.text     "content"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "tiny_urls", force: true do |t|
    t.string   "url"
    t.string   "slug"
    t.text     "description"
    t.datetime "start_at"
    t.datetime "stop_at"
    t.integer  "nbr_views"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

  create_table "title_contents", force: true do |t|
    t.text     "content"
    t.integer  "level"
    t.string   "style"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "topics", force: true do |t|
    t.string   "title"
    t.text     "description"
    t.integer  "admin_id"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

  add_index "topics", ["admin_id"], name: "index_topics_on_admin_id", using: :btree

  create_table "year_paiements", force: true do |t|
    t.text     "paiement_type"
    t.text     "nature"
    t.string   "cheque_number"
    t.string   "bank_name"
    t.date     "paid_at"
    t.integer  "amout"
    t.integer  "join_year_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

end