Newer
Older
ToDoApp / app / src / main / java / keijumt / todoapp / data / db / AppDatabase.kt
package keijumt.todoapp.data.db

import android.arch.persistence.room.Database
import android.arch.persistence.room.RoomDatabase
import keijumt.todoapp.data.db.dao.TaskDao
import keijumt.todoapp.data.db.entity.Task

@Database(
        entities = arrayOf(
                Task::class
        ),
        version = 1
)
abstract class AppDatabase : RoomDatabase() {
    abstract fun taskDao(): TaskDao
}