Skip to content

Commit d5fac13

Browse files
authored
[PORTALDB] Enhancing to include SVGs for sharing across applications (#450)
## Summary Adds SVG storage to the DB so all apps referencing Portal DB can have the same assets. ### Primary Changes: - Adds a column to `services` that stores the SVG code for each service. - Improves documentation of the DB ## Type of change Select one or more from the following: - [x] New feature, functionality or library - [ ] Bug fix - [ ] Code health or cleanup - [x] Documentation - [ ] Other (specify)
1 parent d216ae5 commit d5fac13

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

portal-db/init/001_schema.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
-- ============================================================================
88

99
-- Designates the API Types that we support. We can expand this should new interfaces be introduced.
10+
-- Also used as a mapping for the types of QoS that should be attached to a service.
1011
CREATE TYPE endpoint_type AS ENUM ('cometBFT', 'cosmos', 'REST', 'JSON-RPC', 'WSS', 'gRPC');
1112

1213
-- Creates intervals that plans can be evaluated on, also enables users to set their plan limits
@@ -269,6 +270,7 @@ CREATE TABLE services (
269270
active BOOLEAN DEFAULT FALSE,
270271
quality_fallback_enabled BOOLEAN DEFAULT FALSE,
271272
hard_fallback_enabled BOOLEAN DEFAULT FALSE,
273+
svg_icon TEXT,
272274
deleted_at TIMESTAMPTZ,
273275
created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
274276
updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
@@ -432,4 +434,4 @@ CREATE INDEX idx_portal_accounts_stripe ON portal_accounts(stripe_subscription_i
432434
WHERE stripe_subscription_id IS NOT NULL;
433435
CREATE INDEX idx_services_active ON services(service_id) WHERE active = TRUE AND deleted_at IS NULL;
434436
CREATE INDEX idx_portal_applications_active ON portal_applications(portal_account_id)
435-
WHERE deleted_at IS NULL;
437+
WHERE deleted_at IS NULL;

0 commit comments

Comments
 (0)