add user encrypted configs

This commit is contained in:
DocuSeal
2023-09-25 01:57:10 +03:00
parent 9da7463657
commit 11a90d797a
10 changed files with 60 additions and 0 deletions
+11
View File
@@ -91,6 +91,16 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_17_213639) do
t.index ["account_id"], name: "index_encrypted_configs_on_account_id"
end
create_table "encrypted_user_configs", force: :cascade do |t|
t.bigint "user_id", null: false
t.string "key", null: false
t.text "value", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["user_id", "key"], name: "index_encrypted_user_configs_on_user_id_and_key", unique: true
t.index ["user_id"], name: "index_encrypted_user_configs_on_user_id"
end
create_table "submission_events", force: :cascade do |t|
t.bigint "submission_id", null: false
t.bigint "submitter_id"
@@ -217,6 +227,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_17_213639) do
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
add_foreign_key "document_generation_events", "submitters"
add_foreign_key "encrypted_configs", "accounts"
add_foreign_key "encrypted_user_configs", "users"
add_foreign_key "submission_events", "submissions"
add_foreign_key "submission_events", "submitters"
add_foreign_key "submissions", "templates"