新增关联表和部门表

This commit is contained in:
骑着蜗牛追导弹 2024-02-05 20:33:06 +08:00
parent 6fff319e4c
commit b70bb7d03a
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package domain
import "github.com/jinzhu/gorm"
type UserDepartment struct {
gorm.Model
UserId uint `gorm:"not null"`
DepartmentId uint `gorm:"not null"`
}
func (UserDepartment) TableName() string {
return "system_user_department"
}