We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
生成出的结构体 Type bool gorm:"column:type;type:tinyint(1);not null;default:0" // 0增加,1减少
gorm:"column:type;type:tinyint(1);not null;default:0"
以下是表结构 CREATE TABLE account_log ( id int(11) unsigned NOT NULL AUTO_INCREMENT, admin_id int(11) unsigned NOT NULL COMMENT '管理员ID', user_id int(11) unsigned NOT NULL COMMENT '用户id', type tinyint(1) NOT NULL DEFAULT '0' COMMENT '0增加,1减少', event tinyint(3) NOT NULL COMMENT '操作类型,意义请看accountLog类', time datetime NOT NULL COMMENT '发生时间', note text COMMENT '备注', PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='账户余额日志表';
account_log
id
admin_id
user_id
type
event
time
note
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
生成出的结构体
Type bool
gorm:"column:type;type:tinyint(1);not null;default:0"
// 0增加,1减少以下是表结构
CREATE TABLE
account_log
(id
int(11) unsigned NOT NULL AUTO_INCREMENT,admin_id
int(11) unsigned NOT NULL COMMENT '管理员ID',user_id
int(11) unsigned NOT NULL COMMENT '用户id',type
tinyint(1) NOT NULL DEFAULT '0' COMMENT '0增加,1减少',event
tinyint(3) NOT NULL COMMENT '操作类型,意义请看accountLog类',time
datetime NOT NULL COMMENT '发生时间',note
text COMMENT '备注',PRIMARY KEY (
id
)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='账户余额日志表';
The text was updated successfully, but these errors were encountered: