// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package model

import (
	"time"
)

const TableNameUser = "user"

// User mapped from table <user>
type User struct {
	ID        int64      `gorm:"column:id;type:bigint;primaryKey;comment:User ID" json:"id"`
	NickName  string     `gorm:"column:nick_name;type:varchar(50);comment:Nick Name" json:"nick_name"`
	AvatarURL string     `gorm:"column:avatar_url;type:varchar(200);not null;comment:Avatar URL" json:"avatar_url"`
	Email     string     `gorm:"column:email;type:varchar(50);not null;index:user_idx_email,priority:1;comment:Email Address" json:"email"`
	Password  string     `gorm:"column:password;type:varchar(500);not null" json:"password"`
	CreatedAt *time.Time `gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:Create Time" json:"created_at"`
	UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:Update Time" json:"updated_at"`
}

// TableName User's table name
func (*User) TableName() string {
	return TableNameUser
}
