authority system start

This commit is contained in:
Zeni Kim 2024-12-14 22:38:06 -05:00
parent e5dee10221
commit cac2986b59
6 changed files with 476 additions and 0 deletions

16
models/user-roles.go Normal file
View file

@ -0,0 +1,16 @@
// 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
UserID string // The user id
RoleID uint // The role id
}
// TableName sets the table name
func (UserRole) TableName() string {
return "user_roles"
}