mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
144 lines
6.6 KiB
Ruby
144 lines
6.6 KiB
Ruby
# encoding: UTF-8
|
|
# 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 => 20130124160539) do
|
|
|
|
create_table "exports", :force => true do |t|
|
|
t.integer "map_id", :default => 0
|
|
t.integer "size", :default => 0
|
|
t.integer "width", :default => 0
|
|
t.integer "height", :default => 0
|
|
t.float "cm_per_pixel", :default => 0.0
|
|
t.string "status", :default => "none"
|
|
t.boolean "tms", :default => false
|
|
t.boolean "jpg", :default => false
|
|
t.boolean "geotiff", :default => false
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.boolean "zip", :default => false, :null => false
|
|
t.text "bands_string", :null => false
|
|
t.string "export_type", :default => "normal", :null => false
|
|
t.integer "user_id", :default => 0
|
|
end
|
|
|
|
create_table "maps", :force => true do |t|
|
|
t.string "name", :default => ""
|
|
t.decimal "lat", :precision => 20, :scale => 10, :default => 0.0
|
|
t.decimal "lon", :precision => 20, :scale => 10, :default => 0.0
|
|
t.integer "version", :default => 1
|
|
t.string "password", :default => ""
|
|
t.text "styles"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.text "description"
|
|
t.string "author", :default => "anonymous"
|
|
t.decimal "zoom", :precision => 15, :scale => 10, :default => 2.0
|
|
t.string "location", :default => ""
|
|
t.string "static_data", :default => ""
|
|
t.boolean "vectors", :default => false, :null => false
|
|
t.string "tiles", :default => "google", :null => false
|
|
t.string "email", :default => "", :null => false
|
|
t.boolean "archived", :default => false, :null => false
|
|
t.text "tile_url", :null => false
|
|
t.text "tile_layer", :null => false
|
|
t.string "license", :default => "copyright"
|
|
t.integer "user_id", :default => 0
|
|
end
|
|
|
|
create_table "nodes", :force => true do |t|
|
|
t.string "color", :default => "red"
|
|
t.string "author", :default => "anonymous"
|
|
t.decimal "lat", :precision => 20, :scale => 10, :default => 0.0
|
|
t.decimal "lon", :precision => 20, :scale => 10, :default => 0.0
|
|
t.integer "way_id", :default => 0
|
|
t.integer "order", :default => 0
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.string "name", :default => ""
|
|
t.string "description", :default => ""
|
|
t.integer "map_id", :default => 0
|
|
t.integer "way_order", :default => 0
|
|
end
|
|
|
|
create_table "tags", :force => true do |t|
|
|
t.string "user_id"
|
|
t.string "name"
|
|
t.integer "map_id"
|
|
t.integer "warpable_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.string "identity_url"
|
|
t.string "role", :limit => 40, :default => "basic"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.string "remember_token", :limit => 40
|
|
t.datetime "remember_token_expires_at"
|
|
end
|
|
|
|
add_index "users", ["login"], :name => "index_users_on_login", :unique => true
|
|
|
|
create_table "warpables", :force => true do |t|
|
|
t.integer "parent_id"
|
|
t.string "content_type"
|
|
t.string "filename"
|
|
t.string "thumbnail"
|
|
t.integer "size"
|
|
t.integer "width"
|
|
t.integer "height"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.integer "map_id", :default => 0
|
|
t.string "nodes", :default => ""
|
|
t.boolean "locked", :default => false, :null => false
|
|
t.boolean "deleted", :default => false, :null => false
|
|
t.text "history", :null => false
|
|
t.float "cm_per_pixel", :default => 0.0, :null => false
|
|
end
|
|
|
|
create_table "warpeds", :force => true do |t|
|
|
t.integer "parent_id"
|
|
t.string "content_type"
|
|
t.string "filename"
|
|
t.string "thumbnail"
|
|
t.integer "size"
|
|
t.integer "width"
|
|
t.integer "height"
|
|
t.string "transform_type"
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
create_table "ways", :force => true do |t|
|
|
t.string "color", :default => "red"
|
|
t.string "author", :default => "anonymous"
|
|
t.decimal "lat1", :precision => 20, :scale => 10, :default => 0.0
|
|
t.decimal "lat2", :precision => 20, :scale => 10, :default => 0.0
|
|
t.decimal "lon1", :precision => 20, :scale => 10, :default => 0.0
|
|
t.decimal "lon2", :precision => 20, :scale => 10, :default => 0.0
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
t.string "name", :default => ""
|
|
t.string "description", :default => ""
|
|
t.integer "map_id", :default => 0
|
|
end
|
|
|
|
end
|