|
10 | 10 | #
|
11 | 11 | # It's strongly recommended that you check this file into your version control system.
|
12 | 12 |
|
13 |
| -ActiveRecord::Schema[7.0].define(version: 2024_03_12_134402) do |
| 13 | +ActiveRecord::Schema[7.0].define(version: 2024_03_27_112035) do |
14 | 14 | # These are extensions that must be enabled in order to support this database
|
15 | 15 | enable_extension "plpgsql"
|
16 | 16 |
|
|
22 | 22 | t.datetime "created_at", null: false
|
23 | 23 | t.datetime "updated_at", null: false
|
24 | 24 | t.bigint "check_suite_id"
|
| 25 | + t.bigint "github_user_id" |
25 | 26 | t.index ["check_suite_id"], name: "index_audit_retries_on_check_suite_id"
|
| 27 | + t.index ["github_user_id"], name: "index_audit_retries_on_github_user_id" |
26 | 28 | end
|
27 | 29 |
|
28 | 30 | create_table "audit_retries_ci_jobs", id: false, force: :cascade do |t|
|
|
55 | 57 | t.boolean "re_run", default: false
|
56 | 58 | t.integer "retry", default: 0
|
57 | 59 | t.boolean "sync", default: false
|
| 60 | + t.bigint "github_user_id" |
| 61 | + t.index ["github_user_id"], name: "index_check_suites_on_github_user_id" |
58 | 62 | t.index ["pull_request_id"], name: "index_check_suites_on_pull_request_id"
|
59 | 63 | end
|
60 | 64 |
|
|
73 | 77 | t.index ["stage_id"], name: "index_ci_jobs_on_stage_id"
|
74 | 78 | end
|
75 | 79 |
|
| 80 | + create_table "github_users", force: :cascade do |t| |
| 81 | + t.string "github_login" |
| 82 | + t.string "github_username" |
| 83 | + t.string "github_email" |
| 84 | + t.integer "github_id" |
| 85 | + t.string "github_organization" |
| 86 | + t.string "github_type" |
| 87 | + t.string "organization_name" |
| 88 | + t.string "organization_url" |
| 89 | + t.datetime "created_at", null: false |
| 90 | + t.datetime "updated_at", null: false |
| 91 | + t.index ["github_id"], name: "index_github_users_on_github_id", unique: true |
| 92 | + end |
| 93 | + |
76 | 94 | create_table "plans", force: :cascade do |t|
|
77 | 95 | t.string "bamboo_ci_plan_name", null: false
|
78 | 96 | t.string "github_repo_name", default: "0", null: false
|
|
101 | 119 | t.string "plan"
|
102 | 120 | t.datetime "created_at", null: false
|
103 | 121 | t.datetime "updated_at", null: false
|
| 122 | + t.bigint "github_user_id" |
| 123 | + t.index ["github_user_id"], name: "index_pull_requests_on_github_user_id" |
104 | 124 | end
|
105 | 125 |
|
106 | 126 | create_table "stage_configurations", force: :cascade do |t|
|
|
138 | 158 | end
|
139 | 159 |
|
140 | 160 | add_foreign_key "audit_retries", "check_suites"
|
| 161 | + add_foreign_key "audit_retries", "github_users" |
| 162 | + add_foreign_key "check_suites", "github_users" |
141 | 163 | add_foreign_key "check_suites", "pull_requests"
|
142 | 164 | add_foreign_key "ci_jobs", "check_suites"
|
143 | 165 | add_foreign_key "ci_jobs", "stages"
|
144 | 166 | add_foreign_key "plans", "check_suites"
|
145 | 167 | add_foreign_key "pull_request_subscriptions", "pull_requests"
|
| 168 | + add_foreign_key "pull_requests", "github_users" |
146 | 169 | add_foreign_key "stages", "check_suites"
|
147 | 170 | add_foreign_key "stages", "stage_configurations"
|
148 | 171 | add_foreign_key "topotest_failures", "ci_jobs"
|
|
0 commit comments