2012-12-29 01:53:06 +01:00
|
|
|
# encoding: UTF-8
|
2011-04-20 17:09:55 +02:00
|
|
|
# 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.
|
2011-06-29 22:39:37 +02:00
|
|
|
|
2011-06-30 06:38:27 +02:00
|
|
|
ActiveRecord::Schema.define(:version => 20110630033512) do
|
2011-06-06 02:25:25 +02:00
|
|
|
|
|
|
|
|
create_table "artists", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.datetime "created_at"
|
|
|
|
|
t.datetime "updated_at"
|
2011-06-30 06:38:27 +02:00
|
|
|
t.string "img_url"
|
2011-06-06 02:25:25 +02:00
|
|
|
end
|
|
|
|
|
|
2011-06-07 00:51:24 +02:00
|
|
|
create_table "artists_users", :id => false, :force => true do |t|
|
2011-06-06 02:25:25 +02:00
|
|
|
t.integer "user_id"
|
|
|
|
|
t.integer "artist_id"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "playlists", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.datetime "created_at"
|
|
|
|
|
t.datetime "updated_at"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "playlists_tracks", :force => true do |t|
|
|
|
|
|
t.integer "playlist_id"
|
|
|
|
|
t.integer "track_id"
|
|
|
|
|
t.string "youtube_id"
|
|
|
|
|
t.integer "position"
|
|
|
|
|
t.datetime "created_at"
|
|
|
|
|
t.datetime "updated_at"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "tracks", :force => true do |t|
|
|
|
|
|
t.string "title"
|
|
|
|
|
t.integer "artist_id"
|
|
|
|
|
t.datetime "created_at"
|
|
|
|
|
t.datetime "updated_at"
|
|
|
|
|
end
|
2011-05-31 01:30:57 +02:00
|
|
|
|
|
|
|
|
create_table "users", :force => true do |t|
|
|
|
|
|
t.string "username"
|
|
|
|
|
t.integer "playcount", :default => 0
|
|
|
|
|
t.string "email", :default => "", :null => false
|
|
|
|
|
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
|
|
|
|
t.string "reset_password_token"
|
|
|
|
|
t.datetime "reset_password_sent_at"
|
|
|
|
|
t.datetime "remember_created_at"
|
|
|
|
|
t.integer "sign_in_count", :default => 0
|
|
|
|
|
t.datetime "current_sign_in_at"
|
|
|
|
|
t.datetime "last_sign_in_at"
|
|
|
|
|
t.string "current_sign_in_ip"
|
|
|
|
|
t.string "last_sign_in_ip"
|
|
|
|
|
t.datetime "created_at"
|
|
|
|
|
t.datetime "updated_at"
|
|
|
|
|
t.string "avatar_file_name"
|
|
|
|
|
t.string "avatar_content_type"
|
|
|
|
|
t.integer "avatar_file_size"
|
|
|
|
|
t.datetime "avatar_updated_at"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
|
|
|
|
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
|
|
|
|
|
add_index "users", ["username"], :name => "index_users_on_username", :unique => true
|
2011-04-20 17:09:55 +02:00
|
|
|
|
2011-06-06 02:25:25 +02:00
|
|
|
create_table "youtube_video_ratings", :force => true do |t|
|
|
|
|
|
t.string "search_query"
|
|
|
|
|
t.string "video_id"
|
|
|
|
|
t.integer "rating", :default => 0
|
|
|
|
|
t.datetime "created_at"
|
|
|
|
|
t.datetime "updated_at"
|
|
|
|
|
end
|
|
|
|
|
|
2011-04-20 17:09:55 +02:00
|
|
|
end
|