|
2 | 2 | # of editing this file, please use the migrations feature of Active Record to
|
3 | 3 | # incrementally modify your database, and then regenerate this schema definition.
|
4 | 4 | #
|
5 |
| -# This file is the source Rails uses to define your schema when running `rails |
6 |
| -# db:schema:load`. When creating a new database, `rails db:schema:load` tends to |
| 5 | +# This file is the source Rails uses to define your schema when running `bin/rails |
| 6 | +# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to |
7 | 7 | # be faster and is potentially less error prone than running all of your
|
8 | 8 | # migrations from scratch. Old migrations may fail to apply correctly if those
|
9 | 9 | # migrations use external dependencies or application code.
|
10 | 10 | #
|
11 | 11 | # It's strongly recommended that you check this file into your version control system.
|
12 | 12 |
|
13 |
| -ActiveRecord::Schema.define(version: 2020_05_23_233225) do |
14 |
| - |
| 13 | +ActiveRecord::Schema[7.2].define(version: 2020_05_23_233225) do |
15 | 14 | create_table "flow_core_arc_guards", force: :cascade do |t|
|
16 | 15 | t.integer "workflow_id"
|
17 | 16 | t.integer "arc_id"
|
18 | 17 | t.text "configuration"
|
19 | 18 | t.string "type"
|
20 |
| - t.datetime "created_at", precision: 6, null: false |
21 |
| - t.datetime "updated_at", precision: 6, null: false |
| 19 | + t.datetime "created_at", null: false |
| 20 | + t.datetime "updated_at", null: false |
22 | 21 | t.integer "pipeline_id"
|
23 | 22 | t.integer "branch_id"
|
24 | 23 | t.index ["arc_id"], name: "index_flow_core_arc_guards_on_arc_id"
|
|
33 | 32 | t.integer "place_id", null: false
|
34 | 33 | t.integer "direction", default: 0, null: false
|
35 | 34 | t.boolean "fallback_arc", default: false, null: false
|
36 |
| - t.datetime "created_at", precision: 6, null: false |
37 |
| - t.datetime "updated_at", precision: 6, null: false |
| 35 | + t.datetime "created_at", null: false |
| 36 | + t.datetime "updated_at", null: false |
38 | 37 | t.index ["place_id"], name: "index_flow_core_arcs_on_place_id"
|
39 | 38 | t.index ["transition_id"], name: "index_flow_core_arcs_on_transition_id"
|
40 | 39 | t.index ["workflow_id"], name: "index_flow_core_arcs_on_workflow_id"
|
|
45 | 44 | t.integer "step_id", null: false
|
46 | 45 | t.string "name"
|
47 | 46 | t.boolean "fallback_branch", default: false, null: false
|
48 |
| - t.datetime "created_at", precision: 6, null: false |
49 |
| - t.datetime "updated_at", precision: 6, null: false |
| 47 | + t.datetime "created_at", null: false |
| 48 | + t.datetime "updated_at", null: false |
50 | 49 | t.index ["pipeline_id"], name: "index_flow_core_branches_on_pipeline_id"
|
51 | 50 | t.index ["step_id"], name: "index_flow_core_branches_on_step_id"
|
52 | 51 | end
|
|
55 | 54 | t.integer "workflow_id", null: false
|
56 | 55 | t.string "tag"
|
57 | 56 | t.integer "stage", default: 0
|
58 |
| - t.datetime "activated_at" |
59 |
| - t.datetime "finished_at" |
60 |
| - t.datetime "canceled_at" |
61 |
| - t.datetime "terminated_at" |
| 57 | + t.datetime "activated_at", precision: nil |
| 58 | + t.datetime "finished_at", precision: nil |
| 59 | + t.datetime "canceled_at", precision: nil |
| 60 | + t.datetime "terminated_at", precision: nil |
62 | 61 | t.string "terminate_reason"
|
63 | 62 | t.text "payload"
|
64 | 63 | t.string "type"
|
65 |
| - t.datetime "created_at", precision: 6, null: false |
66 |
| - t.datetime "updated_at", precision: 6, null: false |
| 64 | + t.datetime "created_at", null: false |
| 65 | + t.datetime "updated_at", null: false |
67 | 66 | t.string "creator_type"
|
68 | 67 | t.integer "creator_id"
|
69 | 68 | t.integer "form_id"
|
|
76 | 75 | create_table "flow_core_pipelines", force: :cascade do |t|
|
77 | 76 | t.string "name", null: false
|
78 | 77 | t.string "type"
|
79 |
| - t.datetime "created_at", precision: 6, null: false |
80 |
| - t.datetime "updated_at", precision: 6, null: false |
| 78 | + t.datetime "created_at", null: false |
| 79 | + t.datetime "updated_at", null: false |
81 | 80 | t.integer "form_id"
|
82 | 81 | t.index ["form_id"], name: "index_flow_core_pipelines_on_form_id"
|
83 | 82 | end
|
|
87 | 86 | t.string "name"
|
88 | 87 | t.string "tag"
|
89 | 88 | t.string "type"
|
90 |
| - t.datetime "created_at", precision: 6, null: false |
91 |
| - t.datetime "updated_at", precision: 6, null: false |
| 89 | + t.datetime "created_at", null: false |
| 90 | + t.datetime "updated_at", null: false |
92 | 91 | t.index ["workflow_id"], name: "index_flow_core_places_on_workflow_id"
|
93 | 92 | end
|
94 | 93 |
|
|
101 | 100 | t.string "type"
|
102 | 101 | t.boolean "verified", default: false, null: false
|
103 | 102 | t.integer "redirect_to_step_id"
|
104 |
| - t.datetime "created_at", precision: 6, null: false |
105 |
| - t.datetime "updated_at", precision: 6, null: false |
| 103 | + t.datetime "created_at", null: false |
| 104 | + t.datetime "updated_at", null: false |
106 | 105 | t.index ["ancestry"], name: "index_flow_core_steps_on_ancestry"
|
107 | 106 | t.index ["branch_id"], name: "index_flow_core_steps_on_branch_id"
|
108 | 107 | t.index ["pipeline_id"], name: "index_flow_core_steps_on_pipeline_id"
|
|
116 | 115 | t.string "tag"
|
117 | 116 | t.integer "created_by_token_id"
|
118 | 117 | t.integer "stage", default: 0
|
119 |
| - t.datetime "enabled_at" |
120 |
| - t.datetime "finished_at" |
121 |
| - t.datetime "terminated_at" |
| 118 | + t.datetime "enabled_at", precision: nil |
| 119 | + t.datetime "finished_at", precision: nil |
| 120 | + t.datetime "terminated_at", precision: nil |
122 | 121 | t.string "terminate_reason"
|
123 |
| - t.datetime "errored_at" |
124 |
| - t.datetime "rescued_at" |
| 122 | + t.datetime "errored_at", precision: nil |
| 123 | + t.datetime "rescued_at", precision: nil |
125 | 124 | t.string "error_reason"
|
126 |
| - t.datetime "suspended_at" |
127 |
| - t.datetime "resumed_at" |
| 125 | + t.datetime "suspended_at", precision: nil |
| 126 | + t.datetime "resumed_at", precision: nil |
128 | 127 | t.boolean "output_token_created", default: false, null: false
|
129 | 128 | t.string "executable_type"
|
130 | 129 | t.integer "executable_id"
|
131 | 130 | t.text "payload"
|
132 |
| - t.datetime "created_at", precision: 6, null: false |
133 |
| - t.datetime "updated_at", precision: 6, null: false |
| 131 | + t.datetime "created_at", null: false |
| 132 | + t.datetime "updated_at", null: false |
134 | 133 | t.index ["created_by_token_id"], name: "index_flow_core_tasks_on_created_by_token_id"
|
135 | 134 | t.index ["executable_type", "executable_id"], name: "index_flow_core_tasks_on_executable_type_and_executable_id"
|
136 | 135 | t.index ["instance_id"], name: "index_flow_core_tasks_on_instance_id"
|
|
144 | 143 | t.integer "instance_id", null: false
|
145 | 144 | t.integer "place_id", null: false
|
146 | 145 | t.integer "stage", default: 0
|
147 |
| - t.datetime "locked_at" |
148 |
| - t.datetime "consumed_at" |
149 |
| - t.datetime "terminated_at" |
| 146 | + t.datetime "locked_at", precision: nil |
| 147 | + t.datetime "consumed_at", precision: nil |
| 148 | + t.datetime "terminated_at", precision: nil |
150 | 149 | t.integer "created_by_task_id"
|
151 | 150 | t.integer "consumed_by_task_id"
|
152 | 151 | t.boolean "task_created", default: false, null: false
|
153 |
| - t.datetime "created_at", precision: 6, null: false |
154 |
| - t.datetime "updated_at", precision: 6, null: false |
| 152 | + t.datetime "created_at", null: false |
| 153 | + t.datetime "updated_at", null: false |
155 | 154 | t.index ["consumed_by_task_id"], name: "index_flow_core_tokens_on_consumed_by_task_id"
|
156 | 155 | t.index ["created_by_task_id"], name: "index_flow_core_tokens_on_created_by_task_id"
|
157 | 156 | t.index ["instance_id"], name: "index_flow_core_tokens_on_instance_id"
|
|
164 | 163 | t.integer "transition_id"
|
165 | 164 | t.text "configuration"
|
166 | 165 | t.string "type"
|
167 |
| - t.datetime "created_at", precision: 6, null: false |
168 |
| - t.datetime "updated_at", precision: 6, null: false |
| 166 | + t.datetime "created_at", null: false |
| 167 | + t.datetime "updated_at", null: false |
169 | 168 | t.integer "pipeline_id"
|
170 | 169 | t.integer "step_id"
|
171 | 170 | t.integer "attached_form_id"
|
|
184 | 183 | t.string "tag"
|
185 | 184 | t.integer "output_token_create_strategy", default: 0, null: false
|
186 | 185 | t.integer "auto_finish_strategy", default: 0, null: false
|
187 |
| - t.datetime "created_at", precision: 6, null: false |
188 |
| - t.datetime "updated_at", precision: 6, null: false |
| 186 | + t.datetime "created_at", null: false |
| 187 | + t.datetime "updated_at", null: false |
189 | 188 | t.integer "generated_by_step_id"
|
190 | 189 | t.index ["generated_by_step_id"], name: "index_flow_core_transitions_on_generated_by_step_id"
|
191 | 190 | t.index ["workflow_id"], name: "index_flow_core_transitions_on_workflow_id"
|
|
195 | 194 | t.string "name", null: false
|
196 | 195 | t.string "tag"
|
197 | 196 | t.integer "verified", default: 0, null: false
|
198 |
| - t.datetime "verified_at" |
| 197 | + t.datetime "verified_at", precision: nil |
199 | 198 | t.string "type"
|
200 |
| - t.datetime "created_at", precision: 6, null: false |
201 |
| - t.datetime "updated_at", precision: 6, null: false |
| 199 | + t.datetime "created_at", null: false |
| 200 | + t.datetime "updated_at", null: false |
202 | 201 | t.integer "generated_by_pipeline_id"
|
203 | 202 | t.integer "form_id"
|
204 | 203 | t.index ["form_id"], name: "index_flow_core_workflows_on_form_id"
|
|
209 | 208 | t.string "assignable_type", null: false
|
210 | 209 | t.integer "assignable_id", null: false
|
211 | 210 | t.integer "trigger_id", null: false
|
212 |
| - t.datetime "created_at", precision: 6, null: false |
213 |
| - t.datetime "updated_at", precision: 6, null: false |
| 211 | + t.datetime "created_at", null: false |
| 212 | + t.datetime "updated_at", null: false |
214 | 213 | t.index ["assignable_type", "assignable_id"], name: "index_flow_kit_assignee_candidates_on_assignable"
|
215 | 214 | t.index ["trigger_id"], name: "index_flow_kit_assignee_candidates_on_trigger_id"
|
216 | 215 | end
|
|
223 | 222 | t.string "assignable_type"
|
224 | 223 | t.integer "assignable_id"
|
225 | 224 | t.string "status", null: false
|
226 |
| - t.datetime "assigned_at" |
227 |
| - t.datetime "form_filled_at" |
228 |
| - t.datetime "finished_at" |
229 |
| - t.datetime "created_at", precision: 6, null: false |
230 |
| - t.datetime "updated_at", precision: 6, null: false |
| 225 | + t.datetime "assigned_at", precision: nil |
| 226 | + t.datetime "form_filled_at", precision: nil |
| 227 | + t.datetime "finished_at", precision: nil |
| 228 | + t.datetime "created_at", null: false |
| 229 | + t.datetime "updated_at", null: false |
231 | 230 | t.index ["assignable_type", "assignable_id"], name: "index_form_kit_human_tasks_assignable"
|
232 | 231 | t.index ["attached_form_id"], name: "index_flow_kit_human_tasks_on_attached_form_id"
|
233 | 232 | t.index ["form_override_id"], name: "index_flow_kit_human_tasks_on_form_override_id"
|
|
240 | 239 | t.integer "field_id", null: false
|
241 | 240 | t.text "label", null: false
|
242 | 241 | t.integer "position", default: 0, null: false
|
243 |
| - t.datetime "created_at", precision: 6, null: false |
244 |
| - t.datetime "updated_at", precision: 6, null: false |
| 242 | + t.datetime "created_at", null: false |
| 243 | + t.datetime "updated_at", null: false |
245 | 244 | t.index ["field_id"], name: "index_form_kit_choices_on_field_id"
|
246 | 245 | t.index ["form_id"], name: "index_form_kit_choices_on_form_id"
|
247 | 246 | end
|
|
250 | 249 | t.integer "form_override_id", null: false
|
251 | 250 | t.integer "field_id", null: false
|
252 | 251 | t.integer "accessibility", null: false
|
253 |
| - t.datetime "created_at", precision: 6, null: false |
254 |
| - t.datetime "updated_at", precision: 6, null: false |
| 252 | + t.datetime "created_at", null: false |
| 253 | + t.datetime "updated_at", null: false |
255 | 254 | t.index ["field_id"], name: "index_form_kit_field_overrides_on_field_id"
|
256 | 255 | t.index ["form_override_id", "field_id"], name: "index_form_kit_field_overrides_on_form_field_id", unique: true
|
257 | 256 | t.index ["form_override_id"], name: "index_form_kit_field_overrides_on_form_override_id"
|
|
268 | 267 | t.text "default_value"
|
269 | 268 | t.integer "position", default: 0, null: false
|
270 | 269 | t.string "type", null: false
|
271 |
| - t.datetime "created_at", precision: 6, null: false |
272 |
| - t.datetime "updated_at", precision: 6, null: false |
| 270 | + t.datetime "created_at", null: false |
| 271 | + t.datetime "updated_at", null: false |
273 | 272 | t.index ["form_id", "key"], name: "index_form_kit_fields_on_form_id_and_key", unique: true
|
274 | 273 | t.index ["form_id"], name: "index_form_kit_fields_on_form_id"
|
275 | 274 | end
|
276 | 275 |
|
277 | 276 | create_table "form_kit_form_overrides", force: :cascade do |t|
|
278 | 277 | t.integer "form_id", null: false
|
279 | 278 | t.string "name"
|
280 |
| - t.datetime "created_at", precision: 6, null: false |
281 |
| - t.datetime "updated_at", precision: 6, null: false |
| 279 | + t.integer "position", default: 0, null: false |
| 280 | + t.datetime "created_at", null: false |
| 281 | + t.datetime "updated_at", null: false |
282 | 282 | t.index ["form_id"], name: "index_form_kit_form_overrides_on_form_id"
|
283 | 283 | end
|
284 | 284 |
|
|
288 | 288 | t.string "name"
|
289 | 289 | t.string "key", null: false
|
290 | 290 | t.string "type", null: false
|
291 |
| - t.datetime "created_at", precision: 6, null: false |
292 |
| - t.datetime "updated_at", precision: 6, null: false |
| 291 | + t.datetime "created_at", null: false |
| 292 | + t.datetime "updated_at", null: false |
293 | 293 | t.index ["attachable_type", "attachable_id"], name: "index_form_kit_forms_on_attachable_type_and_attachable_id"
|
294 | 294 | t.index ["key"], name: "index_form_kit_forms_on_key", unique: true
|
295 | 295 | end
|
296 | 296 |
|
297 | 297 | create_table "notifications", force: :cascade do |t|
|
298 | 298 | t.integer "user_id", null: false
|
299 | 299 | t.integer "task_id", null: false
|
300 |
| - t.datetime "created_at", precision: 6, null: false |
301 |
| - t.datetime "updated_at", precision: 6, null: false |
| 300 | + t.datetime "created_at", null: false |
| 301 | + t.datetime "updated_at", null: false |
302 | 302 | t.index ["task_id"], name: "index_notifications_on_task_id"
|
303 | 303 | t.index ["user_id"], name: "index_notifications_on_user_id"
|
304 | 304 | end
|
305 | 305 |
|
306 | 306 | create_table "users", force: :cascade do |t|
|
307 | 307 | t.string "name"
|
308 |
| - t.datetime "created_at", precision: 6, null: false |
309 |
| - t.datetime "updated_at", precision: 6, null: false |
| 308 | + t.datetime "created_at", null: false |
| 309 | + t.datetime "updated_at", null: false |
310 | 310 | end
|
311 | 311 |
|
312 | 312 | add_foreign_key "flow_core_arc_guards", "flow_core_arcs", column: "arc_id"
|
|
0 commit comments