role model

master
nima 2024-06-17 18:54:50 +03:30
parent 323157bec7
commit b329569a79
1 changed files with 12 additions and 0 deletions

12
models/role.go 100644
View File

@ -0,0 +1,12 @@
package models
import "time"
type Role struct {
Role_id uint `gorm:"primaryKey"`
Name string `gorm:"unique;not null;validate:'required'"`
Created_at time.Time
Modified_at time.Time
Modified_by string
Is_removed bool `gorm:"default:false"`
}