From af8898e60f3eb7f9285dccc0fbf961ed302a36d1 Mon Sep 17 00:00:00 2001 From: yovinchen Date: Tue, 10 Dec 2024 14:08:07 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=96=B0=E5=A2=9E=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bookkeeping/data/BookkeepingDatabase.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/src/main/java/com/yovinchen/bookkeeping/data/BookkeepingDatabase.kt b/app/src/main/java/com/yovinchen/bookkeeping/data/BookkeepingDatabase.kt index 8275c61..397b009 100644 --- a/app/src/main/java/com/yovinchen/bookkeeping/data/BookkeepingDatabase.kt +++ b/app/src/main/java/com/yovinchen/bookkeeping/data/BookkeepingDatabase.kt @@ -137,6 +137,18 @@ abstract class BookkeepingDatabase : RoomDatabase() { database.memberDao().apply { if (getMemberCount() == 0) { insertMember(Member(name = "自己", description = "默认成员")) + insertMember(Member(name = "老婆", description = "默认成员")) + insertMember(Member(name = "老公", description = "默认成员")) + insertMember(Member(name = "家庭", description = "默认成员")) + insertMember(Member(name = "儿子", description = "默认成员")) + insertMember(Member(name = "女儿", description = "默认成员")) + insertMember(Member(name = "爸爸", description = "默认成员")) + insertMember(Member(name = "妈妈", description = "默认成员")) + insertMember(Member(name = "爷爷", description = "默认成员")) + insertMember(Member(name = "奶奶", description = "默认成员")) + insertMember(Member(name = "外公", description = "默认成员")) + insertMember(Member(name = "外婆", description = "默认成员")) + insertMember(Member(name = "其他人", description = "默认成员")) } }