17 lines
577 B
Go
17 lines
577 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Permission struct {
|
|
ID uint32 `gorm:"primaryKey" json:"id"`
|
|
Service string `gorm:"size:100;uniqueIndex:idx_service_permission" json:"service"`
|
|
PermissionName string `gorm:"size:100;uniqueIndex:idx_service_permission" json:"permission_name"`
|
|
Title string `gorm:"size:100" json:"title"`
|
|
Description string `json:"description"`
|
|
IsDefault bool `gorm:"default:false" json:"is_default"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|