Archived
Implemented data classes for database optimisations
This commit is contained in:
@@ -3,9 +3,10 @@ package com.denizk0461.studip.model
|
||||
import androidx.room.Entity
|
||||
import androidx.room.PrimaryKey
|
||||
|
||||
@Entity(tableName = "offers")
|
||||
//@Entity(tableName = "offers")
|
||||
data class CanteenOffer(
|
||||
@PrimaryKey val id: Int,
|
||||
// @PrimaryKey val id: Int,
|
||||
val id: Int,
|
||||
val date: String,
|
||||
val dateId: Int, // gives every item on the same day the same ID for easier filtering
|
||||
// val canteen: Int,
|
||||
|
||||
Reference in New Issue
Block a user