Rustelo/seeds/002_sample_content.sql

35 lines
974 B
MySQL
Raw Normal View History

-- Sample content for development
-- This file works for both PostgreSQL and SQLite
INSERT INTO content (title, slug, content_type, body, is_published, published_at) VALUES
('Welcome to Rustelo', 'welcome', 'markdown', '# Welcome to Rustelo
This is a sample content page created by the seed data.
## Features
- Fast and secure
- Built with Rust
- Modern web framework
- Easy to use
Enjoy building with Rustelo!', true, CURRENT_TIMESTAMP),
('About Us', 'about', 'markdown', '# About Us
This is the about page for your Rustelo application.
You can edit this content through the admin interface or by modifying the seed files.', true, CURRENT_TIMESTAMP),
('Getting Started', 'getting-started', 'markdown', '# Getting Started
Here are some tips to get you started with your new Rustelo application:
1. Check out the admin interface
2. Create your first content
3. Customize the design
4. Deploy to production
Good luck!', false, NULL)
ON CONFLICT (slug) DO NOTHING;