dbmodel

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package dbmodel Code generated by sql2struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID         int64     `gorm:"column:id" json:"id,omitempty"`
	UserID     int64     `gorm:"column:user_id" json:"user_id,omitempty"`         // 用户 id
	Email      string    `gorm:"column:email" json:"email,omitempty"`             // 用户邮箱
	Phone      string    `gorm:"column:phone" json:"phone,omitempty"`             // 手机号
	Role       uint8     `gorm:"column:role" json:"role,omitempty"`               // 用户角色  1:超级管理员 2:其他
	WebsiteURL string    `gorm:"column:website_url" json:"website_url,omitempty"` // 个人主页
	Remark     string    `gorm:"column:remark" json:"remark,omitempty"`           // 备注
	CreatedAt  time.Time `gorm:"column:created_at" json:"created_at,omitempty"`   // 创建时间
	UpdatedAt  time.Time `gorm:"column:updated_at" json:"updated_at,omitempty"`   // 更新时间
	DeletedAt  time.Time `gorm:"column:deleted_at" json:"deleted_at,omitempty"`   // 移除时间
}

User 用户表

func (*User) TableName

func (t *User) TableName() string

TableName the name of table in database

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL