package model import ( "gofaster/internal/shared/model" ) type Permission struct { model.BaseModel Name string `gorm:"uniqueIndex;size:50" json:"name"` Code string `gorm:"uniqueIndex;size:50" json:"code"` Description string `gorm:"size:200" json:"description"` Resource string `gorm:"size:100" json:"resource"` Action string `gorm:"size:50" json:"action"` // create, read, update, deleteç­‰ }