Skip to content

Commit

Permalink
fix: prevent duplicate data (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
kokoichi206 committed Nov 16, 2022
1 parent c19794e commit 139a559
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
package jp.mydns.kokoichi0206.data.local.model

import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import jp.mydns.kokoichi0206.model.Member

@Entity
@Entity(
indices = [
Index(value = ["name"], unique = true),
],
)
data class MemberEntity(
val blogUrl: String,
val bloodType: String,
Expand Down

0 comments on commit 139a559

Please sign in to comment.