Skip to content

Instantly share code, notes, and snippets.

@vojto
Created March 19, 2010 12:54
Show Gist options
  • Save vojto/337478 to your computer and use it in GitHub Desktop.
Save vojto/337478 to your computer and use it in GitHub Desktop.
# 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 to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20100318211107) do
create_table "access_rights", :force => true do |t|
t.string "identifier"
t.datetime "created_at"
t.datetime "updated_at"
t.string "category"
end
create_table "access_role_rights", :id => false, :force => true do |t|
t.integer "access_role_id"
t.integer "access_right_id"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "access_roles", :force => true do |t|
t.string "title"
t.string "identifier"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "addresses", :force => true do |t|
t.integer "user_id"
t.string "first_name"
t.string "last_name"
t.string "company"
t.string "id_company"
t.string "id_vat"
t.string "address"
t.string "zip"
t.string "city"
t.string "country"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "cart_items", :force => true do |t|
t.integer "cart_id"
t.integer "product_id"
t.integer "version_id"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "quantity"
end
create_table "carts", :force => true do |t|
t.integer "user_id"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "delivery_address_id"
t.integer "invoice_address_id"
t.boolean "is_confirmed"
t.boolean "is_paid"
t.boolean "is_accepted"
t.boolean "is_delivered"
t.boolean "is_cancelled"
end
create_table "categories", :force => true do |t|
t.integer "count_products"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "categories_products", :id => false, :force => true do |t|
t.integer "product_id"
t.integer "category_id"
end
create_table "category_translations", :force => true do |t|
t.integer "category_id"
t.string "locale"
t.string "title"
t.string "description"
t.string "slug"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "delivery_options", :force => true do |t|
t.integer "store_id"
t.string "title"
t.float "price"
t.float "free_at_sum"
t.boolean "is_enabled", :default => true
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "images", :force => true do |t|
t.integer "product_id"
t.datetime "created_at"
t.datetime "updated_at"
t.string "image_file_name"
t.string "image_content_type"
t.integer "image_file_size"
t.datetime "image_updated_at"
end
create_table "payment_options", :force => true do |t|
t.integer "store_id"
t.string "title"
t.boolean "is_enabled", :default => true
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "product_translations", :force => true do |t|
t.integer "product_id"
t.string "locale"
t.string "title"
t.datetime "created_at"
t.datetime "updated_at"
t.string "description"
end
create_table "products", :force => true do |t|
t.string "image"
t.integer "weight"
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "is_hidden"
end
create_table "stores", :force => true do |t|
t.string "identifier"
t.string "html_title"
t.string "html_description"
t.string "html_keywords"
t.string "html_template"
t.string "company_name"
t.string "id_company"
t.string "id_vat"
t.string "address"
t.string "zip"
t.string "city"
t.string "country"
t.string "contact_telephone"
t.string "logo_file_name"
t.string "logo_content_type"
t.integer "logo_file_size"
t.datetime "logo_updated_at"
t.datetime "created_at"
t.datetime "updated_at"
t.string "title"
end
create_table "user_access_rights", :id => false, :force => true do |t|
t.integer "user_id"
t.integer "access_right_id"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "user_access_roles", :id => false, :force => true do |t|
t.integer "user_id"
t.integer "access_role_id"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "users", :force => true do |t|
t.string "login", :limit => 40
t.string "name", :limit => 100, :default => ""
t.string "email", :limit => 100
t.string "crypted_password", :limit => 40
t.string "salt", :limit => 40
t.datetime "created_at"
t.datetime "updated_at"
t.string "remember_token", :limit => 40
t.datetime "remember_token_expires_at"
t.string "contact_telephone"
t.boolean "is_super_user"
t.integer "store_id"
end
add_index "users", ["login"], :name => "index_users_on_login", :unique => true
create_table "version_translations", :force => true do |t|
t.integer "version_id"
t.string "locale"
t.string "title"
t.string "description"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "versions", :force => true do |t|
t.integer "product_id"
t.integer "count_stock"
t.integer "count_purchases"
t.string "color_code"
t.string "color_image"
t.integer "price"
t.integer "inactive_price"
t.datetime "created_at"
t.datetime "updated_at"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment