jam-cloud/web/db/schema.rb

1755 lines
90 KiB
Ruby
Raw Normal View History

2015-05-28 13:20:14 +00:00
# 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 => 0) do
add_extension "fuzzystrmatch"
add_extension "postgis"
add_extension "postgis_tiger_geocoder"
add_extension "postgis_topology"
add_extension "tablefunc"
add_extension "uuid-ossp"
create_table "active_admin_comments", :force => true do |t|
t.string "resource_id", :null => false
t.string "resource_type", :null => false
t.integer "author_id"
t.string "author_type"
t.text "body"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "namespace"
end
add_index "active_admin_comments", ["author_type", "author_id"], :name => "index_active_admin_comments_on_author_type_and_author_id"
add_index "active_admin_comments", ["namespace"], :name => "index_active_admin_comments_on_namespace"
add_index "active_admin_comments", ["resource_type", "resource_id"], :name => "index_admin_comments_on_resource_type_and_resource_id"
create_table "active_music_sessions", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "claimed_recording_id", :limit => 64
t.string "claimed_recording_initiator_id", :limit => 64
t.integer "track_changes_counter", :default => 0
t.integer "jam_track_id", :limit => 8
t.string "jam_track_initiator_id", :limit => 64
t.string "backing_track_path", :limit => 1024
t.string "backing_track_initiator_id", :limit => 64
t.boolean "metronome_active", :default => false, :null => false
t.string "metronome_initiator_id", :limit => 64
end
create_table "addr", :primary_key => "gid", :force => true do |t|
t.integer "tlid", :limit => 8
t.string "fromhn", :limit => 12
t.string "tohn", :limit => 12
t.string "side", :limit => 1
t.string "zip", :limit => 5
t.string "plus4", :limit => 4
t.string "fromtyp", :limit => 1
t.string "totyp", :limit => 1
t.integer "fromarmid"
t.integer "toarmid"
t.string "arid", :limit => 22
t.string "mtfcc", :limit => 5
t.string "statefp", :limit => 2
end
add_index "addr", ["tlid", "statefp"], :name => "idx_tiger_addr_tlid_statefp"
add_index "addr", ["zip"], :name => "idx_tiger_addr_zip"
# Could not dump table "addrfeat" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "affiliate_partners", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "partner_name", :limit => 128, :null => false
t.string "partner_code", :limit => 128, :null => false
t.string "partner_user_id", :limit => 64, :null => false
t.string "user_email"
t.integer "referral_user_count", :default => 0, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "affiliate_partners", ["partner_code"], :name => "affiliate_partners_code_idx"
add_index "affiliate_partners", ["partner_user_id"], :name => "affiliate_partners_user_idx"
create_table "artifact_updates", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "product", :null => false
t.string "version", :null => false
t.string "uri", :limit => 2000, :null => false
t.string "sha1", :null => false
t.string "environment", :default => "public", :null => false
t.integer "size", :null => false
end
add_index "artifact_updates", ["product", "version"], :name => "artifact_updates_uniqkey", :unique => true
create_table "backing_tracks", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "filename", :limit => 1024, :null => false
t.string "connection_id", :limit => 64, :null => false
t.string "client_track_id", :limit => 64, :null => false
t.string "client_resource_id", :limit => 100
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "band_invitations", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64
t.string "band_id", :limit => 64
t.boolean "accepted"
t.string "creator_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "bands", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "name", :limit => 1024, :null => false
t.string "website", :limit => 4000
t.string "biography", :limit => 4000, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "city", :limit => 100
t.string "state", :limit => 100
t.string "country", :limit => 100
t.string "photo_url", :limit => 2048
t.string "logo_url", :limit => 2048
t.tsvector "name_tsv"
t.string "original_fpfile_photo", :limit => 8000
t.string "cropped_fpfile_photo", :limit => 8000
t.string "cropped_s3_path_photo", :limit => 512
t.string "crop_selection_photo", :limit => 256
t.decimal "lat", :precision => 15, :scale => 10
t.decimal "lng", :precision => 15, :scale => 10
t.string "large_photo_url", :limit => 2048
t.string "cropped_large_s3_path_photo", :limit => 512
t.string "cropped_large_fpfile_photo", :limit => 8000
t.boolean "did_real_session", :default => false
end
add_index "bands", ["name_tsv"], :name => "bands_name_tsv_index", :using => :gin
create_table "bands_musicians", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "band_id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.boolean "admin", :default => false, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "bands_musicians", ["band_id", "user_id"], :name => "band_musician_uniqkey", :unique => true
# Could not dump table "bg" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "chat_messages", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64
t.string "music_session_id", :limit => 64
t.text "message", :null => false
t.datetime "created_at", :null => false
end
create_table "cities", :id => false, :force => true do |t|
t.string "city", :null => false
t.string "region", :limit => 2, :null => false
t.string "countrycode", :limit => 2, :null => false
end
create_table "claimed_recordings", :id => false, :force => true do |t|
t.string "user_id", :limit => 64, :null => false
t.string "recording_id", :limit => 64, :null => false
t.string "id", :limit => 64, :null => false
t.string "name", :limit => 200, :null => false
t.boolean "is_public", :default => true, :null => false
t.string "genre_id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "description", :limit => 8000
t.tsvector "description_tsv"
t.tsvector "name_tsv"
t.boolean "discarded", :default => false
t.boolean "upload_to_youtube", :default => false, :null => false
end
add_index "claimed_recordings", ["description_tsv"], :name => "claimed_recordings_description_tsv_index", :using => :gin
add_index "claimed_recordings", ["name_tsv"], :name => "claimed_recordings_name_tsv_index", :using => :gin
add_index "claimed_recordings", ["user_id", "recording_id"], :name => "musician_recording_uniqkey", :unique => true
# Could not dump table "cohorts" because of following StandardError
# Unknown type 'json' for column 'data_set'
create_table "connections", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64
t.string "client_id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "music_session_id", :limit => 64
t.string "ip_address", :limit => 64, :null => false
t.boolean "as_musician"
t.string "aasm_state", :limit => 64, :default => "idle", :null => false
t.integer "addr", :limit => 8, :null => false
t.integer "locidispid", :limit => 8
t.datetime "joined_session_at"
t.string "client_type", :limit => 256, :null => false
t.integer "stale_time", :default => 40, :null => false
t.integer "expire_time", :default => 60, :null => false
t.float "last_jam_audio_latency"
t.string "channel_id", :limit => 256, :null => false
t.boolean "udp_reachable", :default => true, :null => false
t.datetime "scoring_timeout", :null => false
t.integer "scoring_failures", :default => 0, :null => false
t.integer "scoring_timeout_occurrences", :default => 0, :null => false
t.integer "scoring_failures_offset", :default => 0, :null => false
t.string "gateway", :limit => nil, :default => "default-1", :null => false
t.boolean "is_network_testing", :default => false, :null => false
end
add_index "connections", ["client_id"], :name => "connections_client_id_key", :unique => true
add_index "connections", ["locidispid"], :name => "connections_locidispid_ndx"
create_table "countries", :id => false, :force => true do |t|
t.string "countrycode", :limit => 2, :null => false
t.string "countryname", :limit => 64
end
# Could not dump table "county" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "county_lookup", :id => false, :force => true do |t|
t.integer "st_code", :null => false
t.string "state", :limit => 2
t.integer "co_code", :null => false
t.string "name", :limit => 90
end
add_index "county_lookup", ["state"], :name => "county_lookup_state_idx"
create_table "countysub_lookup", :id => false, :force => true do |t|
t.integer "st_code", :null => false
t.string "state", :limit => 2
t.integer "co_code", :null => false
t.string "county", :limit => 90
t.integer "cs_code", :null => false
t.string "name", :limit => 90
end
add_index "countysub_lookup", ["state"], :name => "countysub_lookup_state_idx"
# Could not dump table "cousub" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "crash_dumps", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "client_type", :limit => 64, :null => false
t.string "client_id", :limit => 64
t.string "user_id", :limit => 64
t.string "session_id", :limit => 64
t.datetime "timestamp"
t.string "uri", :limit => 1000
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "client_version", :limit => 100, :null => false
2017-10-26 13:22:06 +00:00
t.string "crash_context", :limit => 10000
t.string "fsize", :limit => 64
2015-05-28 13:20:14 +00:00
end
add_index "crash_dumps", ["client_id"], :name => "crash_dumps_client_id_idx"
add_index "crash_dumps", ["timestamp"], :name => "crash_dumps_timestamp_idx"
add_index "crash_dumps", ["user_id"], :name => "crash_dumps_user_id_idx"
create_table "current_network_scores", :id => false, :force => true do |t|
t.integer "alocidispid", :limit => 8, :null => false
t.integer "blocidispid", :limit => 8, :null => false
t.integer "score", :null => false
t.boolean "limited", :null => false
t.datetime "score_dt", :null => false
end
add_index "current_network_scores", ["alocidispid", "blocidispid"], :name => "current_network_scores_a_b_ndx", :unique => true
add_index "current_network_scores", ["blocidispid", "alocidispid"], :name => "current_network_scores_b_a_ndx", :unique => true
create_table "diagnostics", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.string "type", :null => false
t.string "creator", :null => false
t.text "data"
t.datetime "created_at", :null => false
end
add_index "diagnostics", ["type"], :name => "diagnostics_type_idx"
add_index "diagnostics", ["user_id"], :name => "diagnostics_user_id"
create_table "direction_lookup", :id => false, :force => true do |t|
t.string "name", :limit => 20, :null => false
t.string "abbrev", :limit => 3
end
add_index "direction_lookup", ["abbrev"], :name => "direction_lookup_abbrev_idx"
# Could not dump table "edges" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "email_batch_sets", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "email_batch_id", :limit => 64
t.datetime "started_at"
t.text "user_ids", :default => "", :null => false
t.integer "batch_count"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "trigger_index", :default => 0, :null => false
t.string "sub_type", :limit => 64
t.string "user_id", :limit => 64
end
add_index "email_batch_sets", ["email_batch_id", "started_at"], :name => "email_batch_set_uniqkey", :unique => true
add_index "email_batch_sets", ["email_batch_id"], :name => "email_batch_set_fkidx"
add_index "email_batch_sets", ["user_id", "sub_type"], :name => "email_batch_sets_progress_idx"
create_table "email_batches", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "subject", :limit => 256
t.text "body"
t.string "from_email", :limit => 64, :default => "JamKazam <noreply@jamkazam.com>", :null => false
t.string "aasm_state", :limit => 32, :default => "pending", :null => false
t.text "test_emails", :default => "test@jamkazam.com", :null => false
t.integer "opt_in_count", :default => 0, :null => false
t.integer "sent_count", :default => 0, :null => false
t.integer "lock_version"
t.datetime "started_at"
t.datetime "completed_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "type", :limit => 64, :default => "JamRuby::EmailBatch", :null => false
t.string "sub_type", :limit => 64
end
create_table "email_errors", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64
t.string "error_type", :limit => 32
t.string "email_address", :limit => 256
t.string "status", :limit => 32
t.datetime "email_date"
t.text "reason"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "email_errors", ["email_address"], :name => "email_error_address_idx"
add_index "email_errors", ["user_id"], :name => "email_error_user_fkidx"
create_table "event_sessions", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.datetime "starts_at"
t.datetime "ends_at"
t.string "pinned_state"
t.string "img_url", :limit => 1024
t.integer "img_width"
t.integer "img_height"
t.string "event_id", :limit => 64
t.string "user_id", :limit => 64
t.string "band_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "ordinal"
end
create_table "events", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "slug", :limit => 512, :null => false
t.text "title"
t.text "description"
t.boolean "show_sponser", :default => false, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.text "social_description"
end
add_index "events", ["slug"], :name => "events_slug_key", :unique => true
create_table "facebook_signups", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "lookup_id", :null => false
t.string "last_name", :limit => 100
t.string "first_name", :limit => 100
t.string "gender", :limit => 1
t.string "email", :limit => 1024
t.string "uid", :limit => 1024
t.string "token", :limit => 1024
t.datetime "token_expires_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "facebook_signups", ["lookup_id"], :name => "facebook_signups_lookup_id_key", :unique => true
# Could not dump table "faces" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "fan_invitations", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "sender_id", :limit => 64
t.string "receiver_id", :limit => 64
t.string "music_session_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "featnames", :primary_key => "gid", :force => true do |t|
t.integer "tlid", :limit => 8
t.string "fullname", :limit => 100
t.string "name", :limit => 100
t.string "predirabrv", :limit => 15
t.string "pretypabrv", :limit => 50
t.string "prequalabr", :limit => 15
t.string "sufdirabrv", :limit => 15
t.string "suftypabrv", :limit => 50
t.string "sufqualabr", :limit => 15
t.string "predir", :limit => 2
t.string "pretyp", :limit => 3
t.string "prequal", :limit => 2
t.string "sufdir", :limit => 2
t.string "suftyp", :limit => 3
t.string "sufqual", :limit => 2
t.string "linearid", :limit => 22
t.string "mtfcc", :limit => 5
t.string "paflag", :limit => 1
t.string "statefp", :limit => 2
end
add_index "featnames", ["tlid", "statefp"], :name => "idx_tiger_featnames_tlid_statefp"
create_table "feeds", :force => true do |t|
t.string "recording_id", :limit => 64
t.string "music_session_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "active", :default => false
end
add_index "feeds", ["music_session_id"], :name => "feeds_music_session_id_key", :unique => true
add_index "feeds", ["recording_id"], :name => "feeds_recording_id_key", :unique => true
create_table "follows", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.string "followable_id", :limit => 64, :null => false
t.string "followable_type", :limit => 25, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "follows", ["user_id", "followable_id"], :name => "follows_user_uniqkey", :unique => true
create_table "friend_requests", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64
t.string "friend_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "status", :limit => 50
t.string "message", :limit => 4000
end
create_table "friendships", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64
t.string "friend_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "friendships", ["user_id", "friend_id"], :name => "user_friend_uniqkey", :unique => true
create_table "generic_state", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.datetime "score_history_last_imported_at"
t.string "env", :default => "development", :null => false
end
create_table "genre_players", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "player_id", :limit => 64, :null => false
t.string "genre_id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "player_type", :limit => 128
end
add_index "genre_players", ["player_id", "player_type", "genre_id"], :name => "genre_player_uniqkey", :unique => true
create_table "genres", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "description", :limit => 1024, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "genres_music_sessions", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "genre_id", :limit => 64
t.string "music_session_id", :limit => 64
end
create_table "geocode_settings", :id => false, :force => true do |t|
t.text "name", :null => false
t.text "setting"
t.text "unit"
t.text "category"
t.text "short_desc"
end
# Could not dump table "geoipblocks" because of following StandardError
# Unknown type 'geometry(Polygon)' for column 'geom'
create_table "geoipisp", :id => false, :force => true do |t|
t.integer "beginip", :limit => 8, :null => false
t.integer "endip", :limit => 8, :null => false
t.string "company", :limit => 50, :null => false
end
add_index "geoipisp", ["company"], :name => "geoipisp_company_ndx"
create_table "geoiplocations", :id => false, :force => true do |t|
t.integer "locid", :null => false
t.string "countrycode", :limit => 2
t.string "region", :limit => 2
t.string "city"
t.string "postalcode", :limit => 8
t.float "latitude", :null => false
t.float "longitude", :null => false
t.integer "metrocode"
t.string "areacode", :limit => 3
t.integer "geog", :limit => 0
end
add_index "geoiplocations", ["geog"], :name => "geoiplocations_geog_gix", :using => :gist
create_table "icecast_admin_authentications", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "source_pass", :limit => 64, :null => false
t.string "relay_user", :limit => 64, :null => false
t.string "relay_pass", :limit => 64, :null => false
t.string "admin_user", :limit => 64, :null => false
t.string "admin_pass", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_directories", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.integer "yp_url_timeout", :default => 15, :null => false
t.string "yp_url", :limit => 1024, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_limits", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.integer "clients", :default => 1000, :null => false
t.integer "sources", :default => 50, :null => false
t.integer "queue_size", :default => 102400, :null => false
t.integer "client_timeout", :default => 30
t.integer "header_timeout", :default => 15
t.integer "source_timeout", :default => 10
t.integer "burst_size", :default => 65536
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_listen_sockets", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.integer "port", :default => 8001, :null => false
t.string "bind_address", :limit => 1024
t.string "shoutcast_mount", :limit => 1024
t.integer "shoutcast_compat"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_loggings", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "access_log", :limit => 1024, :default => "access.log", :null => false
t.string "error_log", :limit => 1024, :default => "error.log", :null => false
t.string "playlist_log", :limit => 1024
t.integer "log_level", :default => 3, :null => false
t.integer "log_archive"
t.integer "log_size", :default => 10000
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_master_server_relays", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "master_server", :limit => 1024, :null => false
t.integer "master_server_port", :default => 8001, :null => false
t.integer "master_update_interval", :default => 120, :null => false
t.string "master_username", :limit => 64, :null => false
t.string "master_pass", :limit => 64, :null => false
t.integer "relays_on_demand", :default => 1, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_mount_templates", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "name", :limit => 256, :null => false
t.string "source_username", :limit => 64
t.string "source_pass", :limit => 64
t.integer "max_listeners", :default => 10000
t.integer "max_listener_duration", :default => 3600
t.string "dump_file", :limit => 1024
t.string "intro", :limit => 1024
t.string "fallback_mount", :limit => 1024
t.integer "fallback_override", :default => 1
t.integer "fallback_when_full", :default => 1
t.string "charset", :limit => 1024, :default => "ISO8859-1"
t.integer "is_public", :default => 0
t.string "stream_name", :limit => 1024
t.string "stream_description", :limit => 10000
t.string "stream_url", :limit => 1024
t.string "genre", :limit => 256
t.integer "bitrate"
t.string "mime_type", :limit => 64, :default => "audio/mpeg", :null => false
t.string "subtype", :limit => 64
t.integer "burst_size"
t.integer "mp3_metadata_interval"
t.integer "hidden", :default => 1
t.string "on_connect", :limit => 1024
t.string "on_disconnect", :limit => 1024
t.string "authentication_id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_mounts", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "name", :limit => 1024, :null => false
t.string "source_username", :limit => 64
t.string "source_pass", :limit => 64
t.integer "max_listeners", :default => 10000
t.integer "max_listener_duration", :default => 3600
t.string "dump_file", :limit => 1024
t.string "intro", :limit => 1024
t.string "fallback_mount", :limit => 1024
t.integer "fallback_override", :default => 1
t.integer "fallback_when_full", :default => 1
t.string "charset", :limit => 1024, :default => "ISO8859-1"
t.integer "is_public", :default => 0
t.string "stream_name", :limit => 1024
t.string "stream_description", :limit => 10000
t.string "stream_url", :limit => 1024
t.string "genre", :limit => 256
t.integer "bitrate"
t.string "mime_type", :limit => 64
t.string "subtype", :limit => 64
t.integer "burst_size"
t.integer "mp3_metadata_interval"
t.integer "hidden", :default => 1
t.string "on_connect", :limit => 1024
t.string "on_disconnect", :limit => 1024
t.string "authentication_id", :limit => 64
t.integer "listeners", :default => 0, :null => false
t.boolean "sourced", :default => false, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "music_session_id", :limit => 64
t.string "icecast_server_id", :limit => 64, :null => false
t.string "icecast_mount_template_id", :limit => 64
t.datetime "sourced_needs_changing_at"
t.boolean "source_direction", :default => false, :null => false
end
add_index "icecast_mounts", ["name"], :name => "icecast_mounts_name_key", :unique => true
create_table "icecast_paths", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "base_dir", :limit => 1024, :default => "./", :null => false
t.string "log_dir", :limit => 1024, :default => "./logs", :null => false
t.string "pid_file", :limit => 1024, :default => "./icecast.pid"
t.string "web_root", :limit => 1024, :default => "./web", :null => false
t.string "admin_root", :limit => 1024, :default => "./admin", :null => false
t.string "allow_ip", :limit => 1024
t.string "deny_ip", :limit => 1024
t.string "alias_source", :limit => 1024
t.string "alias_dest", :limit => 1024
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_relays", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "server", :limit => 1024, :null => false
t.integer "port", :default => 8001, :null => false
t.string "mount", :limit => 1024, :null => false
t.string "local_mount", :limit => 1024
t.string "relay_username", :limit => 64
t.string "relay_pass", :limit => 64
t.integer "relay_shoutcast_metadata", :default => 0
t.integer "on_demand", :default => 1
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_securities", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.integer "chroot", :default => 0, :null => false
t.string "change_owner_user", :limit => 64
t.string "change_owner_group", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_server_groups", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "name", :null => false
end
add_index "icecast_server_groups", ["name"], :name => "icecast_server_groups_name_key", :unique => true
create_table "icecast_server_mounts", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "icecast_mount_id", :limit => 64
t.string "icecast_server_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "icecast_server_mounts", ["icecast_mount_id", "icecast_server_id"], :name => "server_mount_uniqkey", :unique => true
create_table "icecast_server_relays", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "icecast_relay_id", :limit => 64
t.string "icecast_server_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "icecast_server_relays", ["icecast_relay_id", "icecast_server_id"], :name => "server_relay_uniqkey", :unique => true
create_table "icecast_server_sockets", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "icecast_listen_socket_id", :limit => 64
t.string "icecast_server_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "icecast_server_sockets", ["icecast_listen_socket_id", "icecast_server_id"], :name => "server_socket_uniqkey", :unique => true
create_table "icecast_servers", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.integer "config_changed", :default => 0
t.string "limit_id", :limit => 64
t.string "admin_auth_id", :limit => 64
t.string "directory_id", :limit => 64
t.string "master_relay_id", :limit => 64
t.string "path_id", :limit => 64
t.string "logging_id", :limit => 64
t.string "security_id", :limit => 64
t.string "template_id", :limit => 64, :null => false
t.string "hostname", :limit => 1024, :null => false
t.string "server_id", :limit => 1024, :null => false
t.string "location", :limit => 1024
t.string "admin_email", :limit => 1024
t.integer "fileserve"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "icecast_server_group_id", :limit => 64, :default => "default", :null => false
t.string "mount_template_id", :limit => 64
t.datetime "config_updated_at"
end
add_index "icecast_servers", ["server_id"], :name => "icecast_servers_server_id_key", :unique => true
create_table "icecast_source_changes", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.boolean "source_direction", :null => false
t.string "change_type", :limit => 64, :null => false
t.string "user_id", :limit => 64
t.string "client_id", :limit => 64
t.boolean "success", :null => false
t.string "reason", :limit => nil
t.string "detail", :limit => nil
t.datetime "created_at", :null => false
t.string "icecast_mount_id", :limit => 64, :null => false
end
create_table "icecast_template_sockets", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "icecast_listen_socket_id", :limit => 64
t.string "icecast_template_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "icecast_template_sockets", ["icecast_listen_socket_id", "icecast_template_id"], :name => "template_socket_uniqkey", :unique => true
create_table "icecast_templates", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "limit_id", :limit => 64
t.string "admin_auth_id", :limit => 64
t.string "directory_id", :limit => 64
t.string "master_relay_id", :limit => 64
t.string "path_id", :limit => 64
t.string "logging_id", :limit => 64
t.string "security_id", :limit => 64
t.string "location", :limit => 1024, :null => false
t.string "name", :limit => 256, :null => false
t.string "admin_email", :limit => 1024, :default => "admin@jamkazam.com", :null => false
t.integer "fileserve", :default => 1, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "icecast_user_authentications", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "authentication_type", :limit => 16, :default => "url"
t.string "filename", :limit => 1024
t.integer "allow_duplicate_users"
t.string "mount_add", :limit => 1024
t.string "mount_remove", :limit => 1024
t.string "listener_add", :limit => 1024
t.string "listener_remove", :limit => 1024
t.string "unused_username", :limit => 64
t.string "unused_pass", :limit => 64
t.string "auth_header", :limit => 64, :default => "icecast-auth-user: 1"
t.string "timelimit_header", :limit => 64, :default => "icecast-auth-timelimit:"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "instruments", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "description", :limit => 1024, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "popularity", :default => 0, :null => false
end
create_table "invitations", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "sender_id", :limit => 64
t.string "receiver_id", :limit => 64
t.string "music_session_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "join_request_id", :limit => 64
end
create_table "invited_users", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "sender_id", :limit => 64
t.boolean "autofriend", :null => false
t.string "email", :limit => 256
t.string "invitation_code", :limit => 256, :null => false
t.boolean "accepted", :default => false
t.text "note"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "invite_medium", :limit => 64
end
add_index "invited_users", ["invitation_code"], :name => "invited_users_invitation_code_key", :unique => true
create_table "isp_score_batch", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.text "json_scoring_data", :null => false
t.datetime "created_at", :null => false
end
create_table "jam_track_licensors", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "name", :limit => nil, :null => false
t.text "description"
t.text "attention"
t.string "address_line_1", :limit => nil
t.string "address_line_2", :limit => nil
t.string "city", :limit => nil
t.string "state", :limit => nil
t.string "zip_code", :limit => nil
t.string "contact", :limit => nil
t.string "email", :limit => nil
t.string "phone", :limit => nil
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "jam_track_licensors", ["name"], :name => "jam_track_licensors_name_key", :unique => true
create_table "jam_track_rights", :force => true do |t|
t.string "user_id", :limit => 64, :null => false
t.integer "jam_track_id", :limit => 8, :null => false
t.string "url", :limit => 2048
t.string "md5", :limit => nil
t.integer "length", :default => 0, :null => false
t.integer "download_count", :default => 0, :null => false
t.boolean "signed", :default => false, :null => false
t.boolean "downloaded_since_sign", :default => false, :null => false
t.datetime "last_signed_at"
t.datetime "last_downloaded_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "private_key", :limit => nil
t.datetime "signing_queued_at"
t.datetime "signing_started_at"
t.integer "error_count", :default => 0, :null => false
t.string "error_reason", :limit => nil
t.string "error_detail", :limit => nil
t.boolean "should_retry", :default => false, :null => false
t.boolean "redeemed", :default => false, :null => false
end
add_index "jam_track_rights", ["user_id", "jam_track_id"], :name => "jam_tracks_rights_uniqkey"
create_table "jam_track_tap_ins", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.integer "offset_time", :null => false
t.integer "jam_track_id", :limit => 8, :null => false
t.decimal "bpm", :null => false
t.integer "tap_in_count", :default => 0, :null => false
end
create_table "jam_track_tracks", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.integer "position"
t.string "track_type", :limit => nil
t.integer "jam_track_id", :limit => 8, :null => false
t.string "instrument_id", :limit => 64
t.string "part", :limit => nil
t.string "url", :limit => nil
t.string "md5", :limit => nil
t.integer "length", :limit => 8
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "jam_track_tracks", ["position", "jam_track_id"], :name => "jam_track_tracks_position_uniqkey"
create_table "jam_tracks", :force => true do |t|
t.string "name", :limit => nil, :null => false
t.text "description"
t.string "time_signature", :limit => nil
t.string "status", :limit => nil
t.string "recording_type", :limit => nil
t.text "original_artist"
t.text "songwriter"
t.text "publisher"
t.string "pro", :limit => nil
t.string "sales_region", :limit => nil
t.decimal "price"
t.boolean "reproduction_royalty"
t.boolean "public_performance_royalty"
t.decimal "reproduction_royalty_amount"
t.decimal "licensor_royalty_amount"
t.decimal "pro_royalty_amount"
t.string "url", :limit => nil
t.string "md5", :limit => nil
t.integer "length", :limit => 8
t.string "licensor_id", :limit => 64
t.string "genre_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "plan_code", :limit => 50
t.decimal "initial_play_silence", :default => 5.0, :null => false
t.boolean "available", :default => false, :null => false
end
add_index "jam_tracks", ["name"], :name => "jam_tracks_name_key", :unique => true
create_table "jamcompany", :primary_key => "coid", :force => true do |t|
t.string "company", :limit => 50, :null => false
end
add_index "jamcompany", ["company"], :name => "jamcompany_company_ndx", :unique => true
# Could not dump table "jamisp" because of following StandardError
# Unknown type 'geometry(Polygon)' for column 'geom'
create_table "join_requests", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64
t.string "music_session_id", :limit => 64
t.string "text", :limit => 2000
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "join_requests", ["user_id", "music_session_id"], :name => "user_music_session_uniqkey", :unique => true
create_table "latency_testers", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "client_id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "latency_testers", ["client_id"], :name => "latency_testers_client_id_key", :unique => true
create_table "layer", :id => false, :force => true do |t|
t.integer "topology_id", :null => false
t.integer "layer_id", :null => false
t.string "schema_name", :limit => nil, :null => false
t.string "table_name", :limit => nil, :null => false
t.string "feature_column", :limit => nil, :null => false
t.integer "feature_type", :null => false
t.integer "level", :default => 0, :null => false
t.integer "child_id"
end
add_index "layer", ["schema_name", "table_name", "feature_column"], :name => "layer_schema_name_table_name_feature_column_key", :unique => true
create_table "likes", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.string "likable_id", :limit => 64, :null => false
t.string "likable_type", :limit => 25, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "likes", ["user_id", "likable_id"], :name => "likes_user_uniqkey", :unique => true
create_table "loader_lookuptables", :id => false, :force => true do |t|
t.integer "process_order", :default => 1000, :null => false
t.text "lookup_name", :null => false
t.text "table_name"
t.boolean "single_mode", :default => true, :null => false
t.boolean "load", :default => true, :null => false
t.boolean "level_county", :default => false, :null => false
t.boolean "level_state", :default => false, :null => false
t.boolean "level_nation", :default => false, :null => false
t.text "post_load_process"
t.boolean "single_geom_mode", :default => false
t.string "insert_mode", :limit => 1, :default => "c", :null => false
t.text "pre_load_process"
t.text "columns_exclude", :array => true
t.text "website_root_override"
end
create_table "loader_platform", :id => false, :force => true do |t|
t.string "os", :limit => 50, :null => false
t.text "declare_sect"
t.text "pgbin"
t.text "wget"
t.text "unzip_command"
t.text "psql"
t.text "path_sep"
t.text "loader"
t.text "environ_set_command"
t.text "county_process_command"
end
create_table "loader_variables", :id => false, :force => true do |t|
t.string "tiger_year", :limit => 4, :null => false
t.text "website_root"
t.text "staging_fold"
t.text "data_schema"
t.text "staging_schema"
end
create_table "max_mind_releases", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.date "released_at", :null => false
t.boolean "imported", :default => false, :null => false
t.date "imported_at"
t.string "geo_ip_124_url", :limit => 2000
t.string "geo_ip_124_md5"
t.integer "geo_ip_124_size"
t.string "geo_ip_134_url", :limit => 2000
t.string "geo_ip_134_md5"
t.integer "geo_ip_134_size"
t.string "region_codes_url", :limit => 2000
t.string "region_codes_md5"
t.integer "region_codes_size"
t.string "iso3166_url", :limit => 2000
t.string "iso3166_md5"
t.integer "iso3166_size"
t.string "table_dumps_url", :limit => 2000
t.string "table_dumps_md5"
t.integer "table_dumps_size"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "max_mind_releases", ["released_at"], :name => "max_mind_releases_released_at_key", :unique => true
create_table "mixes", :force => true do |t|
t.string "recording_id", :limit => 64, :null => false
t.string "mix_server", :limit => 64
t.datetime "started_at"
t.datetime "completed_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "ogg_md5", :limit => 100
t.integer "ogg_length"
t.string "ogg_url", :limit => 1024
t.boolean "completed", :default => false, :null => false
t.integer "error_count", :default => 0, :null => false
t.text "error_reason"
t.text "error_detail"
t.boolean "should_retry", :default => false, :null => false
t.string "mp3_md5", :limit => 100
t.integer "mp3_length"
t.string "mp3_url", :limit => 1024
t.integer "download_count", :default => 0, :null => false
t.datetime "last_downloaded_at"
end
add_index "mixes", ["completed_at"], :name => "index_completed_at"
add_index "mixes", ["started_at"], :name => "index_started_at"
create_table "music_notations", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.string "music_session_id", :limit => 64
t.string "file_url", :limit => 512
t.integer "size"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "file_name"
end
create_table "music_session_perf_data", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "music_session_id", :limit => 64
t.string "client_id", :limit => 64
t.string "uri", :limit => 1000
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "music_sessions", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "music_session_id", :limit => 64
t.string "description", :limit => 8000
t.string "user_id", :limit => 64, :null => false
t.string "band_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "session_removed_at"
t.integer "play_count", :default => 0, :null => false
t.integer "like_count", :default => 0, :null => false
t.boolean "fan_access", :default => true, :null => false
t.datetime "scheduled_start"
t.string "scheduled_duration", :limit => nil
t.boolean "musician_access", :default => true, :null => false
t.boolean "approval_required", :default => false, :null => false
t.boolean "fan_chat", :default => true, :null => false
t.string "genre_id", :limit => 64, :null => false
t.string "legal_policy", :default => "standard", :null => false
t.string "language", :default => "eng", :null => false
t.text "name", :null => false
t.string "recurring_session_id", :limit => 64
t.string "recurring_mode", :limit => 50, :default => "once", :null => false
t.string "timezone"
t.datetime "started_at"
t.boolean "open_rsvps", :default => false, :null => false
t.boolean "next_session_scheduled", :default => false
t.tsvector "description_tsv"
t.boolean "is_unstructured_rsvp", :default => false
t.boolean "canceled", :default => false
t.string "create_type", :limit => 64
end
add_index "music_sessions", ["description_tsv"], :name => "music_sessions_description_tsv_index", :using => :gin
add_index "music_sessions", ["music_session_id"], :name => "music_session_uniqkey", :unique => true
create_table "music_sessions_comments", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "creator_id", :limit => 64, :null => false
t.string "comment", :limit => 4000, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.inet "ip_address"
t.string "music_session_id", :limit => 64
end
create_table "music_sessions_likers", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "liker_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.inet "ip_address"
t.string "music_session_id", :limit => 64
end
create_table "music_sessions_user_history", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.string "client_id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "session_removed_at"
t.integer "max_concurrent_connections"
t.integer "rating"
t.string "instruments"
t.text "rating_comment"
t.string "music_session_id", :limit => 64
end
add_index "music_sessions_user_history", ["music_session_id"], :name => "msuh_music_session_idx"
create_table "musicians_instruments", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.string "instrument_id", :limit => 64, :null => false
t.integer "proficiency_level", :limit => 2, :null => false
t.integer "priority", :limit => 2, :default => 1, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "musicians_instruments", ["user_id", "instrument_id"], :name => "musician_instrument_uniqkey", :unique => true
create_table "notifications", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "description", :limit => 100, :null => false
t.string "source_user_id", :limit => 64
t.string "target_user_id", :limit => 64
t.string "band_id", :limit => 64
t.string "session_id", :limit => 64
t.string "recording_id", :limit => 64
t.string "invitation_id", :limit => 64
t.string "join_request_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "friend_request_id", :limit => 64
t.string "band_invitation_id", :limit => 64
t.text "message"
t.integer "jam_track_right_id", :limit => 8
end
create_table "pagc_gaz", :force => true do |t|
t.integer "seq"
t.text "word"
t.text "stdword"
t.integer "token"
t.boolean "is_custom", :default => true, :null => false
end
create_table "pagc_lex", :force => true do |t|
t.integer "seq"
t.text "word"
t.text "stdword"
t.integer "token"
t.boolean "is_custom", :default => true, :null => false
end
create_table "pagc_rules", :force => true do |t|
t.text "rule"
t.boolean "is_custom", :default => true
end
create_table "performance_samples", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.string "url", :limit => 4000
t.string "type", :limit => 100, :null => false
t.string "claimed_recording_id", :limit => 64
t.string "service_id", :limit => 100
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
# Could not dump table "place" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "place_lookup", :id => false, :force => true do |t|
t.integer "st_code", :null => false
t.string "state", :limit => 2
t.integer "pl_code", :null => false
t.string "name", :limit => 90
end
add_index "place_lookup", ["state"], :name => "place_lookup_state_idx"
create_table "playable_plays", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "playable_id", :limit => 64, :null => false
t.string "playable_type", :limit => 128, :null => false
t.string "player_id", :limit => 64
t.string "claimed_recording_id", :limit => 64
t.inet "ip_address"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "promotionals", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "type", :limit => 128, :default => "JamRuby::PromoBuzz", :null => false
t.string "aasm_state", :limit => 64, :default => "hidden"
t.integer "position", :default => 0, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "latest_id", :limit => 64
t.string "latest_type", :limit => 128
t.string "image", :limit => 1024
t.string "text_short", :limit => 512
t.string "text_long", :limit => 4096
end
add_index "promotionals", ["latest_id", "latest_type"], :name => "promo_latest_idx"
create_table "quick_mixes", :force => true do |t|
t.integer "next_part_to_upload", :default => 0, :null => false
t.boolean "fully_uploaded", :default => false, :null => false
t.string "upload_id", :limit => 1024
t.integer "file_offset", :limit => 8, :default => 0
t.boolean "is_part_uploading", :default => false, :null => false
t.integer "upload_failures", :default => 0
t.integer "part_failures", :default => 0
t.string "ogg_md5", :limit => 100
t.integer "ogg_length"
t.string "ogg_url", :limit => 1000
t.string "mp3_md5", :limit => 100
t.integer "mp3_length"
t.string "mp3_url", :limit => 1000
t.integer "error_count", :default => 0, :null => false
t.text "error_reason"
t.text "error_detail"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "started_at"
t.datetime "completed_at"
t.boolean "completed", :default => false, :null => false
t.boolean "should_retry", :default => false, :null => false
t.boolean "cleaned", :default => false, :null => false
t.string "user_id", :limit => 64
t.string "recording_id", :limit => 64
end
create_table "recorded_backing_tracks", :force => true do |t|
t.string "user_id", :limit => 64
t.string "backing_track_id", :limit => 64
t.string "recording_id", :limit => 64, :null => false
t.string "client_track_id", :limit => 64, :null => false
t.boolean "is_part_uploading", :default => false, :null => false
t.integer "next_part_to_upload", :default => 0, :null => false
t.string "upload_id", :limit => 1024
t.integer "part_failures", :default => 0, :null => false
t.boolean "discard"
t.integer "download_count", :default => 0, :null => false
t.string "md5", :limit => 100
t.integer "length", :limit => 8
t.string "client_id", :limit => 64, :null => false
t.integer "file_offset", :limit => 8
t.string "url", :limit => 1024, :null => false
t.boolean "fully_uploaded", :default => false, :null => false
t.integer "upload_failures", :default => 0, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "filename", :limit => nil, :null => false
t.datetime "last_downloaded_at"
end
create_table "recorded_tracks", :force => true do |t|
t.string "user_id", :limit => 64, :null => false
t.string "instrument_id", :limit => 64, :null => false
t.string "sound", :limit => 64, :null => false
t.integer "next_part_to_upload", :default => 0, :null => false
t.boolean "fully_uploaded", :default => false, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "upload_id", :limit => 1024
t.string "recording_id", :limit => 64, :null => false
t.string "md5", :limit => 100
t.integer "length", :limit => 8
t.string "client_id", :limit => 64, :null => false
t.string "track_id", :limit => 64, :null => false
t.string "url", :limit => 1024
t.integer "file_offset", :limit => 8, :default => 0
t.string "client_track_id", :limit => 64, :null => false
t.boolean "is_part_uploading", :default => false, :null => false
t.integer "upload_failures", :default => 0, :null => false
t.integer "part_failures", :default => 0, :null => false
t.boolean "discard"
t.integer "download_count", :default => 0, :null => false
t.datetime "last_downloaded_at"
end
create_table "recorded_videos", :force => true do |t|
t.string "user_id", :limit => 64
t.boolean "fully_uploaded", :default => false, :null => false
t.string "recording_id", :limit => 64, :null => false
t.integer "length", :limit => 8
t.string "client_video_source_id", :limit => 64, :null => false
t.string "url", :limit => 1024
t.integer "file_offset", :limit => 8
t.integer "upload_failures", :default => 0, :null => false
t.boolean "discard"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "recordings", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "owner_id", :limit => 64, :null => false
t.string "music_session_id", :limit => 64
t.string "band_id", :limit => 64
t.integer "duration"
t.boolean "is_done", :default => false
t.boolean "all_discarded", :default => false, :null => false
t.string "name", :limit => 1024
t.integer "play_count", :default => 0, :null => false
t.integer "like_count", :default => 0, :null => false
t.boolean "has_stream_mix", :default => false, :null => false
t.boolean "has_final_mix", :default => false, :null => false
t.integer "first_quick_mix_id", :limit => 8
t.boolean "deleted", :default => false, :null => false
end
create_table "recordings_comments", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "recording_id", :limit => 64, :null => false
t.string "creator_id", :limit => 64, :null => false
t.string "comment", :limit => 4000, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.inet "ip_address"
end
create_table "recordings_downloads", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "recording_id", :limit => 64, :null => false
t.string "downloader_id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "recordings_likers", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "recording_id", :limit => 64, :null => false
t.string "liker_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.inet "ip_address"
t.string "claimed_recording_id", :limit => 64, :null => false
t.boolean "favorite", :default => true, :null => false
end
add_index "recordings_likers", ["recording_id", "liker_id"], :name => "recording_liker_uniqkey", :unique => true
create_table "recurring_sessions", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "description", :limit => 8000
t.datetime "scheduled_start"
t.string "scheduled_duration", :limit => nil
t.boolean "musician_access", :null => false
t.boolean "approval_required", :null => false
t.boolean "fan_chat", :null => false
t.string "genre_id", :limit => 64
t.string "legal_policy", :default => "standard", :null => false
t.string "language", :default => "en", :null => false
t.text "name"
t.string "user_id", :limit => 64, :null => false
t.string "band_id", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "regions", :id => false, :force => true do |t|
t.string "region", :limit => 2, :null => false
t.string "regionname", :limit => 64
t.string "countrycode", :limit => 2, :null => false
end
add_index "regions", ["countrycode", "region"], :name => "regions_countrycode_region_ndx", :unique => true
add_index "regions", ["countrycode"], :name => "regions_countrycode_ndx"
create_table "rsvp_requests", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.boolean "canceled", :default => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "cancel_all", :default => false
end
create_table "rsvp_requests_rsvp_slots", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "rsvp_request_id", :limit => 64, :null => false
t.string "rsvp_slot_id", :limit => 64, :null => false
t.boolean "chosen"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "rsvp_slots", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "instrument_id", :limit => 64
t.integer "proficiency_level", :limit => 2
t.string "music_session_id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.boolean "is_unstructured_rsvp", :default => false
end
create_table "score_histories", :id => false, :force => true do |t|
t.string "from_client_id", :limit => 64
t.integer "from_addr", :limit => 8
t.string "from_isp", :limit => 50
t.string "from_country", :limit => 64
t.string "from_region", :limit => 64
t.string "from_city"
t.string "from_postal", :limit => 25
t.float "from_latitude"
t.float "from_longitude"
t.string "to_client_id", :limit => 64
t.integer "to_addr", :limit => 8
t.string "to_isp", :limit => 50
t.string "to_country", :limit => 64
t.string "to_region", :limit => 64
t.string "to_city"
t.string "to_postal", :limit => 25
t.float "to_latitude"
t.float "to_longitude"
t.integer "score", :null => false
t.datetime "score_dt", :null => false
t.text "scoring_data"
t.string "from_user_id", :limit => 64
t.string "to_user_id", :limit => 64
t.string "from_latency_tester_id", :limit => 64
t.string "to_latency_tester_id", :limit => 64
t.integer "from_locidispid", :limit => 8, :null => false
t.integer "to_locidispid", :limit => 8, :null => false
end
create_table "scores", :id => false, :force => true do |t|
t.integer "alocidispid", :limit => 8, :null => false
t.string "anodeid", :limit => 64, :null => false
t.integer "aaddr", :limit => 8, :null => false
t.integer "blocidispid", :limit => 8, :null => false
t.string "bnodeid", :limit => 64, :null => false
t.integer "baddr", :limit => 8, :null => false
t.integer "score", :null => false
t.integer "scorer", :null => false
t.datetime "score_dt", :null => false
t.string "scoring_data", :limit => 4000
t.datetime "created_at", :null => false
t.string "auserid", :limit => 64
t.string "buserid", :limit => 64
t.string "alatencytestid", :limit => 64
t.string "blatencytestid", :limit => 64
end
add_index "scores", ["alocidispid", "blocidispid", "score_dt"], :name => "scores_alocidispid_blocidispid_score_dt_ndx"
add_index "scores", ["blocidispid", "alocidispid", "score_dt"], :name => "scores_blocidispid_alocidispid_score_dt_ndx"
create_table "secondary_unit_lookup", :id => false, :force => true do |t|
t.string "name", :limit => 20, :null => false
t.string "abbrev", :limit => 5
end
add_index "secondary_unit_lookup", ["abbrev"], :name => "secondary_unit_lookup_abbrev_idx"
create_table "session_info_comments", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "music_session_id", :limit => 64, :null => false
t.string "creator_id", :limit => 64, :null => false
t.text "comment", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "share_tokens", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "token", :limit => 15, :null => false
t.string "shareable_id", :limit => 64, :null => false
t.string "shareable_type", :limit => 50, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "share_tokens", ["token"], :name => "token_uniqkey", :unique => true
create_table "shopping_carts", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.integer "quantity", :default => 1, :null => false
t.string "user_id", :limit => 64, :null => false
t.string "cart_id", :limit => 64, :null => false
t.string "cart_class_name", :limit => 64
t.string "cart_type", :limit => 64
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "spatial_ref_sys", :id => false, :force => true do |t|
t.integer "srid", :null => false
t.string "auth_name", :limit => 256
t.integer "auth_srid"
t.string "srtext", :limit => 2048
t.string "proj4text", :limit => 2048
end
# Could not dump table "state" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "state_lookup", :id => false, :force => true do |t|
t.integer "st_code", :null => false
t.string "name", :limit => 40
t.string "abbrev", :limit => 3
t.string "statefp", :limit => 2
end
add_index "state_lookup", ["abbrev"], :name => "state_lookup_abbrev_key", :unique => true
add_index "state_lookup", ["name"], :name => "state_lookup_name_key", :unique => true
add_index "state_lookup", ["statefp"], :name => "state_lookup_statefp_key", :unique => true
create_table "street_type_lookup", :id => false, :force => true do |t|
t.string "name", :limit => 50, :null => false
t.string "abbrev", :limit => 50
t.boolean "is_hw", :default => false, :null => false
end
add_index "street_type_lookup", ["abbrev"], :name => "street_type_lookup_abbrev_idx"
# Could not dump table "tabblock" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "text_messages", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "source_user_id", :limit => 64
t.string "target_user_id", :limit => 64
t.text "message", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "topology", :force => true do |t|
t.string "name", :limit => nil, :null => false
t.integer "srid", :null => false
t.float "precision", :null => false
t.boolean "hasz", :default => false, :null => false
end
add_index "topology", ["name"], :name => "topology_name_key", :unique => true
create_table "tracks", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "connection_id", :limit => 64, :null => false
t.string "instrument_id", :limit => 64
t.string "sound", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "client_track_id", :limit => 64, :null => false
t.string "client_resource_id", :limit => 100
end
# Could not dump table "tract" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "user_authorizations", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64
t.string "uid", :null => false
t.string "provider", :null => false
t.string "token", :limit => 2000
t.datetime "token_expiration"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "secret"
end
add_index "user_authorizations", ["provider", "uid"], :name => "user_authorizations_uniqkey", :unique => true
add_index "user_authorizations", ["user_id"], :name => "user_authorizations_user_id_idx"
create_table "user_presences", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "user_id", :limit => 64, :null => false
t.string "type", :limit => 100, :null => false
t.string "username", :limit => 100, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
# Could not dump table "users" because of following StandardError
# Unknown type 'json' for column 'mods'
create_table "video_sources", :id => false, :force => true do |t|
t.string "id", :limit => 64, :null => false
t.string "connection_id", :limit => 64, :null => false
t.string "client_video_source_id", :limit => 64, :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "wert_snot", :id => false, :force => true do |t|
t.integer "count", :limit => 8
t.integer "last_jam_locidispid", :limit => 8
end
# Could not dump table "zcta5" because of following StandardError
# Unknown type 'geometry' for column 'the_geom'
create_table "zip_lookup", :id => false, :force => true do |t|
t.integer "zip", :null => false
t.integer "st_code"
t.string "state", :limit => 2
t.integer "co_code"
t.string "county", :limit => 90
t.integer "cs_code"
t.string "cousub", :limit => 90
t.integer "pl_code"
t.string "place", :limit => 90
t.integer "cnt"
end
create_table "zip_lookup_all", :id => false, :force => true do |t|
t.integer "zip"
t.integer "st_code"
t.string "state", :limit => 2
t.integer "co_code"
t.string "county", :limit => 90
t.integer "cs_code"
t.string "cousub", :limit => 90
t.integer "pl_code"
t.string "place", :limit => 90
t.integer "cnt"
end
create_table "zip_lookup_base", :id => false, :force => true do |t|
t.string "zip", :limit => 5, :null => false
t.string "state", :limit => 40
t.string "county", :limit => 90
t.string "city", :limit => 90
t.string "statefp", :limit => 2
end
create_table "zip_state", :id => false, :force => true do |t|
t.string "zip", :limit => 5, :null => false
t.string "stusps", :limit => 2, :null => false
t.string "statefp", :limit => 2
end
create_table "zip_state_loc", :id => false, :force => true do |t|
t.string "zip", :limit => 5, :null => false
t.string "stusps", :limit => 2, :null => false
t.string "statefp", :limit => 2
t.string "place", :limit => 100, :null => false
end
end