hertz101/app/user/biz/dal/model/users.gen.go
suyiiyii 087de0cba3
refactor(user): 重构用户服务配置和依赖
- 更新 MySQL配置,增加端口变量- 初始化 MySQL 在 gorm_gen工具中
- 更新 go.mod 依赖版本:
  - mysql驱动从 1.7.0 到 1.8.1
  - gorm相关包从多个版本统一到 1.25.7  - 其他依赖也进行了升级
- 更新 go.sum 文件以反映新的依赖版本
2025-01-17 18:04:58 +08:00

29 lines
858 B
Go

// 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"
"gorm.io/gorm"
)
const TableNameUser = "users"
// User mapped from table <users>
type User struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
Email string `gorm:"column:email;not null" json:"email"`
PasswordHashed string `gorm:"column:password_hashed;not null" json:"password_hashed"`
}
// TableName User's table name
func (*User) TableName() string {
return TableNameUser
}