|
|
|
@ -23,6 +23,15 @@ ActiveRecord::Schema.define(:version => 20140509020307) do
|
|
|
|
|
add_index "activities", ["user_id", "act_type"], :name => "index_activities_on_user_id_and_act_type"
|
|
|
|
|
add_index "activities", ["user_id"], :name => "index_activities_on_user_id"
|
|
|
|
|
|
|
|
|
|
create_table "apply_project_masters", :force => true do |t|
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.string "apply_type"
|
|
|
|
|
t.integer "apply_id"
|
|
|
|
|
t.integer "status"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "attachments", :force => true do |t|
|
|
|
|
|
t.integer "container_id"
|
|
|
|
|
t.string "container_type", :limit => 30
|
|
|
|
@ -36,7 +45,7 @@ ActiveRecord::Schema.define(:version => 20140509020307) do
|
|
|
|
|
t.datetime "created_on"
|
|
|
|
|
t.string "description"
|
|
|
|
|
t.string "disk_directory"
|
|
|
|
|
t.integer "attachtype"
|
|
|
|
|
t.integer "attachtype", :default => 1
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "attachments", ["author_id"], :name => "index_attachments_on_author_id"
|
|
|
|
@ -527,6 +536,14 @@ ActiveRecord::Schema.define(:version => 20140509020307) do
|
|
|
|
|
add_index "news", ["created_on"], :name => "index_news_on_created_on"
|
|
|
|
|
add_index "news", ["project_id"], :name => "news_project_id"
|
|
|
|
|
|
|
|
|
|
create_table "no_uses", :force => true do |t|
|
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
|
t.string "no_use_type"
|
|
|
|
|
t.integer "no_use_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "open_id_authentication_associations", :force => true do |t|
|
|
|
|
|
t.integer "issued"
|
|
|
|
|
t.integer "lifetime"
|
|
|
|
@ -542,6 +559,19 @@ ActiveRecord::Schema.define(:version => 20140509020307) do
|
|
|
|
|
t.string "salt", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "open_source_projects", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.text "description"
|
|
|
|
|
t.integer "commit_count", :default => 0
|
|
|
|
|
t.integer "code_line", :default => 0
|
|
|
|
|
t.integer "users_count", :default => 0
|
|
|
|
|
t.date "last_commit_time"
|
|
|
|
|
t.string "url"
|
|
|
|
|
t.date "date_collected"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "praise_tread_caches", :force => true do |t|
|
|
|
|
|
t.integer "object_id", :null => false
|
|
|
|
|
t.string "object_type"
|
|
|
|
@ -622,6 +652,24 @@ ActiveRecord::Schema.define(:version => 20140509020307) do
|
|
|
|
|
add_index "queries", ["project_id"], :name => "index_queries_on_project_id"
|
|
|
|
|
add_index "queries", ["user_id"], :name => "index_queries_on_user_id"
|
|
|
|
|
|
|
|
|
|
create_table "relative_memos", :force => true do |t|
|
|
|
|
|
t.integer "osp_id", :null => false
|
|
|
|
|
t.integer "parent_id"
|
|
|
|
|
t.string "subject", :null => false
|
|
|
|
|
t.text "content", :null => false
|
|
|
|
|
t.integer "author_id"
|
|
|
|
|
t.integer "replies_count", :default => 0
|
|
|
|
|
t.integer "last_reply_id"
|
|
|
|
|
t.boolean "lock", :default => false
|
|
|
|
|
t.boolean "sticky", :default => false
|
|
|
|
|
t.boolean "is_quote", :default => false
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
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|
|
|
|
|
|
t.integer "project_id", :default => 0, :null => false
|
|
|
|
|
t.string "url", :default => "", :null => false
|
|
|
|
|