aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2012-04-16 15:27:00 +0200
committerAlban Peignier2012-04-16 15:27:00 +0200
commitc98146353f42342155b05cff2c4daeedd1621b52 (patch)
tree52a467da460b02ff065a72abed393be508d070b6
parent2e5b193ae5bfa8b308ac80fc3119746a85aa38a9 (diff)
downloadchouette-core-c98146353f42342155b05cff2c4daeedd1621b52.tar.bz2
Update schema
-rw-r--r--db/schema.rb113
1 files changed, 112 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 8bb44407d..89a3326fd 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,63 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120413142837) do
+ActiveRecord::Schema.define(:version => 20120416095046) do
+
+ create_table "company", :force => true do |t|
+ t.string "objectid"
+ t.integer "objectversion"
+ t.datetime "creationtime"
+ t.string "creatorid"
+ t.string "name"
+ t.string "shortname"
+ t.string "organizationalunit"
+ t.string "operatingdepartmentname"
+ t.string "code"
+ t.string "phone"
+ t.string "fax"
+ t.string "email"
+ t.string "registrationnumber"
+ end
+
+ add_index "company", ["objectid"], :name => "company_objectid_key", :unique => true
+ add_index "company", ["registrationnumber"], :name => "company_registrationnumber_key", :unique => true
+
+ create_table "line", :force => true do |t|
+ t.integer "ptnetworkid", :limit => 8
+ t.integer "companyid", :limit => 8
+ t.string "objectid"
+ t.integer "objectversion"
+ t.datetime "creationtime"
+ t.string "creatorid"
+ t.string "name"
+ t.string "number"
+ t.string "publishedname"
+ t.string "transportmodename"
+ t.string "registrationnumber"
+ t.string "comment"
+ t.boolean "mobilityrestrictedsuitable"
+ t.integer "userneeds", :limit => 8
+ end
+
+ add_index "line", ["objectid"], :name => "line_objectid_key", :unique => true
+ add_index "line", ["registrationnumber"], :name => "line_registrationnumber_key", :unique => true
+
+ create_table "ptnetwork", :force => true do |t|
+ t.string "objectid"
+ t.integer "objectversion"
+ t.datetime "creationtime"
+ t.string "creatorid"
+ t.date "versiondate"
+ t.string "description"
+ t.string "name"
+ t.string "registrationnumber"
+ t.string "sourcename"
+ t.string "sourceidentifier"
+ t.string "comment"
+ end
+
+ add_index "ptnetwork", ["objectid"], :name => "ptnetwork_objectid_key", :unique => true
+ add_index "ptnetwork", ["registrationnumber"], :name => "ptnetwork_registrationnumber_key", :unique => true
create_table "referentials", :force => true do |t|
t.string "name"
@@ -19,6 +75,61 @@ ActiveRecord::Schema.define(:version => 20120413142837) do
t.datetime "updated_at"
end
+ create_table "stoparea", :force => true do |t|
+ t.integer "parentid", :limit => 8
+ t.string "objectid"
+ t.integer "objectversion"
+ t.datetime "creationtime"
+ t.string "creatorid"
+ t.string "name"
+ t.string "comment"
+ t.string "areatype"
+ t.string "registrationnumber"
+ t.string "nearesttopicname"
+ t.integer "farecode"
+ t.decimal "longitude", :precision => 19, :scale => 16
+ t.decimal "latitude", :precision => 19, :scale => 16
+ t.string "longlattype"
+ t.decimal "x", :precision => 19, :scale => 2
+ t.decimal "y", :precision => 19, :scale => 2
+ t.string "projectiontype"
+ t.string "countrycode"
+ t.string "streetname"
+ t.integer "modes", :default => 0
+ end
+
+ add_index "stoparea", ["objectid"], :name => "stoparea_objectid_key", :unique => true
+ add_index "stoparea", ["parentid"], :name => "index_stoparea_on_parentid"
+
+ create_table "timetable", :force => true do |t|
+ t.string "objectid", :null => false
+ t.integer "objectversion", :default => 1
+ t.datetime "creationtime"
+ t.string "creatorid"
+ t.string "version"
+ t.string "comment"
+ t.integer "intdaytypes", :default => 0
+ end
+
+ add_index "timetable", ["objectid"], :name => "timetable_objectid_key", :unique => true
+
+ create_table "timetable_date", :id => false, :force => true do |t|
+ t.integer "timetableid", :limit => 8, :null => false
+ t.date "date"
+ t.integer "position", :null => false
+ end
+
+ add_index "timetable_date", ["timetableid"], :name => "index_timetable_date_on_timetableid"
+
+ create_table "timetable_period", :id => false, :force => true do |t|
+ t.integer "timetableid", :limit => 8, :null => false
+ t.date "periodstart"
+ t.date "periodend"
+ t.integer "position", :null => false
+ end
+
+ add_index "timetable_period", ["timetableid"], :name => "index_timetable_period_on_timetableid"
+
create_table "users", :force => true do |t|
t.string "email", :default => "", :null => false
t.string "encrypted_password", :default => "", :null => false