SeedDatabase.kt
composeApp/src/commonMain/kotlin/eu/friedcutlet/yokan/database/SeedDatabase.kt
1package eu.friedcutlet.yokan.database23/**4 * Initial database state for first-launch users.5 *6 * No extensions or catalogs are bundled. Repositories must be added by the user7 * or restored from a backup; startup refreshes only those saved repositories.8 * There are also no sample titles, sources, chapters, tracks, or history.9 */10fun seedDatabaseSnapshot(): YokanDatabaseSnapshot {11 val settings = DbSettings(12 mangaExtensionsRepo = emptyList(),13 animeExtensionsRepo = emptyList(),14 novelExtensionsRepo = emptyList(),15 navigationOrder = listOf(16 "MangaLibrary",17 "AnimeLibrary",18 "NovelLibrary",19 "Updates",20 "History",21 "Browse",22 "More",23 "TrackerLibrary",24 ),25 hideItems = emptyList(),26 algorithmWeights = DbAlgorithmWeights(),27 backupListOptions = listOf(0, 1, 2, 3, 4, 5),28 )2930 return YokanDatabaseSnapshot(31 settings = settings,32 mangas = emptyList(),33 chapters = emptyList(),34 categories = emptyList(),35 sources = emptyList(),36 histories = emptyList(),37 updates = emptyList(),38 downloads = emptyList(),39 tracks = emptyList(),40 trackPreferences = emptyList(),41 trackSearches = emptyList(),42 syncPreferences = emptyList(),43 changedParts = emptyList(),44 customButtons = emptyList(),45 pageCache = emptyList(),46 )47}48