CasaOS/service/model/o_user.go
a624669980@163.com 8aab7e6053 switch branches
2022-06-14 15:18:20 +08:00

27 lines
686 B
Go

/*
* @Author: LinkLeong link@icewhale.com
* @Date: 2022-05-13 18:15:46
* @LastEditors: LinkLeong
* @LastEditTime: 2022-06-14 14:29:30
* @FilePath: /CasaOS/service/model/o_user.go
* @Description:
* @Website: https://www.casaos.io
* Copyright (c) 2022 by icewhale, All Rights Reserved.
*/
package model
//Soon to be removed
type UserDBModel struct {
Id int `gorm:"column:id;primary_key" json:"id"`
UserName string `json:"user_name"`
Password string `json:"password"`
Role string `json:"role"`
Email string `json:"email"`
Avatar string `json:"avatar"`
NickName string `json:"nick_name"`
}
func (p *UserDBModel) UserDBModel() string {
return "o_user"
}