worldhopper/lib/database/tables/series_reading_mode_table.dart

19 lines
637 B
Dart

/// SQL schema for the series_reading_mode table
class SeriesReadingModeTable {
SeriesReadingModeTable._();
static const String tableName = 'series_reading_mode';
/// SQL statement to create the series_reading_mode table
static const String createTable = '''
CREATE TABLE $tableName (
series_feed_url TEXT PRIMARY KEY,
reading_mode TEXT NOT NULL,
created_at TEXT NOT NULL DEFAULT (datetime('now')),
last_accessed_at TEXT NOT NULL DEFAULT (datetime('now'))
)
''';
/// SQL statement to drop the series_reading_mode table
static const String dropTable = 'DROP TABLE IF EXISTS $tableName';
}