9eb2125f15
OrderResult tables are removed. Data consistency is now possible through new article.price-history (ArticlePrice). Balancing-workflow needs to be updated.
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
# == Schema Information
|
|
# Schema version: 20090120184410
|
|
#
|
|
# Table name: articles
|
|
#
|
|
# id :integer(4) not null, primary key
|
|
# name :string(255) default(""), not null
|
|
# supplier_id :integer(4) default(0), not null
|
|
# article_category_id :integer(4) default(0), not null
|
|
# unit :string(255) default(""), not null
|
|
# note :string(255)
|
|
# availability :boolean(1) default(TRUE), not null
|
|
# manufacturer :string(255)
|
|
# origin :string(255)
|
|
# shared_updated_on :datetime
|
|
# price :decimal(8, 2)
|
|
# tax :float
|
|
# deposit :decimal(8, 2) default(0.0)
|
|
# unit_quantity :integer(4) default(1), not null
|
|
# order_number :string(255)
|
|
# created_at :datetime
|
|
# updated_at :datetime
|
|
# quantity :decimal(6, 2) default(0.0)
|
|
# deleted_at :datetime
|
|
#
|
|
|
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
|
banana:
|
|
id: 1
|
|
name: banana
|
|
current_price_id: 1
|
|
unit: 500g
|
|
availability: 1
|
|
note: delicious
|
|
supplier_id: 1
|
|
article_category_id: 1
|
|
kiwi:
|
|
id: 2
|
|
name: kiwi
|
|
current_price_id: 2
|
|
unit: 500g
|
|
availability: 1
|
|
note: delicious
|
|
supplier_id: 1
|
|
article_category_id: 1
|
|
apple:
|
|
id: 3
|
|
name: apple
|
|
current_price_id: 3
|
|
unit: 500g
|
|
availability: 0
|
|
note: delicious
|
|
supplier_id: 1
|
|
article_category_id: 1
|
|
|