Skip to content

Commit

Permalink
dassie: update db schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dunn authored and tamsin johnson committed Dec 14, 2021
1 parent 52bb3b1 commit 4b51ad9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .dassie/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 4b51ad9

Please sign in to comment.