新增关联表和部门表
This commit is contained in:
parent
6fff319e4c
commit
b70bb7d03a
|
@ -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"
|
||||
}
|
Loading…
Reference in New Issue