Skip to content

Commit

Permalink
add system resources data schema (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
bailinhe authored Oct 13, 2023
1 parent 0944b94 commit c8c0419
Show file tree
Hide file tree
Showing 4 changed files with 1,394 additions and 3 deletions.
18 changes: 18 additions & 0 deletions db/migrations/00035_sys_extensions_resources.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE system_extension_resources (
id UUID PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(),
resource jsonb NOT NULL,

created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
deleted_at TIMESTAMPTZ NULL,

extension_resource_definition_id UUID NOT NULL REFERENCES extension_resource_definitions(id) ON DELETE CASCADE ON UPDATE CASCADE
);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
DROP TABLE system_extension_resources;
-- +goose StatementEnd
2 changes: 2 additions & 0 deletions internal/models/boil_table_names.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

198 changes: 195 additions & 3 deletions internal/models/extension_resource_definitions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c8c0419

Please sign in to comment.