2024-12-14 22:38:06 -05:00
|
|
|
// Copyright (c) 2025 Zeni Kim <zenik@smarteching.com>
|
|
|
|
// Use of this source code is governed by MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package models
|
|
|
|
|
|
|
|
type UserRole struct {
|
|
|
|
BaseModel
|
2024-12-16 20:05:37 -05:00
|
|
|
UserID uint // The user id
|
|
|
|
RoleID uint // The role id
|
2024-12-14 22:38:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// TableName sets the table name
|
|
|
|
func (UserRole) TableName() string {
|
|
|
|
return "user_roles"
|
|
|
|
}
|