schema.rb 50.5 KB
Newer Older
Andrew8xx8's avatar
Andrew8xx8 committed
1
2
3
4
5
6
7
8
9
10
11
# encoding: UTF-8
# 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).
#
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
12
# It's strongly recommended that you check this file into your version control system.
Andrew8xx8's avatar
Andrew8xx8 committed
13

14
ActiveRecord::Schema.define(version: 20160824103857) do
15

Kamil Trzcinski's avatar
Kamil Trzcinski committed
16
17
  # These are extensions that must be enabled in order to support this database
  enable_extension "plpgsql"
18
  enable_extension "pg_trgm"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
19

Valery Sizov's avatar
Valery Sizov committed
20
  create_table "abuse_reports", force: :cascade do |t|
21
22
23
24
25
26
27
    t.integer  "reporter_id"
    t.integer  "user_id"
    t.text     "message"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

28
29
30
31
32
33
34
35
36
  create_table "appearances", force: :cascade do |t|
    t.string   "title"
    t.text     "description"
    t.string   "header_logo"
    t.string   "logo"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

Valery Sizov's avatar
Valery Sizov committed
37
  create_table "application_settings", force: :cascade do |t|
38
39
40
41
42
43
44
    t.integer  "default_projects_limit"
    t.boolean  "signup_enabled"
    t.boolean  "signin_enabled"
    t.boolean  "gravatar_enabled"
    t.text     "sign_in_text"
    t.datetime "created_at"
    t.datetime "updated_at"
45
    t.string   "home_page_url"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
46
    t.integer  "default_branch_protection",             default: 2
47
    t.text     "restricted_visibility_levels"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
48
49
    t.boolean  "version_check_enabled",                 default: true
    t.integer  "max_attachment_size",                   default: 10,          null: false
Vinnie Okada's avatar
Vinnie Okada committed
50
51
    t.integer  "default_project_visibility"
    t.integer  "default_snippet_visibility"
52
    t.text     "domain_whitelist"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
53
    t.boolean  "user_oauth_applications",               default: true
54
    t.string   "after_sign_out_path"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
55
    t.integer  "session_expire_delay",                  default: 10080,       null: false
56
    t.text     "import_sources"
Kamil Trzcinski's avatar
WIP    
Kamil Trzcinski committed
57
    t.text     "help_page_text"
58
    t.string   "admin_notification_email"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
59
60
    t.boolean  "shared_runners_enabled",                default: true,        null: false
    t.integer  "max_artifacts_size",                    default: 100,         null: false
61
    t.string   "runners_registration_token"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
62
63
64
65
66
67
68
69
    t.boolean  "require_two_factor_authentication",     default: false
    t.integer  "two_factor_grace_period",               default: 48
    t.boolean  "metrics_enabled",                       default: false
    t.string   "metrics_host",                          default: "localhost"
    t.integer  "metrics_pool_size",                     default: 16
    t.integer  "metrics_timeout",                       default: 10
    t.integer  "metrics_method_call_threshold",         default: 10
    t.boolean  "recaptcha_enabled",                     default: false
70
71
    t.string   "recaptcha_site_key"
    t.string   "recaptcha_private_key"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
72
    t.integer  "metrics_port",                          default: 8089
73
74
    t.boolean  "akismet_enabled",                       default: false
    t.string   "akismet_api_key"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
75
76
    t.integer  "metrics_sample_interval",               default: 15
    t.boolean  "sentry_enabled",                        default: false
Jeroen Nijhof's avatar
Jeroen Nijhof committed
77
    t.string   "sentry_dsn"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
78
    t.boolean  "email_author_in_body",                  default: false
Douwe Maan's avatar
Douwe Maan committed
79
    t.integer  "default_group_visibility"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
80
    t.boolean  "repository_checks_enabled",             default: false
81
    t.text     "shared_runners_text"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
82
    t.integer  "metrics_packet_size",                   default: 1
83
    t.text     "disabled_oauth_sign_in_sources"
84
    t.string   "health_check_access_token"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
85
    t.boolean  "send_user_confirmation_email",          default: false
86
    t.integer  "container_registry_token_expire_delay", default: 5
87
    t.text     "after_sign_up_text"
88
    t.boolean  "user_default_external",                 default: false,       null: false
89
    t.string   "repository_storage",                    default: "default"
90
    t.string   "enabled_git_access_protocol"
91
92
    t.boolean  "domain_blacklist_enabled",              default: false
    t.text     "domain_blacklist"
93
94
    t.boolean  "koding_enabled"
    t.string   "koding_url"
95
96
  end

Valery Sizov's avatar
Valery Sizov committed
97
  create_table "audit_events", force: :cascade do |t|
98
99
100
101
    t.integer  "author_id",   null: false
    t.string   "type",        null: false
    t.integer  "entity_id",   null: false
    t.string   "entity_type", null: false
102
103
104
105
106
107
108
    t.text     "details"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "audit_events", ["entity_id", "entity_type"], name: "index_audit_events_on_entity_id_and_entity_type", using: :btree

109
110
111
112
113
114
115
116
117
  create_table "award_emoji", force: :cascade do |t|
    t.string   "name"
    t.integer  "user_id"
    t.integer  "awardable_id"
    t.string   "awardable_type"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

Z.J. van de Weg's avatar
Z.J. van de Weg committed
118
  add_index "award_emoji", ["awardable_type", "awardable_id"], name: "index_award_emoji_on_awardable_type_and_awardable_id", using: :btree
119
  add_index "award_emoji", ["user_id", "name"], name: "index_award_emoji_on_user_id_and_name", using: :btree
120
121
  add_index "award_emoji", ["user_id"], name: "index_award_emoji_on_user_id", using: :btree

Douglas Barbosa Alexandre's avatar
Douglas Barbosa Alexandre committed
122
123
124
125
126
127
128
129
  create_table "boards", force: :cascade do |t|
    t.integer  "project_id", null: false
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
  end

  add_index "boards", ["project_id"], name: "index_boards_on_project_id", using: :btree

Valery Sizov's avatar
Valery Sizov committed
130
  create_table "broadcast_messages", force: :cascade do |t|
131
    t.text     "message",    null: false
132
133
    t.datetime "starts_at"
    t.datetime "ends_at"
134
135
    t.datetime "created_at"
    t.datetime "updated_at"
136
137
    t.string   "color"
    t.string   "font"
138
  end
139

Valery Sizov's avatar
Valery Sizov committed
140
  create_table "ci_application_settings", force: :cascade do |t|
Douwe Maan's avatar
Douwe Maan committed
141
142
143
144
145
146
    t.boolean  "all_broken_builds"
    t.boolean  "add_pusher"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

Valery Sizov's avatar
Valery Sizov committed
147
  create_table "ci_builds", force: :cascade do |t|
Douwe Maan's avatar
Douwe Maan committed
148
    t.integer  "project_id"
149
    t.string   "status"
Douwe Maan's avatar
Douwe Maan committed
150
    t.datetime "finished_at"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
151
    t.text     "trace"
Douwe Maan's avatar
Douwe Maan committed
152
153
154
155
    t.datetime "created_at"
    t.datetime "updated_at"
    t.datetime "started_at"
    t.integer  "runner_id"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
156
    t.float    "coverage"
Douwe Maan's avatar
Douwe Maan committed
157
158
159
    t.integer  "commit_id"
    t.text     "commands"
    t.integer  "job_id"
160
    t.string   "name"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
161
    t.boolean  "deploy",              default: false
Douwe Maan's avatar
Douwe Maan committed
162
    t.text     "options"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
163
    t.boolean  "allow_failure",       default: false, null: false
164
    t.string   "stage"
Douwe Maan's avatar
Douwe Maan committed
165
    t.integer  "trigger_request_id"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
166
167
    t.integer  "stage_idx"
    t.boolean  "tag"
168
    t.string   "ref"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
169
    t.integer  "user_id"
170
171
172
    t.string   "type"
    t.string   "target_url"
    t.string   "description"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
173
    t.text     "artifacts_file"
174
    t.integer  "gl_project_id"
175
    t.text     "artifacts_metadata"
176
177
    t.integer  "erased_by_id"
    t.datetime "erased_at"
178
    t.datetime "artifacts_expire_at"
179
    t.string   "environment"
180
    t.integer  "artifacts_size"
181
182
    t.string   "when"
    t.text     "yaml_variables"
183
    t.datetime "queued_at"
Douwe Maan's avatar
Douwe Maan committed
184
185
  end

Kamil Trzcinski's avatar
Kamil Trzcinski committed
186
  add_index "ci_builds", ["commit_id", "stage_idx", "created_at"], name: "index_ci_builds_on_commit_id_and_stage_idx_and_created_at", using: :btree
187
  add_index "ci_builds", ["commit_id", "status", "type"], name: "index_ci_builds_on_commit_id_and_status_and_type", using: :btree
Kamil Trzcinski's avatar
Kamil Trzcinski committed
188
189
  add_index "ci_builds", ["commit_id", "type", "name", "ref"], name: "index_ci_builds_on_commit_id_and_type_and_name_and_ref", using: :btree
  add_index "ci_builds", ["commit_id", "type", "ref"], name: "index_ci_builds_on_commit_id_and_type_and_ref", using: :btree
Douwe Maan's avatar
Douwe Maan committed
190
  add_index "ci_builds", ["commit_id"], name: "index_ci_builds_on_commit_id", using: :btree
191
  add_index "ci_builds", ["gl_project_id"], name: "index_ci_builds_on_gl_project_id", using: :btree
Douwe Maan's avatar
Douwe Maan committed
192
193
  add_index "ci_builds", ["project_id"], name: "index_ci_builds_on_project_id", using: :btree
  add_index "ci_builds", ["runner_id"], name: "index_ci_builds_on_runner_id", using: :btree
194
  add_index "ci_builds", ["status"], name: "index_ci_builds_on_status", using: :btree
Douwe Maan's avatar
Douwe Maan committed
195

Valery Sizov's avatar
Valery Sizov committed
196
  create_table "ci_commits", force: :cascade do |t|
Douwe Maan's avatar
Douwe Maan committed
197
    t.integer  "project_id"
198
199
200
    t.string   "ref"
    t.string   "sha"
    t.string   "before_sha"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
201
    t.text     "push_data"
Douwe Maan's avatar
Douwe Maan committed
202
203
    t.datetime "created_at"
    t.datetime "updated_at"
204
    t.boolean  "tag",           default: false
Douwe Maan's avatar
Douwe Maan committed
205
206
    t.text     "yaml_errors"
    t.datetime "committed_at"
Kamil Trzcinski's avatar
WIP    
Kamil Trzcinski committed
207
    t.integer  "gl_project_id"
208
209
210
211
    t.string   "status"
    t.datetime "started_at"
    t.datetime "finished_at"
    t.integer  "duration"
212
    t.integer  "user_id"
Douwe Maan's avatar
Douwe Maan committed
213
214
  end

215
216
  add_index "ci_commits", ["gl_project_id", "sha"], name: "index_ci_commits_on_gl_project_id_and_sha", using: :btree
  add_index "ci_commits", ["gl_project_id", "status"], name: "index_ci_commits_on_gl_project_id_and_status", using: :btree
217
  add_index "ci_commits", ["gl_project_id"], name: "index_ci_commits_on_gl_project_id", using: :btree
218
  add_index "ci_commits", ["status"], name: "index_ci_commits_on_status", using: :btree
219
  add_index "ci_commits", ["user_id"], name: "index_ci_commits_on_user_id", using: :btree
Douwe Maan's avatar
Douwe Maan committed
220

Valery Sizov's avatar
Valery Sizov committed
221
  create_table "ci_events", force: :cascade do |t|
Douwe Maan's avatar
Douwe Maan committed
222
223
224
225
226
227
228
229
    t.integer  "project_id"
    t.integer  "user_id"
    t.integer  "is_admin"
    t.text     "description"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

Valery Sizov's avatar
Valery Sizov committed
230
  create_table "ci_jobs", force: :cascade do |t|
231
    t.integer  "project_id",                          null: false
Douwe Maan's avatar
Douwe Maan committed
232
    t.text     "commands"
233
    t.boolean  "active",         default: true,       null: false
Douwe Maan's avatar
Douwe Maan committed
234
235
    t.datetime "created_at"
    t.datetime "updated_at"
236
237
238
239
240
    t.string   "name"
    t.boolean  "build_branches", default: true,       null: false
    t.boolean  "build_tags",     default: false,      null: false
    t.string   "job_type",       default: "parallel"
    t.string   "refs"
Douwe Maan's avatar
Douwe Maan committed
241
242
243
    t.datetime "deleted_at"
  end

Valery Sizov's avatar
Valery Sizov committed
244
  create_table "ci_projects", force: :cascade do |t|
245
246
    t.string   "name"
    t.integer  "timeout",                  default: 3600,  null: false
Douwe Maan's avatar
Douwe Maan committed
247
248
    t.datetime "created_at"
    t.datetime "updated_at"
249
250
251
252
    t.string   "token"
    t.string   "default_ref"
    t.string   "path"
    t.boolean  "always_build",             default: false, null: false
Douwe Maan's avatar
Douwe Maan committed
253
    t.integer  "polling_interval"
254
255
    t.boolean  "public",                   default: false, null: false
    t.string   "ssh_url_to_repo"
Douwe Maan's avatar
Douwe Maan committed
256
    t.integer  "gitlab_id"
257
258
259
260
261
262
263
    t.boolean  "allow_git_fetch",          default: true,  null: false
    t.string   "email_recipients",         default: "",    null: false
    t.boolean  "email_add_pusher",         default: true,  null: false
    t.boolean  "email_only_broken_builds", default: true,  null: false
    t.string   "skip_refs"
    t.string   "coverage_regex"
    t.boolean  "shared_runners_enabled",   default: false
Douwe Maan's avatar
Douwe Maan committed
264
265
266
    t.text     "generated_yaml_config"
  end

Valery Sizov's avatar
Valery Sizov committed
267
  create_table "ci_runner_projects", force: :cascade do |t|
268
269
    t.integer  "runner_id",     null: false
    t.integer  "project_id"
Douwe Maan's avatar
Douwe Maan committed
270
271
    t.datetime "created_at"
    t.datetime "updated_at"
272
    t.integer  "gl_project_id"
Douwe Maan's avatar
Douwe Maan committed
273
274
  end

275
  add_index "ci_runner_projects", ["gl_project_id"], name: "index_ci_runner_projects_on_gl_project_id", using: :btree
Douwe Maan's avatar
Douwe Maan committed
276
277
  add_index "ci_runner_projects", ["runner_id"], name: "index_ci_runner_projects_on_runner_id", using: :btree

Valery Sizov's avatar
Valery Sizov committed
278
  create_table "ci_runners", force: :cascade do |t|
279
    t.string   "token"
Douwe Maan's avatar
Douwe Maan committed
280
281
    t.datetime "created_at"
    t.datetime "updated_at"
282
    t.string   "description"
Douwe Maan's avatar
Douwe Maan committed
283
    t.datetime "contacted_at"
284
285
286
287
288
289
290
    t.boolean  "active",       default: true,  null: false
    t.boolean  "is_shared",    default: false
    t.string   "name"
    t.string   "version"
    t.string   "revision"
    t.string   "platform"
    t.string   "architecture"
291
    t.boolean  "run_untagged", default: true,  null: false
292
    t.boolean  "locked",       default: false, null: false
Douwe Maan's avatar
Douwe Maan committed
293
294
  end

295
  add_index "ci_runners", ["locked"], name: "index_ci_runners_on_locked", using: :btree
James Lopez's avatar
James Lopez committed
296
  add_index "ci_runners", ["token"], name: "index_ci_runners_on_token", using: :btree
297

Valery Sizov's avatar
Valery Sizov committed
298
  create_table "ci_sessions", force: :cascade do |t|
299
    t.string   "session_id", null: false
Douwe Maan's avatar
Douwe Maan committed
300
301
302
303
304
    t.text     "data"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

Valery Sizov's avatar
Valery Sizov committed
305
  create_table "ci_taggings", force: :cascade do |t|
306
307
    t.integer  "tag_id"
    t.integer  "taggable_id"
308
    t.string   "taggable_type"
309
    t.integer  "tagger_id"
310
    t.string   "tagger_type"
311
312
313
314
315
316
    t.string   "context",       limit: 128
    t.datetime "created_at"
  end

  add_index "ci_taggings", ["taggable_id", "taggable_type", "context"], name: "index_ci_taggings_on_taggable_id_and_taggable_type_and_context", using: :btree

Valery Sizov's avatar
Valery Sizov committed
317
  create_table "ci_tags", force: :cascade do |t|
318
319
    t.string  "name"
    t.integer "taggings_count", default: 0
320
321
  end

Valery Sizov's avatar
Valery Sizov committed
322
  create_table "ci_trigger_requests", force: :cascade do |t|
Douwe Maan's avatar
Douwe Maan committed
323
324
325
326
327
328
329
    t.integer  "trigger_id", null: false
    t.text     "variables"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "commit_id"
  end

Valery Sizov's avatar
Valery Sizov committed
330
  create_table "ci_triggers", force: :cascade do |t|
331
    t.string   "token"
332
    t.integer  "project_id"
Douwe Maan's avatar
Douwe Maan committed
333
334
335
    t.datetime "deleted_at"
    t.datetime "created_at"
    t.datetime "updated_at"
336
    t.integer  "gl_project_id"
Douwe Maan's avatar
Douwe Maan committed
337
338
  end

339
  add_index "ci_triggers", ["gl_project_id"], name: "index_ci_triggers_on_gl_project_id", using: :btree
Douwe Maan's avatar
Douwe Maan committed
340

Valery Sizov's avatar
Valery Sizov committed
341
  create_table "ci_variables", force: :cascade do |t|
342
    t.integer "project_id"
343
    t.string  "key"
Douwe Maan's avatar
Douwe Maan committed
344
345
    t.text    "value"
    t.text    "encrypted_value"
346
347
    t.string  "encrypted_value_salt"
    t.string  "encrypted_value_iv"
348
    t.integer "gl_project_id"
Douwe Maan's avatar
Douwe Maan committed
349
350
  end

351
  add_index "ci_variables", ["gl_project_id"], name: "index_ci_variables_on_gl_project_id", using: :btree
Douwe Maan's avatar
Douwe Maan committed
352

Valery Sizov's avatar
Valery Sizov committed
353
  create_table "deploy_keys_projects", force: :cascade do |t|
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
354
355
    t.integer  "deploy_key_id", null: false
    t.integer  "project_id",    null: false
356
357
    t.datetime "created_at"
    t.datetime "updated_at"
358
  end
359

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
360
  add_index "deploy_keys_projects", ["project_id"], name: "index_deploy_keys_projects_on_project_id", using: :btree
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
361

362
  create_table "deployments", force: :cascade do |t|
Kamil Trzcinski's avatar
Kamil Trzcinski committed
363
    t.integer  "iid",             null: false
364
365
    t.integer  "project_id",      null: false
    t.integer  "environment_id",  null: false
Kamil Trzcinski's avatar
Kamil Trzcinski committed
366
367
368
    t.string   "ref",             null: false
    t.boolean  "tag",             null: false
    t.string   "sha",             null: false
369
    t.integer  "user_id"
370
371
    t.integer  "deployable_id"
    t.string   "deployable_type"
372
373
374
375
376
377
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "deployments", ["project_id", "environment_id", "iid"], name: "index_deployments_on_project_id_and_environment_id_and_iid", using: :btree
  add_index "deployments", ["project_id", "environment_id"], name: "index_deployments_on_project_id_and_environment_id", using: :btree
378
  add_index "deployments", ["project_id", "iid"], name: "index_deployments_on_project_id_and_iid", unique: true, using: :btree
379
380
  add_index "deployments", ["project_id"], name: "index_deployments_on_project_id", using: :btree

Valery Sizov's avatar
Valery Sizov committed
381
  create_table "emails", force: :cascade do |t|
382
383
    t.integer  "user_id",    null: false
    t.string   "email",      null: false
384
385
386
387
388
389
390
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "emails", ["email"], name: "index_emails_on_email", unique: true, using: :btree
  add_index "emails", ["user_id"], name: "index_emails_on_user_id", using: :btree

391
  create_table "environments", force: :cascade do |t|
392
    t.integer  "project_id"
393
    t.string   "name",         null: false
394
395
    t.datetime "created_at"
    t.datetime "updated_at"
396
    t.string   "external_url"
397
398
399
400
  end

  add_index "environments", ["project_id", "name"], name: "index_environments_on_project_id_and_name", using: :btree

Valery Sizov's avatar
Valery Sizov committed
401
  create_table "events", force: :cascade do |t|
402
    t.string   "target_type"
Andrew8xx8's avatar
Andrew8xx8 committed
403
    t.integer  "target_id"
404
    t.string   "title"
Andrew8xx8's avatar
Andrew8xx8 committed
405
406
    t.text     "data"
    t.integer  "project_id"
407
408
    t.datetime "created_at"
    t.datetime "updated_at"
Andrew8xx8's avatar
Andrew8xx8 committed
409
410
411
412
    t.integer  "action"
    t.integer  "author_id"
  end

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
413
414
415
416
417
418
419
  add_index "events", ["action"], name: "index_events_on_action", using: :btree
  add_index "events", ["author_id"], name: "index_events_on_author_id", using: :btree
  add_index "events", ["created_at"], name: "index_events_on_created_at", using: :btree
  add_index "events", ["project_id"], name: "index_events_on_project_id", using: :btree
  add_index "events", ["target_id"], name: "index_events_on_target_id", using: :btree
  add_index "events", ["target_type"], name: "index_events_on_target_type", using: :btree

Valery Sizov's avatar
Valery Sizov committed
420
  create_table "forked_project_links", force: :cascade do |t|
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
421
422
    t.integer  "forked_to_project_id",   null: false
    t.integer  "forked_from_project_id", null: false
423
424
    t.datetime "created_at"
    t.datetime "updated_at"
425
426
  end

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
427
  add_index "forked_project_links", ["forked_to_project_id"], name: "index_forked_project_links_on_forked_to_project_id", unique: true, using: :btree
428

Valery Sizov's avatar
Valery Sizov committed
429
  create_table "identities", force: :cascade do |t|
430
431
    t.string   "extern_uid"
    t.string   "provider"
432
433
434
    t.integer  "user_id"
    t.datetime "created_at"
    t.datetime "updated_at"
435
436
437
438
  end

  add_index "identities", ["user_id"], name: "index_identities_on_user_id", using: :btree

Valery Sizov's avatar
Valery Sizov committed
439
  create_table "issues", force: :cascade do |t|
440
    t.string   "title"
Andrew8xx8's avatar
Andrew8xx8 committed
441
442
443
    t.integer  "assignee_id"
    t.integer  "author_id"
    t.integer  "project_id"
444
445
    t.datetime "created_at"
    t.datetime "updated_at"
446
447
    t.integer  "position",      default: 0
    t.string   "branch_name"
Andrew8xx8's avatar
Andrew8xx8 committed
448
449
    t.text     "description"
    t.integer  "milestone_id"
450
    t.string   "state"
451
    t.integer  "iid"
452
    t.integer  "updated_by_id"
James Lopez's avatar
James Lopez committed
453
    t.boolean  "confidential",  default: false
454
    t.datetime "deleted_at"
455
    t.date     "due_date"
456
    t.integer  "moved_to_id"
457
    t.integer  "lock_version"
Andrew8xx8's avatar
Andrew8xx8 committed
458
459
  end

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
460
461
  add_index "issues", ["assignee_id"], name: "index_issues_on_assignee_id", using: :btree
  add_index "issues", ["author_id"], name: "index_issues_on_author_id", using: :btree
462
  add_index "issues", ["confidential"], name: "index_issues_on_confidential", using: :btree
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
463
  add_index "issues", ["created_at"], name: "index_issues_on_created_at", using: :btree
Zeger-Jan van de Weg's avatar
Zeger-Jan van de Weg committed
464
  add_index "issues", ["deleted_at"], name: "index_issues_on_deleted_at", using: :btree
465
  add_index "issues", ["description"], name: "index_issues_on_description_trigram", using: :gin, opclasses: {"description"=>"gin_trgm_ops"}
466
  add_index "issues", ["due_date"], name: "index_issues_on_due_date", using: :btree
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
467
  add_index "issues", ["milestone_id"], name: "index_issues_on_milestone_id", using: :btree
468
  add_index "issues", ["project_id", "iid"], name: "index_issues_on_project_id_and_iid", unique: true, using: :btree
469
  add_index "issues", ["state"], name: "index_issues_on_state", using: :btree
470
  add_index "issues", ["title"], name: "index_issues_on_title_trigram", using: :gin, opclasses: {"title"=>"gin_trgm_ops"}
Andrew8xx8's avatar
Andrew8xx8 committed
471

Valery Sizov's avatar
Valery Sizov committed
472
  create_table "keys", force: :cascade do |t|
Andrew8xx8's avatar
Andrew8xx8 committed
473
    t.integer  "user_id"
474
475
    t.datetime "created_at"
    t.datetime "updated_at"
Andrew8xx8's avatar
Andrew8xx8 committed
476
    t.text     "key"
477
478
479
480
    t.string   "title"
    t.string   "type"
    t.string   "fingerprint"
    t.boolean  "public",      default: false, null: false
Andrew8xx8's avatar
Andrew8xx8 committed
481
482
  end

483
  add_index "keys", ["fingerprint"], name: "index_keys_on_fingerprint", unique: true, using: :btree
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
484
  add_index "keys", ["user_id"], name: "index_keys_on_user_id", using: :btree
Andrew8xx8's avatar
Andrew8xx8 committed
485

Valery Sizov's avatar
Valery Sizov committed
486
  create_table "label_links", force: :cascade do |t|
487
488
    t.integer  "label_id"
    t.integer  "target_id"
489
    t.string   "target_type"
490
491
492
493
    t.datetime "created_at"
    t.datetime "updated_at"
  end

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
494
495
496
  add_index "label_links", ["label_id"], name: "index_label_links_on_label_id", using: :btree
  add_index "label_links", ["target_id", "target_type"], name: "index_label_links_on_target_id_and_target_type", using: :btree

Valery Sizov's avatar
Valery Sizov committed
497
  create_table "labels", force: :cascade do |t|
498
499
    t.string   "title"
    t.string   "color"
500
501
502
    t.integer  "project_id"
    t.datetime "created_at"
    t.datetime "updated_at"
Tap's avatar
Tap committed
503
504
    t.boolean  "template",    default: false
    t.string   "description"
Thijs Wouters's avatar
Thijs Wouters committed
505
    t.integer  "priority"
506
507
  end

Thijs Wouters's avatar
Thijs Wouters committed
508
  add_index "labels", ["priority"], name: "index_labels_on_priority", using: :btree
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
509
510
  add_index "labels", ["project_id"], name: "index_labels_on_project_id", using: :btree

Valery Sizov's avatar
Valery Sizov committed
511
  create_table "lfs_objects", force: :cascade do |t|
512
513
    t.string   "oid",                  null: false
    t.integer  "size",       limit: 8, null: false
Marin Jankovski's avatar
Marin Jankovski committed
514
515
    t.datetime "created_at"
    t.datetime "updated_at"
516
    t.string   "file"
Marin Jankovski's avatar
Marin Jankovski committed
517
518
  end

519
  add_index "lfs_objects", ["oid"], name: "index_lfs_objects_on_oid", unique: true, using: :btree
Marin Jankovski's avatar
Marin Jankovski committed
520

Valery Sizov's avatar
Valery Sizov committed
521
  create_table "lfs_objects_projects", force: :cascade do |t|
Marin Jankovski's avatar
Marin Jankovski committed
522
523
524
525
526
527
528
529
    t.integer  "lfs_object_id", null: false
    t.integer  "project_id",    null: false
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "lfs_objects_projects", ["project_id"], name: "index_lfs_objects_projects_on_project_id", using: :btree

Douglas Barbosa Alexandre's avatar
Douglas Barbosa Alexandre committed
530
531
532
  create_table "lists", force: :cascade do |t|
    t.integer  "board_id",               null: false
    t.integer  "label_id"
533
534
    t.integer  "list_type",  default: 1, null: false
    t.integer  "position"
Douglas Barbosa Alexandre's avatar
Douglas Barbosa Alexandre committed
535
536
537
538
    t.datetime "created_at",             null: false
    t.datetime "updated_at",             null: false
  end

539
  add_index "lists", ["board_id", "label_id"], name: "index_lists_on_board_id_and_label_id", unique: true, using: :btree
Douglas Barbosa Alexandre's avatar
Douglas Barbosa Alexandre committed
540
541
542
  add_index "lists", ["board_id"], name: "index_lists_on_board_id", using: :btree
  add_index "lists", ["label_id"], name: "index_lists_on_label_id", using: :btree

Valery Sizov's avatar
Valery Sizov committed
543
  create_table "members", force: :cascade do |t|
544
545
546
    t.integer  "access_level",       null: false
    t.integer  "source_id",          null: false
    t.string   "source_type",        null: false
Douwe Maan's avatar
Douwe Maan committed
547
    t.integer  "user_id"
548
549
    t.integer  "notification_level", null: false
    t.string   "type"
550
551
    t.datetime "created_at"
    t.datetime "updated_at"
Douwe Maan's avatar
Douwe Maan committed
552
    t.integer  "created_by_id"
553
554
    t.string   "invite_email"
    t.string   "invite_token"
Douwe Maan's avatar
Douwe Maan committed
555
    t.datetime "invite_accepted_at"
Rémy Coutable's avatar
Rémy Coutable committed
556
    t.datetime "requested_at"
557
    t.date     "expires_at"
558
559
  end

560
  add_index "members", ["access_level"], name: "index_members_on_access_level", using: :btree
Douwe Maan's avatar
Douwe Maan committed
561
  add_index "members", ["invite_token"], name: "index_members_on_invite_token", unique: true, using: :btree
562
  add_index "members", ["requested_at"], name: "index_members_on_requested_at", using: :btree
563
564
565
  add_index "members", ["source_id", "source_type"], name: "index_members_on_source_id_and_source_type", using: :btree
  add_index "members", ["user_id"], name: "index_members_on_user_id", using: :btree

Valery Sizov's avatar
Valery Sizov committed
566
  create_table "merge_request_diffs", force: :cascade do |t|
567
    t.string   "state"
Kamil Trzcinski's avatar
Kamil Trzcinski committed
568
569
    t.text     "st_commits"
    t.text     "st_diffs"
570
    t.integer  "merge_request_id", null: false
571
572
    t.datetime "created_at"
    t.datetime "updated_at"
573
    t.string   "base_commit_sha"
574
    t.string   "real_size"
Douwe Maan's avatar
Douwe Maan committed
575
576
    t.string   "head_commit_sha"
    t.string   "start_commit_sha"
577
578
  end

579
  add_index "merge_request_diffs", ["merge_request_id"], name: "index_merge_request_diffs_on_merge_request_id", using: :btree
580

Valery Sizov's avatar
Valery Sizov committed
581
  create_table "merge_requests", force: :cascade do |t|
tiagonbotelho's avatar
tiagonbotelho committed
582
583
584
    t.string   "target_branch",                                null: false
    t.string   "source_branch",                                null: false
    t.integer  "source_project_id",                            null: false
Andrew8xx8's avatar
Andrew8xx8 committed
585
586
    t.integer  "author_id"
    t.integer  "assignee_id"
587
    t.string   "title"
588
589
    t.datetime "created_at"
    t.datetime "updated_at"
Andrew8xx8's avatar
Andrew8xx8 committed
590
    t.integer  "milestone_id"
591
592
    t.string   "state"
    t.string   "merge_status"
tiagonbotelho's avatar
tiagonbotelho committed
593
    t.integer  "target_project_id",                            null: false
594
    t.integer  "iid"
595
    t.text     "description"
tiagonbotelho's avatar
tiagonbotelho committed
596
    t.integer  "position",                     default: 0
597
    t.datetime "locked_at"
598
    t.integer  "updated_by_id"
599
    t.text     "merge_error"
600
    t.text     "merge_params"
tiagonbotelho's avatar
tiagonbotelho committed
601
    t.boolean  "merge_when_build_succeeds",    default: false, null: false
Zeger-Jan van de Weg's avatar
Zeger-Jan van de Weg committed
602
    t.integer  "merge_user_id"
603
    t.string   "merge_commit_sha"
Zeger-Jan van de Weg's avatar
Zeger-Jan van de Weg committed
604
    t.datetime "deleted_at"
605
    t.string   "in_progress_merge_commit_sha"
606
    t.integer  "lock_version"
Andrew8xx8's avatar
Andrew8xx8 committed
607
  end
tiagonbotelho's avatar
tiagonbotelho committed
608

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
609
610
611
  add_index "merge_requests", ["assignee_id"], name: "index_merge_requests_on_assignee_id", using: :btree
  add_index "merge_requests", ["author_id"], name: "index_merge_requests_on_author_id", using: :btree
  add_index "merge_requests", ["created_at"], name: "index_merge_requests_on_created_at", using: :btree
Zeger-Jan van de Weg's avatar
Zeger-Jan van de Weg committed
612
  add_index "merge_requests", ["deleted_at"], name: "index_merge_requests_on_deleted_at", using: :btree
613
  add_index "merge_requests", ["description"], name: "index_merge_requests_on_description_trigram", using: :gin, opclasses: {"description"=>"gin_trgm_ops"}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
614
615
  add_index "merge_requests", ["milestone_id"], name: "index_merge_requests_on_milestone_id", using: :btree
  add_index "merge_requests", ["source_branch"], name: "index_merge_requests_on_source_branch", using: :btree
616
  add_index "merge_requests", ["source_project_id"], name: "index_merge_requests_on_source_project_id", using: :btree
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
617
  add_index "merge_requests", ["target_branch"], name: "index_merge_requests_on_target_branch", using: :btree
618
  add_index "merge_requests", ["target_project_id", "iid"], name: "index_merge_requests_on_target_project_id_and_iid", unique: true, using: :btree
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
619
  add_index "merge_requests", ["title"], name: "index_merge_requests_on_title", using: :btree
620
  add_index "merge_requests", ["title"], name: "index_merge_requests_on_title_trigram", using: :gin, opclasses: {"title"=>"gin_trgm_ops"}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
621

Valery Sizov's avatar
Valery Sizov committed
622
  create_table "milestones", force: :cascade do |t|
623
624
    t.string   "title",       null: false
    t.integer  "project_id",  null: false
Andrew8xx8's avatar
Andrew8xx8 committed
625
626
    t.text     "description"
    t.date     "due_date"
627
628
    t.datetime "created_at"
    t.datetime "updated_at"
629
    t.string   "state"
630
    t.integer  "iid"
Andrew8xx8's avatar
Andrew8xx8 committed
631
632
  end

633
  add_index "milestones", ["description"], name: "index_milestones_on_description_trigram", using: :gin, opclasses: {"description"=>"gin_trgm_ops"}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
634
  add_index "milestones", ["due_date"], name: "index_milestones_on_due_date", using: :btree
635
  add_index "milestones", ["project_id", "iid"], name: "index_milestones_on_project_id_and_iid", unique: true, using: :btree
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
636
  add_index "milestones", ["project_id"], name: "index_milestones_on_project_id", using: :btree
637
  add_index "milestones", ["title"], name: "index_milestones_on_title", using: :btree
638
  add_index "milestones", ["title"], name: "index_milestones_on_title_trigram", using: :gin, opclasses: {"title"=>"gin_trgm_ops"}
Andrew8xx8's avatar
Andrew8xx8 committed
639

Valery Sizov's avatar
Valery Sizov committed
640
  create_table "namespaces", force: :cascade do |t|
641
642
    t.string   "name",                                   null: false
    t.string   "path",                                   null: false
643
    t.integer  "owner_id"
644
645
    t.datetime "created_at"
    t.datetime "updated_at"
646
    t.string   "type"
647
    t.string   "description",            default: "",    null: false
648
    t.string   "avatar"
649
650
651
    t.boolean  "share_with_group_lock",  default: false
    t.integer  "visibility_level",       default: 20,    null: false
    t.boolean  "request_access_enabled", default: true,  null: false
652
    t.datetime "deleted_at"
Andrew8xx8's avatar
Andrew8xx8 committed
653
654
  end

655
  add_index "namespaces", ["created_at"], name: "index_namespaces_on_created_at", using: :btree
656
  add_index "namespaces", ["deleted_at"], name: "index_namespaces_on_deleted_at", using: :btree
657
  add_index "namespaces", ["name"], name: "index_namespaces_on_name", unique: true, using: :btree
658
  add_index "namespaces", ["name"], name: "index_namespaces_on_name_trigram", using: :gin, opclasses: {"name"=>"gin_trgm_ops"}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
659
  add_index "namespaces", ["owner_id"], name: "index_namespaces_on_owner_id", using: :btree
Valery Sizov's avatar
Valery Sizov committed
660
  add_index "namespaces", ["path"], name: "index_namespaces_on_path", unique: true, using: :btree
661
  add_index "namespaces", ["path"], name: "index_namespaces_on_path_trigram", using: :gin, opclasses: {"path"=>"gin_trgm_ops"}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
662
  add_index "namespaces", ["type"], name: "index_namespaces_on_type", using: :btree
Andrew8xx8's avatar
Andrew8xx8 committed
663

Valery Sizov's avatar
Valery Sizov committed
664
  create_table "notes", force: :cascade do |t|
Andrew8xx8's avatar
Andrew8xx8 committed
665
    t.text     "note"
666
    t.string   "noteable_type"
Andrew8xx8's avatar
Andrew8xx8 committed
667
    t.integer  "author_id"
668
669
    t.datetime "created_at"
    t.datetime "updated_at"
Andrew8xx8's avatar
Andrew8xx8 committed
670
    t.integer  "project_id"
671
672
673
    t.string   "attachment"
    t.string   "line_code"
    t.string   "commit_id"
Andrew8xx8's avatar
Andrew8xx8 committed
674
    t.integer  "noteable_id"
675
    t.boolean  "system",                 default: false, null: false
Kamil Trzcinski's avatar
Kamil Trzcinski committed
676
    t.text     "st_diff"
677
    t.integer  "updated_by_id"
678
    t.string   "type"
Douwe Maan's avatar
Douwe Maan committed
679
680
    t.text     "position"
    t.text     "original_position"
681
682
    t.datetime "resolved_at"
    t.integer  "resolved_by_id"
683
684
    t.string   "discussion_id"
    t.string   "original_discussion_id"
Andrew8xx8's avatar
Andrew8xx8 committed
685
686
  end

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
687
688
689
  add_index "notes", ["author_id"], name: "index_notes_on_author_id", using: :btree
  add_index "notes", ["commit_id"], name: "index_notes_on_commit_id", using: :btree
  add_index "notes", ["created_at"], name: "index_notes_on_created_at", using: :btree
690
  add_index "notes", ["discussion_id"], name: "index_notes_on_discussion_id", using: :btree
691
  add_index "notes", ["line_code"], name: "index_notes_on_line_code", using: :btree
692
  add_index "notes", ["note"], name: "index_notes_on_note_trigram", using: :gin, opclasses: {"note"=>"gin_trgm_ops"}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
693
694
695
696
  add_index "notes", ["noteable_id", "noteable_type"], name: "index_notes_on_noteable_id_and_noteable_type", using: :btree
  add_index "notes", ["noteable_type"], name: "index_notes_on_noteable_type", using: :btree
  add_index "notes", ["project_id", "noteable_type"], name: "index_notes_on_project_id_and_noteable_type", using: :btree
  add_index "notes", ["project_id"], name: "index_notes_on_project_id", using: :btree
697
  add_index "notes", ["updated_at"], name: "index_notes_on_updated_at", using: :btree
Andrew8xx8's avatar
Andrew8xx8 committed
698

699
  create_table "notification_settings", force: :cascade do |t|
700
    t.integer  "user_id",                 null: false
701
702
    t.integer  "source_id"
    t.string   "source_type"
703
704
705
    t.integer  "level",       default: 0, null: false
    t.datetime "created_at",              null: false
    t.datetime "updated_at",              null: false
706
    t.text     "events"
707
708
  end

709
  add_index "notification_settings", ["source_id", "source_type"], name: "index_notification_settings_on_source_id_and_source_type", using: :btree
710
  add_index "notification_settings", ["user_id", "source_id", "source_type"], name: "index_notifications_on_user_id_and_source_id_and_source_type", unique: true, using: :btree
711
712
  add_index "notification_settings", ["user_id"], name: "index_notification_settings_on_user_id", using: :btree

Valery Sizov's avatar
Valery Sizov committed
713
  create_table "oauth_access_grants", force: :cascade do |t|
714
715
716
717
718
719
    t.integer  "resource_owner_id", null: false
    t.integer  "application_id",    null: false
    t.string   "token",             null: false
    t.integer  "expires_in",        null: false
    t.text     "redirect_uri",      null: false
    t.datetime "created_at",        null: false
Valery Sizov's avatar
Valery Sizov committed
720
    t.datetime "revoked_at"
721
    t.string   "scopes"
Valery Sizov's avatar
Valery Sizov committed
722
723
724
725
  end

  add_index "oauth_access_grants", ["token"], name: "index_oauth_access_grants_on_token", unique: true, using: :btree

Valery Sizov's avatar
Valery Sizov committed
726
  create_table "oauth_access_tokens", force: :cascade do |t|
Valery Sizov's avatar
Valery Sizov committed
727
728
    t.integer  "resource_owner_id"
    t.integer  "application_id"
729
730
    t.string   "token",             null: false
    t.string   "refresh_token"
Valery Sizov's avatar
Valery Sizov committed
731
732
    t.integer  "expires_in"
    t.datetime "revoked_at"
733
734
    t.datetime "created_at",        null: false
    t.string   "scopes"
Valery Sizov's avatar
Valery Sizov committed
735
736
737
738
739
740
  end

  add_index "oauth_access_tokens", ["refresh_token"], name: "index_oauth_access_tokens_on_refresh_token", unique: true, using: :btree
  add_index "oauth_access_tokens", ["resource_owner_id"], name: "index_oauth_access_tokens_on_resource_owner_id", using: :btree
  add_index "oauth_access_tokens", ["token"], name: "index_oauth_access_tokens_on_token", unique: true, using: :btree

Valery Sizov's avatar
Valery Sizov committed
741
  create_table "oauth_applications", force: :cascade do |t|
742
743
744
745
746
    t.string   "name",                      null: false
    t.string   "uid",                       null: false
    t.string   "secret",                    null: false
    t.text     "redirect_uri",              null: false
    t.string   "scopes",       default: "", null: false
Valery Sizov's avatar
Valery Sizov committed
747
748
749
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "owner_id"
750
    t.string   "owner_type"
Valery Sizov's avatar
Valery Sizov committed
751
752
753
754
755
  end

  add_index "oauth_applications", ["owner_id", "owner_type"], name: "index_oauth_applications_on_owner_id_and_owner_type", using: :btree
  add_index "oauth_applications", ["uid"], name: "index_oauth_applications_on_uid", unique: true, using: :btree

756
757
758
759
  create_table "personal_access_tokens", force: :cascade do |t|
    t.integer  "user_id",                    null: false
    t.string   "token",                      null: false
    t.string   "name",                       null: false
760
761
    t.boolean  "revoked",    default: false
    t.datetime "expires_at"
762
763
    t.datetime "created_at",                 null: false
    t.datetime "updated_at",                 null: false
764
765
766
767
768
  end

  add_index "personal_access_tokens", ["token"], name: "index_personal_access_tokens_on_token", unique: true, using: :btree
  add_index "personal_access_tokens", ["user_id"], name: "index_personal_access_tokens_on_user_id", using: :btree

769
770
771
772
773
774
  create_table "project_group_links", force: :cascade do |t|
    t.integer  "project_id",                null: false
    t.integer  "group_id",                  null: false
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "group_access", default: 30, null: false
775
    t.date     "expires_at"
776
777
  end

Valery Sizov's avatar
Valery Sizov committed
778
  create_table "project_import_data", force: :cascade do |t|
779
780
    t.integer "project_id"
    t.text    "data"
781
    t.text    "encrypted_credentials"
782
783
    t.string  "encrypted_credentials_iv"
    t.string  "encrypted_credentials_salt"
784
785
  end

Valery Sizov's avatar
Valery Sizov committed
786
  create_table "projects", force: :cascade do |t|
787
788
    t.string   "name"
    t.string   "path"
Andrew8xx8's avatar
Andrew8xx8 committed
789
    t.text     "description"
790
791
    t.datetime "created_at"
    t.datetime "updated_at"
Andrew8xx8's avatar
Andrew8xx8 committed
792
    t.integer  "creator_id"
793
794
795
    t.boolean  "issues_enabled",                     default: true,      null: false
    t.boolean  "merge_requests_enabled",             default: true,      null: false
    t.boolean  "wiki_enabled",                       default: true,      null: false
Andrew8xx8's avatar
Andrew8xx8 committed
796
    t.integer  "namespace_id"
797
    t.boolean  "snippets_enabled",                   default: true,      null: false
798
    t.datetime "last_activity_at"
799
    t.string   "import_url"
800
801
    t.integer  "visibility_level",                   default: 0,         null: false
    t.boolean  "archived",                           default: false,     null: false
802
803
    t.string   "avatar"
    t.string   "import_status"
804
    t.float    "repository_size",                    default: 0.0
805
    t.integer  "star_count",                         default: 0,         null: false