package com.phapps.elitedangerous.companion.data

import android.arch.persistence.room.Database
import android.arch.persistence.room.RoomDatabase
import com.phapps.elitedangerous.companion.data.doa.CommanderDao
import com.phapps.elitedangerous.companion.data.doa.ShipDao
import com.phapps.elitedangerous.companion.data.doa.StarSystemDao
import com.phapps.elitedangerous.companion.data.entities.*

@Database(
        entities = [CommanderProfile::class, Module::class, ModuleSlot::class, Ship::class, ShipModuleSlot::class, Starport::class, StarSystem::class, Station::class],
        version = 1)
abstract class EdacDatabase : RoomDatabase() {

    companion object {
        const val DB_NAME = "edac.db"
    }

    abstract fun commanderProfileDao(): CommanderDao

    abstract fun shipDao(): ShipDao

    abstract fun starSystemDao(): StarSystemDao
}
