package com.ys.bdtp.adm.mvvm.model.db.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * user: 用户表
 *
 * @param id 用户id
 * @param password 离线登录用密码，MD5加密过
 * @param account BOSS 登录账号
 * @param deptId BOSS 部门编号
 * @param email BOSS 邮箱
 * @param phone BOSS 手机
 * @param name BOSS 用户名
 * @param state 本地登录状态: 0 未登录, 1 已登录
 *
 */
@Entity(tableName = "user")
data class UserEntity(
    @PrimaryKey @ColumnInfo(name = "id") val id: String,
    @ColumnInfo(name = "password") val password: String,
    @ColumnInfo(name = "account") val account: String,
    @ColumnInfo(name = "dept_id") val deptId: String,
    @ColumnInfo(name = "email") val email: String,
    @ColumnInfo(name = "phone") val phone: String,
    @ColumnInfo(name = "name") val name: String,
    @ColumnInfo(name = "state") val state: Int,
)