Cleanup
This commit is contained in:
@ -1,23 +0,0 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type ApiKey struct {
|
||||
Key uuid.UUID `gorm:"type(uuid);unique;default:uuid_generate_v4()"`
|
||||
CompanyId uuid.UUID `gorm:"type(uuid)" faker:"-"`
|
||||
ActiveFrom *time.Time `faker:"-"`
|
||||
ActiveTo *time.Time `faker:"-"`
|
||||
LastUsed *time.Time
|
||||
CreatedAt time.Time `faker:"-"`
|
||||
UpdatedAt time.Time `faker:"-"`
|
||||
|
||||
Company Company `faker:"-"`
|
||||
}
|
||||
|
||||
func (m *ApiKey) TableName() string {
|
||||
return "api_keys"
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
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