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

  create_table "active_admin_comments", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.string   "namespace"
    t.text     "body",          limit: 65535
    t.string   "resource_type"
    t.integer  "resource_id"
    t.string   "author_type"
    t.integer  "author_id"
    t.datetime "created_at",                  null: false
    t.datetime "updated_at",                  null: false
    t.index ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id", using: :btree
    t.index ["namespace"], name: "index_active_admin_comments_on_namespace", using: :btree
    t.index ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id", using: :btree
  end

  create_table "project_documents", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.string   "document_uk"
    t.string   "document_en"
    t.string   "document_name_uk"
    t.string   "document_name_en"
    t.integer  "project_id"
    t.datetime "created_at",       null: false
    t.datetime "updated_at",       null: false
    t.index ["project_id"], name: "index_project_documents_on_project_id", using: :btree
  end

  create_table "project_galeries", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.string   "photo"
    t.string   "name_uk"
    t.string   "name_en"
    t.integer  "project_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.index ["project_id"], name: "index_project_galeries_on_project_id", using: :btree
  end

  create_table "project_links", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.string   "site"
    t.string   "title_uk"
    t.string   "title_en"
    t.integer  "project_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.index ["project_id"], name: "index_project_links_on_project_id", using: :btree
  end

  create_table "project_photos", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.string   "photo"
    t.string   "title_uk"
    t.string   "title_en"
    t.integer  "project_id"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.index ["project_id"], name: "index_project_photos_on_project_id", using: :btree
  end

  create_table "project_qoutes", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.text     "text_over_quote_uk",          limit: 65535
    t.text     "text_over_quote_en",          limit: 65535
    t.string   "background_color_quote_text"
    t.string   "icon"
    t.text     "text_quote_uk",               limit: 65535
    t.text     "text_quote",                  limit: 65535
    t.text     "text_below_quote_uk",         limit: 65535
    t.text     "text_below_quote",            limit: 65535
    t.integer  "project_id"
    t.datetime "created_at",                                null: false
    t.datetime "updated_at",                                null: false
    t.index ["project_id"], name: "index_project_qoutes_on_project_id", using: :btree
  end

  create_table "project_videos", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.string   "title_uk"
    t.string   "title_en"
    t.string   "short_description_uk"
    t.string   "short_description_en"
    t.string   "video_file"
    t.string   "video_link"
    t.string   "description_uk"
    t.string   "description_en"
    t.integer  "project_id"
    t.datetime "created_at",           null: false
    t.datetime "updated_at",           null: false
    t.index ["project_id"], name: "index_project_videos_on_project_id", using: :btree
  end

  create_table "projects", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
    t.string   "photo"
    t.string   "photo_preview"
    t.string   "photo_before"
    t.string   "photo_after"
    t.integer  "types"
    t.integer  "status"
    t.string   "individual_type_uk"
    t.string   "individual_type_en"
    t.string   "title_uk"
    t.string   "title_en"
    t.string   "heading_uk"
    t.string   "heading_en"
    t.string   "slug"
    t.text     "short_description_uk", limit: 65535
    t.text     "short_description_en", limit: 65535
    t.text     "description_uk",       limit: 65535
    t.text     "description_en",       limit: 65535
    t.string   "site"
    t.string   "link_to_facebook"
    t.float    "required_amount",      limit: 24
    t.string   "related_links_uk"
    t.string   "related_links_en"
    t.string   "footer_photo"
    t.datetime "created_at",                         null: false
    t.datetime "updated_at",                         null: false
  end

  create_table "users", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" 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.datetime "created_at",                          null: false
    t.datetime "updated_at",                          null: false
    t.string   "provider"
    t.string   "uid"
    t.string   "name"
    t.string   "location"
    t.string   "avatar"
    t.integer  "role"
    t.index ["email"], name: "index_users_on_email", unique: true, using: :btree
    t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
  end

end
