You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

22 lines
574 B

package com.example.acapendulum20.model
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize
/*@Parcelize
@Entity(tableName = "session_table", foreignKeys = [ForeignKey(entity = User::class,
parentColumns = arrayOf("id"),
childColumns = arrayOf("userRef"),
onDelete = ForeignKey.CASCADE)])
data class Session (
@PrimaryKey
val id: String,
val sessionStart: Long,
val sessionEnd: Long,
val userRef: String,
): Parcelable
*/