JIJO recupere el codigo dsps que de claude nukee mi repo LETS GOOO

This commit is contained in:
fede committed 2026-05-11 23:08:14 -03:00
1 parent a35539590a
commit 6c1bc50089
24 files changed
+1260

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
package models
import (
"time"
"gorm.io/gorm"
)
type Permiso struct {
ID uint `gorm:"primaryKey" json:"id"`
Nombre string `gorm:"uniqueIndex;not null;type:varchar(100)" json:"nombre"`
Descripcion string `gorm:"type:text" json:"descripcion"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}
func (Permiso) TableName() string {
return "permissions"
}