rbac_permissions.go 583 B

12345678910111213141516171819
  1. package model
  2. import (
  3. "time"
  4. )
  5. type RbacPermissions struct {
  6. ID uint64 `gorm:"primaryKey;column:id" json:"id"`
  7. Method string `gorm:"column:method" json:"method"`
  8. Path string `gorm:"column:path" json:"path"`
  9. URL string `gorm:"column:url" json:"url"`
  10. Description string `gorm:"column:description" json:"description"`
  11. CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
  12. UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
  13. }
  14. func (m *RbacPermissions) TableName() string {
  15. return "rbac_permissions"
  16. }