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.
5 ActiveRecord::Schema.define(:version => 27) do
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
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
22 create_table "game_policies", :force => true do |t|
23 t.column "day", :integer, :null => false
24 t.column "fee", :decimal, :precision => 8, :scale => 2, :null => false
25 t.column "period", :integer
26 t.column "description", :string
29 create_table "gamegenres", :force => true do |t|
30 t.column "name", :string, :null => false
33 create_table "gameplatforms", :force => true do |t|
34 t.column "name", :string, :null => false
37 create_table "medias", :force => true do |t|
38 t.column "name", :string, :null => false
41 create_table "merchandise_purchases", :force => true do |t|
44 create_table "merchandises", :force => true do |t|
45 t.column "title", :string, :null => false
46 t.column "quantity", :integer, :default => 0, :null => false
47 t.column "price", :decimal, :precision => 8, :scale => 2, :default => 0.0
50 create_table "purchases", :force => true do |t|
51 t.column "type", :string
52 t.column "customer_id", :integer
53 t.column "date", :date
54 t.column "price", :decimal, :default => 0.0
55 t.column "rentable_id", :integer
56 t.column "merchandise_id", :integer
57 t.column "quantity", :integer
60 create_table "rentable_policies", :force => true do |t|
61 t.column "name", :string, :null => false
62 t.column "value", :integer
63 t.column "description", :string, :null => false
66 create_table "rentables", :force => true do |t|
67 t.column "type", :string
68 t.column "title", :string
69 t.column "newrelease", :boolean, :default => false
70 t.column "video_genre", :integer
71 t.column "director", :string
72 t.column "media", :integer
73 t.column "game_genre", :integer
74 t.column "platform", :integer
77 # Could not dump table "sqlite_sequence" because of following StandardError
78 # Unknown type '' for column 'name'
80 create_table "users", :force => true do |t|
81 t.column "name", :string, :null => false
82 t.column "hashed_password", :string
83 t.column "salt", :string
84 t.column "manager", :boolean, :default => false
87 create_table "video_policies", :force => true do |t|
88 t.column "day", :integer, :null => false
89 t.column "fee", :decimal, :precision => 8, :scale => 2, :null => false
90 t.column "period", :integer
91 t.column "description", :string
94 create_table "videogenres", :force => true do |t|
95 t.column "name", :string, :null => false