Add merchandise MVC
[cs356-p2-videostore.git] / db / schema.rb
1 # This file is autogenerated. Instead of editing this file, please use the
2 # migrations feature of ActiveRecord to incrementally modify your database, and
3 # then regenerate this schema definition.
4
5 ActiveRecord::Schema.define(:version => 14) do
6
7   create_table "coitems", :force => true do |t|
8     t.column "customer_id", :integer
9     t.column "rentable_id", :integer
10     t.column "out_date",    :date,    :default => '2007-11-21'
11     t.column "due_date",    :date
12   end
13
14   create_table "customers", :force => true do |t|
15     t.column "name",    :string
16     t.column "address", :text,    :limit => 255
17     t.column "email",   :string
18     t.column "phone",   :string
19     t.column "debt",    :decimal,                :default => 0.0
20   end
21
22   create_table "medias", :force => true do |t|
23     t.column "name", :string, :null => false
24   end
25
26   create_table "merchandises", :force => true do |t|
27     t.column "name",     :string,                                                 :null => false
28     t.column "quantity", :integer,                               :default => 0,   :null => false
29     t.column "price",    :decimal, :precision => 8, :scale => 2, :default => 0.0
30   end
31
32   create_table "rentables", :force => true do |t|
33     t.column "type",        :string
34     t.column "title",       :string
35     t.column "newrelease",  :boolean, :default => false
36     t.column "video_genre", :integer
37     t.column "director",    :string
38     t.column "media",       :integer
39     t.column "game_genre",  :integer
40     t.column "platform",    :integer
41   end
42
43   create_table "videogenres", :force => true do |t|
44     t.column "name", :string, :null => false
45   end
46
47 end