Files
rails-solicitudes/db/schema.rb
2026-04-06 22:13:54 +00:00

83 lines
3.3 KiB
Ruby
Executable File
Generated

# 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.
ActiveRecord::Schema[8.0].define(version: 2018_04_12_215449) do
create_table "asociados", force: :cascade do |t|
t.string "nombre"
t.string "email"
t.string "ciudad"
t.string "estado"
t.string "direccion"
t.string "detalles"
t.string "ejemplo_de_precios"
t.string "tiempo_de_entregas"
t.string "telefono"
t.integer "contacto_de_preferencia_id"
t.integer "categoria_id"
t.integer "status_id"
t.string "notas"
t.boolean "verificado"
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
t.index ["categoria_id"], name: "index_asociados_on_categoria_id"
t.index ["contacto_de_preferencia_id"], name: "index_asociados_on_contacto_de_preferencia_id"
t.index ["status_id"], name: "index_asociados_on_status_id"
end
create_table "categoria", force: :cascade do |t|
t.string "nombre"
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
end
create_table "contacto_de_preferencia", force: :cascade do |t|
t.string "nombre"
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
end
create_table "solicituds", force: :cascade do |t|
t.string "nombre"
t.string "email"
t.string "ciudad"
t.string "estado"
t.string "direccion"
t.string "detalles"
t.string "presupuesto"
t.string "tiempo_de_entrega"
t.string "telefono"
t.integer "contacto_de_preferencia_id"
t.integer "categoria_id"
t.integer "status_id"
t.string "notas"
t.boolean "verificado"
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
t.index ["categoria_id"], name: "index_solicituds_on_categoria_id"
t.index ["contacto_de_preferencia_id"], name: "index_solicituds_on_contacto_de_preferencia_id"
t.index ["status_id"], name: "index_solicituds_on_status_id"
end
create_table "statuses", force: :cascade do |t|
t.string "nombre"
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
end
add_foreign_key "asociados", "categoria", column: "categoria_id"
add_foreign_key "asociados", "contacto_de_preferencia", column: "contacto_de_preferencia_id"
add_foreign_key "asociados", "statuses"
add_foreign_key "solicituds", "categoria", column: "categoria_id"
add_foreign_key "solicituds", "contacto_de_preferencia", column: "contacto_de_preferencia_id"
add_foreign_key "solicituds", "statuses"
end