2021-11-17 23:46:34 +00:00
|
|
|
package entity
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
// TestEntity is an entity dedicated to test database management functionality.
|
|
|
|
type TestEntity struct {
|
2022-10-02 09:38:30 +00:00
|
|
|
ID string `gorm:"type:VARBINARY(42);primary_key;auto_increment:false;" json:"TestID" yaml:"TestID"`
|
2021-11-17 23:46:34 +00: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 07:01:17 +00:00
|
|
|
// TableName returns the entity table name.
|
2021-11-17 23:46:34 +00:00
|
|
|
func (TestEntity) TableName() string {
|
|
|
|
return "test_ignore"
|
|
|
|
}
|