Initial
This commit is contained in:
27
app/models/fisk_log_item.go
Normal file
27
app/models/fisk_log_item.go
Normal file
@ -0,0 +1,27 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user