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

  create_table "contacts", force: :cascade do |t|
    t.integer  "product_id"
    t.integer  "supplier_id"
    t.integer  "priority"
    t.decimal  "expected_production_time"
    t.integer  "production_unit_cost"
    t.integer  "min_production_batch"
    t.datetime "created_at",               null: false
    t.datetime "updated_at",               null: false
    t.index ["product_id"], name: "index_contacts_on_product_id"
    t.index ["supplier_id"], name: "index_contacts_on_supplier_id"
  end

  create_table "invoices", force: :cascade do |t|
    t.integer  "id_cloud",          null: false
    t.integer  "state"
    t.integer  "purchase_order_id", null: false
    t.datetime "created_at",        null: false
    t.datetime "updated_at",        null: false
    t.index ["id_cloud"], name: "index_invoices_on_id_cloud", unique: true
    t.index ["purchase_order_id"], name: "index_invoices_on_purchase_order_id"
  end

  create_table "production_orders", force: :cascade do |t|
    t.string   "id_cloud",    null: false
    t.string   "product_sku", null: false
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
    t.index ["id_cloud"], name: "index_production_orders_on_id_cloud", unique: true
  end

  create_table "products", id: false, force: :cascade do |t|
    t.string   "sku",         null: false
    t.string   "description"
    t.string   "category"
    t.integer  "price"
    t.integer  "stock"
    t.boolean  "owner"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
    t.index ["sku"], name: "index_products_on_sku", unique: true
  end

  create_table "purchase_orders", force: :cascade do |t|
    t.string   "id_cloud",           null: false
    t.integer  "state"
    t.string   "product_sku",        null: false
    t.integer  "quantity"
    t.string   "id_store_reception"
    t.string   "payment_method"
    t.string   "cause"
    t.boolean  "owner"
    t.integer  "supplier_id"
    t.datetime "created_at",         null: false
    t.datetime "updated_at",         null: false
    t.index ["id_cloud"], name: "index_purchase_orders_on_id_cloud", unique: true
    t.index ["supplier_id"], name: "index_purchase_orders_on_supplier_id"
  end

  create_table "recipes", force: :cascade do |t|
    t.string   "final_product_sku",  null: false
    t.string   "needed_product_sku", null: false
    t.string   "final_product_unit"
    t.integer  "requirement",        null: false
    t.string   "requirement_unit"
    t.datetime "created_at",         null: false
    t.datetime "updated_at",         null: false
  end

  create_table "suppliers", id: false, force: :cascade do |t|
    t.integer  "id",            null: false
    t.string   "id_cloud_dev"
    t.string   "id_cloud_prod"
    t.string   "warehouse_id"
    t.string   "api_prod"
    t.string   "api_dev"
    t.datetime "created_at",    null: false
    t.datetime "updated_at",    null: false
    t.index ["id"], name: "index_products_on_id", unique: true
    t.index ["id_cloud_dev"], name: "index_products_on_id_cloud_dev", unique: true
    t.index ["id_cloud_prod"], name: "index_products_on_id_cloud_prod", unique: true
  end

  create_table "users", force: :cascade do |t|
    t.string   "email",            null: false
    t.string   "crypted_password"
    t.string   "salt"
    t.datetime "created_at",       null: false
    t.datetime "updated_at",       null: false
    t.index ["email"], name: "index_users_on_email", unique: true
  end

  create_table "warehouses", force: :cascade do |t|
    t.string   "id_cloud",   null: false
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.index ["id_cloud"], name: "index_warehouses_on_id_cloud", unique: true
  end

end
<commit_msg>Updated schema<commit_after># 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: 20170516011420) do

  create_table "contacts", force: :cascade do |t|
    t.integer  "product_id"
    t.integer  "supplier_id"
    t.integer  "priority"
    t.decimal  "expected_production_time"
    t.integer  "production_unit_cost"
    t.integer  "min_production_batch"
    t.datetime "created_at",               null: false
    t.datetime "updated_at",               null: false
    t.index ["product_id"], name: "index_contacts_on_product_id"
    t.index ["supplier_id"], name: "index_contacts_on_supplier_id"
  end

  create_table "invoices", force: :cascade do |t|
    t.integer  "id_cloud",          null: false
    t.integer  "state"
    t.integer  "purchase_order_id", null: false
    t.datetime "created_at",        null: false
    t.datetime "updated_at",        null: false
    t.index ["id_cloud"], name: "index_invoices_on_id_cloud", unique: true
    t.index ["purchase_order_id"], name: "index_invoices_on_purchase_order_id"
  end

  create_table "production_orders", force: :cascade do |t|
    t.string   "id_cloud",                    null: false
    t.string   "product_sku",                 null: false
    t.integer  "cantidad"
    t.boolean  "despachado",  default: false
    t.datetime "created_at",                  null: false
    t.datetime "updated_at",                  null: false
    t.index ["id_cloud"], name: "index_production_orders_on_id_cloud", unique: true
  end

  create_table "products", id: false, force: :cascade do |t|
    t.string   "sku",         null: false
    t.string   "description"
    t.string   "category"
    t.integer  "price"
    t.integer  "stock"
    t.boolean  "owner"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
    t.index ["sku"], name: "index_products_on_sku", unique: true
  end

  create_table "purchase_orders", force: :cascade do |t|
    t.string   "id_cloud",           null: false
    t.integer  "state"
    t.string   "product_sku",        null: false
    t.integer  "quantity"
    t.string   "id_store_reception"
    t.string   "payment_method"
    t.string   "cause"
    t.boolean  "owner"
    t.integer  "supplier_id"
    t.datetime "created_at",         null: false
    t.datetime "updated_at",         null: false
    t.index ["id_cloud"], name: "index_purchase_orders_on_id_cloud", unique: true
    t.index ["supplier_id"], name: "index_purchase_orders_on_supplier_id"
  end

  create_table "recipes", force: :cascade do |t|
    t.string   "final_product_sku",  null: false
    t.string   "needed_product_sku", null: false
    t.string   "final_product_unit"
    t.integer  "requirement",        null: false
    t.string   "requirement_unit"
    t.datetime "created_at",         null: false
    t.datetime "updated_at",         null: false
  end

  create_table "suppliers", id: false, force: :cascade do |t|
    t.integer  "id",            null: false
    t.string   "id_cloud_dev"
    t.string   "id_cloud_prod"
    t.string   "warehouse_id"
    t.string   "api_prod"
    t.string   "api_dev"
    t.datetime "created_at",    null: false
    t.datetime "updated_at",    null: false
    t.index ["id"], name: "index_products_on_id", unique: true
    t.index ["id_cloud_dev"], name: "index_products_on_id_cloud_dev", unique: true
    t.index ["id_cloud_prod"], name: "index_products_on_id_cloud_prod", unique: true
  end

  create_table "users", force: :cascade do |t|
    t.string   "email",            null: false
    t.string   "crypted_password"
    t.string   "salt"
    t.datetime "created_at",       null: false
    t.datetime "updated_at",       null: false
    t.index ["email"], name: "index_users_on_email", unique: true
  end

  create_table "warehouses", force: :cascade do |t|
    t.string   "id_cloud",   null: false
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
    t.index ["id_cloud"], name: "index_warehouses_on_id_cloud", unique: true
  end

end

{'fraction_non_alphanumeric': 0.104638619201726, 'fraction_numerical': 0.0030204962243797194, 'mean_word_length': 3.1149578339991124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2583058', 'n_tokens_mistral': 3065, 'n_tokens_neox': 3007, 'n_words': 865}