Files
owly-news/backend-rust/migrations/008_insert_default_sharing_templates.up.sql

40 lines
902 B
SQL

-- Insert default sharing templates
INSERT INTO share_templates (name, format, template_content, is_default)
VALUES ('Default Text', 'text', '📰 {title}
{summary}
🏷️ Tags: {tags}
🌍 Location: {geographic_tags}
🔗 Source: {url}
📅 Published: {published_at}
Shared via Owly News Summariser', 1),
('Markdown', 'markdown', '# {title}
{summary}
**Tags:** {tags}
**Location:** {geographic_tags}
**Source:** [{url}]({url})
**Published:** {published_at}
---
*Shared via Owly News Summariser*', 1),
('Simple Text', 'text', '{title}
{summary}
Source: {url}', 0),
('HTML Email', 'html', '<h2>{title}</h2>
<p>{summary}</p>
<p><strong>Tags:</strong> {tags}<br>
<strong>Location:</strong> {geographic_tags}<br>
<strong>Source:</strong> <a href="{url}">{url}</a><br>
<strong>Published:</strong> {published_at}</p>
<hr>
<small>Shared via Owly News Summariser</small>', 0);