From 4b51ad92f855e2fa7720805de7cf583465f4faf0 Mon Sep 17 00:00:00 2001 From: Alexandra Dunn Date: Fri, 10 Dec 2021 12:07:52 -0800 Subject: [PATCH] dassie: update db schema --- .dassie/db/schema.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.dassie/db/schema.rb b/.dassie/db/schema.rb index 1dbc09c739..a75a362efe 100644 --- a/.dassie/db/schema.rb +++ b/.dassie/db/schema.rb @@ -14,6 +14,7 @@ # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" + enable_extension "uuid-ossp" create_table "bookmarks", id: :serial, force: :cascade do |t| t.integer "user_id", null: false @@ -231,6 +232,18 @@ t.index ["namespace"], name: "index_minter_states_on_namespace", unique: true end + create_table "orm_resources", id: :uuid, default: -> { "uuid_generate_v4()" }, force: :cascade do |t| + t.jsonb "metadata", default: {}, null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.string "internal_resource" + t.integer "lock_version" + t.index ["internal_resource"], name: "index_orm_resources_on_internal_resource" + t.index ["metadata"], name: "index_orm_resources_on_metadata", using: :gin + t.index ["metadata"], name: "index_orm_resources_on_metadata_jsonb_path_ops", opclass: :jsonb_path_ops, using: :gin + t.index ["updated_at"], name: "index_orm_resources_on_updated_at" + end + create_table "permission_template_accesses", force: :cascade do |t| t.bigint "permission_template_id" t.string "agent_type"