mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-02 20:30:10 +00:00
3a9ae4a439
Implements admin approval workflow for user requests with global and per-user auto-approve controls. Adds new request statuses ('awaiting_approval', 'denied'), related API endpoints, and UI for pending approvals. Introduces configurable audiobook organization path template with validation and preview in settings, updates database schema and migrations for new fields.
18 lines
707 B
SQL
18 lines
707 B
SQL
-- Add audiobook path template configuration
|
|
-- This allows admin to customize the folder/file path template for organized audiobooks
|
|
-- Template supports placeholders: {author}, {title}, {asin}
|
|
|
|
-- Insert default configuration for audiobook path template
|
|
INSERT INTO configuration (id, key, value, encrypted, category, description, created_at, updated_at)
|
|
VALUES (
|
|
gen_random_uuid(),
|
|
'audiobook_path_template',
|
|
'{author}/{title} {asin}',
|
|
false,
|
|
'automation',
|
|
'Template for organizing audiobook file paths. Supports placeholders: {author}, {title}, {asin}. Example: "{author}/{title} {asin}" creates "Author Name/Book Title ASIN/audiobook.m4b"',
|
|
NOW(),
|
|
NOW()
|
|
)
|
|
ON CONFLICT (key) DO NOTHING;
|