diff --git a/src/modules/system/domain/user_department.go b/src/modules/system/domain/user_department.go new file mode 100644 index 0000000..0956534 --- /dev/null +++ b/src/modules/system/domain/user_department.go @@ -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" +}