package de.sebse.fuplanner2.database

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import de.sebse.fuplanner2.auth.UserCookies
import de.sebse.fuplanner2.blackboard.BlackboardInfo
import de.sebse.fuplanner2.whiteboard.WhiteboardInfo

@Entity
data class User (
    @PrimaryKey(autoGenerate = true) var uid: Long? = null,
    @ColumnInfo(name = "cookies") val cookies: UserCookies,
    @ColumnInfo(name = "bbInfo") val bbInfo: BlackboardInfo,
    @ColumnInfo(name = "wbInfo") val wbInfo: WhiteboardInfo,
    @ColumnInfo(name = "username") val userName: String,
    @ColumnInfo(name = "first_name") var firstName: String? = null,
    @ColumnInfo(name = "last_name") var lastName: String? = null,
    @ColumnInfo(name = "mat_number") var matNumber: Int? = null,
    @ColumnInfo(name = "email") var email: String? = null
)
