28 lines
578 B
Go
28 lines
578 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
"gorm.io/datatypes"
|
|
)
|
|
|
|
type FiskLogItem struct {
|
|
Id uuid.UUID `gorm:"type(uuid);unique"`
|
|
ApiKeyId uuid.UUID `gorm:"type(uuid)"`
|
|
CompanyId uuid.UUID `gorm:"type(uuid)"`
|
|
IsDemo bool
|
|
RequestData datatypes.JSONMap `gorm:"type:jsonb;not null"`
|
|
ResponseData *datatypes.JSONMap `gorm:"type:jsonb"`
|
|
IznosUkupno int
|
|
Zki *string
|
|
Jir *uuid.UUID `gorm:"type(uuid)"`
|
|
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
func (m *FiskLogItem) TableName() string {
|
|
return "fisk_log"
|
|
}
|