Skip to content

Commit dcf0e27

Browse files
committed
fix: align SQL defaults with TypeScript types
- rss_feeds: change from string[] to {name, url}[] to match ContentConfig - rate_card_tiers: change from {name, price, impressions} to {name, description, price} to match SponsorConfig
1 parent 28aaf7a commit dcf0e27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supabase/migrations/003_config_tables.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ COMMENT ON TABLE remotion_config IS 'Remotion Lambda rendering: AWS region, func
9393
-- =========================================================================
9494
CREATE TABLE IF NOT EXISTS content_config (
9595
id integer PRIMARY KEY DEFAULT 1 CHECK (id = 1),
96-
rss_feeds jsonb NOT NULL DEFAULT '["https://hnrss.org/newest?points=100&count=20","https://dev.to/feed/tag/javascript","https://dev.to/feed/tag/webdev","https://css-tricks.com/feed/","https://blog.chromium.org/feeds/posts/default","https://web.dev/feed.xml","https://www.smashingmagazine.com/feed/","https://javascriptweekly.com/rss/"]'::jsonb,
96+
rss_feeds jsonb NOT NULL DEFAULT '[{"name":"HN Top","url":"https://hnrss.org/newest?points=100&count=20"},{"name":"Dev.to JavaScript","url":"https://dev.to/feed/tag/javascript"},{"name":"Dev.to WebDev","url":"https://dev.to/feed/tag/webdev"},{"name":"CSS-Tricks","url":"https://css-tricks.com/feed/"},{"name":"Chromium Blog","url":"https://blog.chromium.org/feeds/posts/default"},{"name":"web.dev","url":"https://web.dev/feed.xml"},{"name":"Smashing Magazine","url":"https://www.smashingmagazine.com/feed/"},{"name":"JavaScript Weekly","url":"https://javascriptweekly.com/rss/"}]'::jsonb,
9797
trend_sources_enabled jsonb NOT NULL DEFAULT '{"hn":true,"devto":true,"blogs":true,"youtube":true,"github":true}'::jsonb,
9898
system_instruction text NOT NULL DEFAULT 'You are a content strategist and scriptwriter for CodingCat.dev, a web development education channel run by Alex Patterson.
9999
@@ -141,7 +141,7 @@ COMMENT ON TABLE content_config IS 'Content discovery and generation: RSS feeds,
141141
CREATE TABLE IF NOT EXISTS sponsor_config (
142142
id integer PRIMARY KEY DEFAULT 1 CHECK (id = 1),
143143
cooldown_days integer NOT NULL DEFAULT 14,
144-
rate_card_tiers jsonb NOT NULL DEFAULT '[{"name":"starter","price":500,"impressions":"5k-10k"},{"name":"growth","price":1500,"impressions":"10k-50k"},{"name":"premium","price":3000,"impressions":"50k+"}]'::jsonb,
144+
rate_card_tiers jsonb NOT NULL DEFAULT '[{"name":"starter","description":"5k-10k impressions","price":500},{"name":"growth","description":"10k-50k impressions","price":1500},{"name":"premium","description":"50k+ impressions","price":3000}]'::jsonb,
145145
outreach_email_template text NOT NULL DEFAULT 'Hi {{companyName}},
146146
147147
I run CodingCat.dev, a web development education channel. We''d love to explore a sponsorship opportunity with you.

0 commit comments

Comments
 (0)