|
11 | 11 | #
|
12 | 12 | # It's strongly recommended that you check this file into your version control system.
|
13 | 13 |
|
14 |
| -ActiveRecord::Schema.define(version: 20160508031830) do |
| 14 | +ActiveRecord::Schema.define(version: 20160508034341) do |
15 | 15 |
|
16 | 16 | create_table "adpositions", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
17 | 17 | t.string "name"
|
|
41 | 41 | t.datetime "updated_at", null: false
|
42 | 42 | end
|
43 | 43 |
|
| 44 | + create_table "captain_repos", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| |
| 45 | + t.string "name" |
| 46 | + t.string "url" |
| 47 | + t.string "status" |
| 48 | + t.integer "practice_id" |
| 49 | + t.datetime "created_at", null: false |
| 50 | + t.datetime "updated_at", null: false |
| 51 | + end |
| 52 | + |
44 | 53 | create_table "captain_subjects", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
45 | 54 | t.string "name"
|
46 | 55 | t.string "desc"
|
|
75 | 84 | t.datetime "updated_at", null: false
|
76 | 85 | end
|
77 | 86 |
|
| 87 | + create_table "docs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| |
| 88 | + t.string "name" |
| 89 | + t.text "con", limit: 4294967295 |
| 90 | + t.text "markdown", limit: 4294967295 |
| 91 | + t.string "cover", limit: 55 |
| 92 | + t.integer "mem_id" |
| 93 | + t.datetime "created_at", null: false |
| 94 | + t.datetime "updated_at", null: false |
| 95 | + end |
| 96 | + |
| 97 | + create_table "docsubs", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t| |
| 98 | + t.string "name" |
| 99 | + t.integer "mem_id" |
| 100 | + t.text "con", limit: 65535 |
| 101 | + t.string "status", limit: 10, default: "UNREAD" |
| 102 | + t.datetime "created_at", null: false |
| 103 | + t.datetime "updated_at", null: false |
| 104 | + end |
| 105 | + |
78 | 106 | create_table "links", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
79 | 107 | t.string "name"
|
80 | 108 | t.string "logo"
|
|
131 | 159 | create_table "mems", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
132 | 160 | t.string "nc"
|
133 | 161 | t.string "email"
|
134 |
| - t.string "avatar" |
135 |
| - t.datetime "created_at", null: false |
136 |
| - t.datetime "updated_at", null: false |
| 162 | + t.string "avatar", limit: 100 |
| 163 | + t.datetime "created_at", null: false |
| 164 | + t.datetime "updated_at", null: false |
137 | 165 | t.string "pwd"
|
138 | 166 | end
|
139 | 167 |
|
| 168 | + add_index "mems", ["nc", "email"], name: "search", using: :btree |
| 169 | + |
140 | 170 | create_table "menutyps", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
141 | 171 | t.string "key"
|
142 | 172 | t.string "sdesc"
|
|
163 | 193 | create_table "readmes", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
164 | 194 | t.integer "mem_id"
|
165 | 195 | t.integer "repo_id"
|
166 |
| - t.text "about", limit: 65535 |
167 |
| - t.text "old", limit: 65535 |
168 |
| - t.string "sdesc" |
169 |
| - t.string "status", default: "UNREAD" |
170 |
| - t.datetime "created_at", null: false |
171 |
| - t.datetime "updated_at", null: false |
| 196 | + t.text "about", limit: 4294967295 |
| 197 | + t.text "old", limit: 4294967295 |
| 198 | + t.string "sdesc", limit: 200, default: "初始化文档" |
| 199 | + t.string "status", limit: 45, default: "UNREAD" |
| 200 | + t.datetime "created_at", null: false |
| 201 | + t.datetime "updated_at", null: false |
172 | 202 | end
|
173 | 203 |
|
174 | 204 | create_table "repo_resources", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
175 |
| - t.string "recsts", default: "1" |
| 205 | + t.string "recsts", limit: 2, default: "1" |
176 | 206 | t.string "title"
|
177 | 207 | t.string "url"
|
178 |
| - t.integer "repo_id" |
| 208 | + t.string "repo_alia" |
179 | 209 | t.integer "mem_id"
|
180 |
| - t.datetime "created_at", null: false |
181 |
| - t.datetime "updated_at", null: false |
| 210 | + t.datetime "created_at", null: false |
| 211 | + t.datetime "updated_at", null: false |
| 212 | + t.integer "repo_id" |
182 | 213 | end
|
183 | 214 |
|
184 | 215 | create_table "repo_trends", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
195 | 226 | t.string "full_name"
|
196 | 227 | t.string "alia"
|
197 | 228 | t.string "html_url"
|
198 |
| - t.string "description" |
| 229 | + t.string "description", limit: 1000 |
| 230 | + t.string "description_cn", limit: 1000 |
199 | 231 | t.string "homepage"
|
200 | 232 | t.integer "stargazers_count"
|
201 | 233 | t.integer "forks_count"
|
202 | 234 | t.integer "subscribers_count"
|
203 | 235 | t.datetime "pushed_at"
|
204 |
| - t.text "about", limit: 65535 |
205 |
| - t.text "about_zh", limit: 65535 |
| 236 | + t.text "about", limit: 4294967295 |
| 237 | + t.text "about_zh", limit: 4294967295 |
206 | 238 | t.string "typcd"
|
207 | 239 | t.string "rootyp"
|
208 |
| - t.string "owner" |
209 |
| - t.datetime "created_at", null: false |
210 |
| - t.datetime "updated_at", null: false |
211 |
| - t.string "outdated", limit: 1, default: "0" |
| 240 | + t.string "owner", limit: 100 |
| 241 | + t.datetime "created_at", null: false |
| 242 | + t.datetime "updated_at", null: false |
| 243 | + t.string "outdated", limit: 1, default: "0" |
212 | 244 | t.string "tag"
|
213 | 245 | t.string "cover"
|
214 |
| - t.integer "recommend", default: 0 |
215 |
| - t.integer "trend", default: 0 |
| 246 | + t.integer "recommend", default: 0 |
| 247 | + t.integer "trend", default: 0 |
216 | 248 | t.datetime "github_created_at"
|
217 |
| - t.integer "mark", default: 0 |
218 |
| - t.integer "issue_res", default: 0 |
| 249 | + t.integer "mark", default: 0 |
| 250 | + t.integer "issue_res", default: 0 |
219 | 251 | t.string "typcd_zh"
|
220 | 252 | t.string "rootyp_zh"
|
221 | 253 | t.integer "demo"
|
222 | 254 | t.integer "startup"
|
223 | 255 | end
|
224 | 256 |
|
| 257 | + add_index "repos", ["rootyp", "typcd", "html_url"], name: "search", using: :btree |
| 258 | + |
225 | 259 | create_table "sites", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
226 | 260 | t.string "typ"
|
227 | 261 | t.string "sdesc"
|
|
247 | 281 | t.string "html_url"
|
248 | 282 | t.string "rootyp"
|
249 | 283 | t.string "typcd"
|
250 |
| - t.string "status", default: "UNREAD" |
251 |
| - t.datetime "created_at", null: false |
252 |
| - t.datetime "updated_at", null: false |
| 284 | + t.string "status", limit: 45, default: "UNREAD" |
| 285 | + t.datetime "created_at", null: false |
| 286 | + t.datetime "updated_at", null: false |
253 | 287 | end
|
254 | 288 |
|
255 | 289 | create_table "topics", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
|
|
0 commit comments