Private
Public Access
16 lines
538 B
Go
16 lines
538 B
Go
package dto
|
|
|
|
import (
|
|
"repuestera_back/models/logs"
|
|
"time"
|
|
|
|
"gorm.io/datatypes"
|
|
)
|
|
type LogTablaDto struct {
|
|
ID uint64 `gorm:"primaryKey" json:"id"`
|
|
UsuarioID uint `gorm:"index;not null" json:"usuarioId"`
|
|
Accion string `gorm:"type:varchar(50);not null" json:"accion"`
|
|
Detalles datatypes.JSONSlice[logs.LogDetalle] `gorm:"type:json" json:"detalles,omitempty"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|