|
|
@ -550,11 +550,13 @@ ActiveRecord::Schema.define(:version => 20160624032138) do
|
|
|
|
t.integer "excellent_option", :default => 0
|
|
|
|
t.integer "excellent_option", :default => 0
|
|
|
|
t.integer "is_copy", :default => 0
|
|
|
|
t.integer "is_copy", :default => 0
|
|
|
|
t.integer "visits", :default => 0
|
|
|
|
t.integer "visits", :default => 0
|
|
|
|
|
|
|
|
t.integer "syllabus_id"
|
|
|
|
t.string "invite_code"
|
|
|
|
t.string "invite_code"
|
|
|
|
t.string "qrcode"
|
|
|
|
t.string "qrcode"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
add_index "courses", ["invite_code"], :name => "index_courses_on_invite_code", :unique => true
|
|
|
|
add_index "courses", ["invite_code"], :name => "index_courses_on_invite_code", :unique => true
|
|
|
|
|
|
|
|
add_index "courses", ["syllabus_id"], :name => "index_courses_on_syllabus_id"
|
|
|
|
|
|
|
|
|
|
|
|
create_table "custom_fields", :force => true do |t|
|
|
|
|
create_table "custom_fields", :force => true do |t|
|
|
|
|
t.string "type", :limit => 30, :default => "", :null => false
|
|
|
|
t.string "type", :limit => 30, :default => "", :null => false
|
|
|
@ -1123,6 +1125,23 @@ ActiveRecord::Schema.define(:version => 20160624032138) do
|
|
|
|
t.integer "viewed_count", :default => 0
|
|
|
|
t.integer "viewed_count", :default => 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create_table "mess", :id => false, :force => true do |t|
|
|
|
|
|
|
|
|
t.string "课程名"
|
|
|
|
|
|
|
|
t.integer "课程ID", :default => 0, :null => false
|
|
|
|
|
|
|
|
t.string "教师姓", :default => "", :null => false
|
|
|
|
|
|
|
|
t.string "教师名", :limit => 30, :default => "", :null => false
|
|
|
|
|
|
|
|
t.string "主贴名", :default => "", :null => false
|
|
|
|
|
|
|
|
t.integer "主贴或回帖ID", :default => 0, :null => false
|
|
|
|
|
|
|
|
t.integer "回帖对应主贴ID"
|
|
|
|
|
|
|
|
t.integer "帖子点赞数"
|
|
|
|
|
|
|
|
t.integer "主贴回复数", :default => 0, :null => false
|
|
|
|
|
|
|
|
t.text "主贴或回帖内容"
|
|
|
|
|
|
|
|
t.datetime "发帖时间", :null => false
|
|
|
|
|
|
|
|
t.integer "发帖或回帖用户ID", :default => 0, :null => false
|
|
|
|
|
|
|
|
t.string "发帖或回帖用户姓", :default => "", :null => false
|
|
|
|
|
|
|
|
t.string "发帖或回帖用户名", :limit => 30, :default => "", :null => false
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
create_table "message_alls", :force => true do |t|
|
|
|
|
create_table "message_alls", :force => true do |t|
|
|
|
|
t.integer "user_id"
|
|
|
|
t.integer "user_id"
|
|
|
|
t.integer "message_id"
|
|
|
|
t.integer "message_id"
|
|
|
@ -1830,6 +1849,16 @@ ActiveRecord::Schema.define(:version => 20160624032138) do
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create_table "syllabuses", :force => true do |t|
|
|
|
|
|
|
|
|
t.string "title"
|
|
|
|
|
|
|
|
t.text "description"
|
|
|
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_index "syllabuses", ["user_id"], :name => "index_syllabuses_on_user_id"
|
|
|
|
|
|
|
|
|
|
|
|
create_table "system_messages", :force => true do |t|
|
|
|
|
create_table "system_messages", :force => true do |t|
|
|
|
|
t.integer "user_id"
|
|
|
|
t.integer "user_id"
|
|
|
|
t.string "content"
|
|
|
|
t.string "content"
|
|
|
|