// Copyright (C) 2026 Jason M. Schwefel. All Rights Reserved.
package com.coldboreballisticsllc.scopedope.data.ammo.user

import androidx.room.Database
import androidx.room.RoomDatabase
import com.coldboreballisticsllc.scopedope.data.ammo.AmmoDao
import com.coldboreballisticsllc.scopedope.data.ammo.AmmoEntity

/**
 * User-defined ammunition entries. Persists across app upgrades.
 *
 * MIGRATION POLICY: Always provide explicit migrations. Never use
 * fallbackToDestructiveMigration() — this database contains user data.
 */
@Database(entities = [AmmoEntity::class], version = 4, exportSchema = true)
abstract class UserAmmoDatabase : RoomDatabase() {
    abstract fun ammoDao(): AmmoDao
}
