diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-31 01:52:08 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:16 -0500 |
commit | a036e8561344866b072c2874906c9c9533cd27ea (patch) | |
tree | 4bfced891c9ece25baf5f2f644a4176d82b8b611 /db/schema.rb | |
parent | a0ae00eeb5b89ccd23868e530608fbbc07349a7e (diff) |
[Feature] Add general-purpose account metadata to backend
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 4fcdd7e2f..06d012600 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2020_07_28_173757) do +ActiveRecord::Schema.define(version: 2020_07_31_135033) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -66,6 +66,12 @@ ActiveRecord::Schema.define(version: 2020_07_28_173757) do t.index ["account_id", "provider", "provider_username"], name: "index_account_proofs_on_account_and_provider_and_username", unique: true end + create_table "account_metadata", force: :cascade do |t| + t.bigint "account_id", null: false + t.jsonb "fields", default: {}, null: false + t.index ["account_id"], name: "index_account_metadata_on_account_id" + end + create_table "account_migrations", force: :cascade do |t| t.bigint "account_id" t.string "acct", default: "", null: false @@ -976,6 +982,7 @@ ActiveRecord::Schema.define(version: 2020_07_28_173757) do add_foreign_key "account_domain_blocks", "accounts", name: "fk_206c6029bd", on_delete: :cascade add_foreign_key "account_domain_permissions", "accounts", on_delete: :cascade add_foreign_key "account_identity_proofs", "accounts", on_delete: :cascade + add_foreign_key "account_metadata", "accounts", on_delete: :cascade add_foreign_key "account_migrations", "accounts", column: "target_account_id", on_delete: :nullify add_foreign_key "account_migrations", "accounts", on_delete: :cascade add_foreign_key "account_moderation_notes", "accounts" |