package models type Role struct { Id string `gorm:"primaryKey;type:varchar(36)"` OrganizationId string `gorm:"type:varchar(36)"` Master bool `gorm:"type:tinyint(1)"` Name string `gorm:"type:varchar(255)"` } type RolePermission struct { Id string `gorm:"primaryKey;type:varchar(36)"` RoleId string `gorm:"type:varchar(36)"` Permission uint16 `gorm:"type:smallint"` }