worldhopper/lib/database/tables/servers_table.dart
Felipe M. 71651a6b21
All checks were successful
ci/woodpecker/pr/pr Pipeline was successful
feat: koreader sync
2026-02-15 13:00:48 +01:00

26 lines
714 B
Dart

/// SQL schema for the servers table
class ServersTable {
ServersTable._();
static const String tableName = 'servers';
/// SQL statement to create the servers table
static const String createTable = '''
CREATE TABLE $tableName (
id TEXT PRIMARY KEY,
name TEXT NOT NULL,
url TEXT NOT NULL,
username TEXT,
password TEXT,
created_at INTEGER NOT NULL,
last_synced_at INTEGER,
koreader_sync_enabled INTEGER NOT NULL DEFAULT 0,
koreader_sync_url TEXT,
koreader_sync_username TEXT,
koreader_sync_password TEXT
)
''';
/// SQL statement to drop the servers table
static const String dropTable = 'DROP TABLE IF EXISTS $tableName';
}