|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
#
|
|
|
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20140411011700) do
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20140428005537) do
|
|
|
|
|
|
|
|
|
|
create_table "activities", :force => true do |t|
|
|
|
|
|
t.integer "act_id", :null => false
|
|
|
|
@ -185,6 +185,38 @@ ActiveRecord::Schema.define(:version => 20140411011700) do
|
|
|
|
|
add_index "comments", ["author_id"], :name => "index_comments_on_author_id"
|
|
|
|
|
add_index "comments", ["commented_id", "commented_type"], :name => "index_comments_on_commented_id_and_commented_type"
|
|
|
|
|
|
|
|
|
|
create_table "contesting_projects", :force => true do |t|
|
|
|
|
|
t.integer "project_id"
|
|
|
|
|
t.string "contest_id"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.string "description"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.string "reward"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "contesting_softapplications", :force => true do |t|
|
|
|
|
|
t.integer "softapplication_id"
|
|
|
|
|
t.integer "contest_id"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.string "description"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.string "reward"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "contests", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.string "budget", :default => ""
|
|
|
|
|
t.integer "author_id"
|
|
|
|
|
t.date "deadline"
|
|
|
|
|
t.string "description"
|
|
|
|
|
t.integer "commit"
|
|
|
|
|
t.string "password"
|
|
|
|
|
t.datetime "created_on", :null => false
|
|
|
|
|
t.datetime "updated_on", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "courses", :force => true do |t|
|
|
|
|
|
t.integer "tea_id"
|
|
|
|
|
t.string "name"
|
|
|
|
@ -521,6 +553,13 @@ ActiveRecord::Schema.define(:version => 20140411011700) do
|
|
|
|
|
add_index "issues", ["status_id"], :name => "index_issues_on_status_id"
|
|
|
|
|
add_index "issues", ["tracker_id"], :name => "index_issues_on_tracker_id"
|
|
|
|
|
|
|
|
|
|
create_table "join_in_competitions", :force => true do |t|
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.integer "competition_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "join_in_contests", :force => true do |t|
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.integer "bid_id"
|
|
|
|
@ -784,6 +823,7 @@ ActiveRecord::Schema.define(:version => 20140411011700) do
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "viewed_count_crawl", :default => 0
|
|
|
|
|
t.integer "viewed_count_local", :default => 0
|
|
|
|
|
t.string "url"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "repositories", :force => true do |t|
|
|
|
|
@ -812,8 +852,10 @@ ActiveRecord::Schema.define(:version => 20140411011700) do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "schools", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.string "province"
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.string "province"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "seems_rateable_cached_ratings", :force => true do |t|
|
|
|
|
@ -856,6 +898,21 @@ ActiveRecord::Schema.define(:version => 20140411011700) do
|
|
|
|
|
t.string "description"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "softapplications", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.string "description"
|
|
|
|
|
t.integer "app_type_id"
|
|
|
|
|
t.string "app_type_name"
|
|
|
|
|
t.string "android_min_version_available"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "contest_id"
|
|
|
|
|
t.integer "softapplication_id"
|
|
|
|
|
t.integer "is_public"
|
|
|
|
|
t.string "application_developers"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "students_for_courses", :force => true do |t|
|
|
|
|
|
t.integer "student_id"
|
|
|
|
|
t.integer "course_id"
|
|
|
|
@ -962,6 +1019,7 @@ ActiveRecord::Schema.define(:version => 20140411011700) do
|
|
|
|
|
t.string "teacher_realname"
|
|
|
|
|
t.string "student_realname"
|
|
|
|
|
t.string "location_city"
|
|
|
|
|
t.integer "school_id"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "user_grades", :force => true do |t|
|
|
|
|
@ -985,6 +1043,19 @@ ActiveRecord::Schema.define(:version => 20140411011700) do
|
|
|
|
|
|
|
|
|
|
add_index "user_preferences", ["user_id"], :name => "index_user_preferences_on_user_id"
|
|
|
|
|
|
|
|
|
|
create_table "user_scores", :force => true do |t|
|
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
|
t.integer "collaboration"
|
|
|
|
|
t.integer "influence"
|
|
|
|
|
t.integer "skill"
|
|
|
|
|
t.integer "active"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "level"
|
|
|
|
|
t.integer "file"
|
|
|
|
|
t.integer "issue"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "user_statuses", :force => true do |t|
|
|
|
|
|
t.integer "changesets_count"
|
|
|
|
|
t.integer "watchers_count"
|
|
|
|
|