From 6c95d3352632be97f1ca51780e69fb07e69a33a6 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 9 Jan 2025 14:10:45 -0700 Subject: [PATCH] Create database file. --- .../com/hyperling/expensetracker/ExpenseDatabase.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/src/main/java/com/hyperling/expensetracker/ExpenseDatabase.kt diff --git a/app/src/main/java/com/hyperling/expensetracker/ExpenseDatabase.kt b/app/src/main/java/com/hyperling/expensetracker/ExpenseDatabase.kt new file mode 100644 index 0000000..8761417 --- /dev/null +++ b/app/src/main/java/com/hyperling/expensetracker/ExpenseDatabase.kt @@ -0,0 +1,13 @@ +package com.hyperling.expensetracker + +import androidx.room.Database +import androidx.room.RoomDatabase + +@Database ( + entities = [Expense::class], + version = 1 +) +abstract class ExpenseDatabase: RoomDatabase() { + + abstract val dao: ExpenseDao +} \ No newline at end of file