This commit is contained in:
Sunandar
2017-02-08 17:35:37 +06:30
parent 0b4e69d1be
commit 26d42631c7
14 changed files with 140 additions and 95 deletions

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170203091136) do
ActiveRecord::Schema.define(version: 20170208065316) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -51,14 +51,13 @@ ActiveRecord::Schema.define(version: 20170203091136) do
end
create_table "clients", force: :cascade do |t|
t.string "name", null: false
t.string "name", null: false
t.string "email"
t.string "phone"
t.string "address"
t.string "product_type"
t.string "secrect_key"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "lookups", force: :cascade do |t|
@@ -101,6 +100,16 @@ ActiveRecord::Schema.define(version: 20170203091136) do
t.index ["user_id"], name: "index_members_on_user_id", using: :btree
end
create_table "product_categories", force: :cascade do |t|
t.string "name"
t.integer "product_type_id"
t.index ["product_type_id"], name: "index_product_categories_on_product_type_id", using: :btree
end
create_table "product_types", force: :cascade do |t|
t.string "name"
end
create_table "users", force: :cascade do |t|
t.string "name", null: false
t.string "nrc"