add tables

This commit is contained in:
yanghao05
2023-01-31 16:58:35 +08:00
parent 05622922e9
commit e0191e30c1
22 changed files with 3069 additions and 484 deletions

View File

@@ -0,0 +1,18 @@
// 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 models
const TableNameUserRole = "user_roles"
// UserRole mapped from table <user_roles>
type UserRole struct {
UserID uint64 `gorm:"column:user_id;type:bigint(20) unsigned" json:"user_id"`
RoleID uint64 `gorm:"column:role_id;type:bigint(20) unsigned" json:"role_id"`
}
// TableName UserRole's table name
func (*UserRole) TableName() string {
return TableNameUserRole
}