2021-11-18 00:46:34 +01:00
|
|
|
package entity
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
// TestEntity is an entity dedicated to test database management functionality.
|
|
|
|
type TestEntity struct {
|
2022-10-02 11:38:30 +02:00
|
|
|
ID string `gorm:"type:VARBINARY(42);primary_key;auto_increment:false;" json:"TestID" yaml:"TestID"`
|
2021-11-18 00:46:34 +01:00
|
|
|
TestLabel string `gorm:"type:VARCHAR(400);unique_index;" json:"Label" yaml:"Label"`
|
|
|
|
TestCount int `gorm:"default:1" json:"Count" yaml:"-"`
|
|
|
|
CreatedAt time.Time `json:"CreatedAt" yaml:"-"`
|
|
|
|
UpdatedAt time.Time `json:"UpdatedAt" yaml:"-"`
|
|
|
|
}
|
|
|
|
|
2022-09-28 09:01:17 +02:00
|
|
|
// TableName returns the entity table name.
|
2021-11-18 00:46:34 +01:00
|
|
|
func (TestEntity) TableName() string {
|
|
|
|
return "test_ignore"
|
|
|
|
}
|