Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveOrCreateById ¶
Types ¶
type Entity ¶
type Entity struct {
Id uint64 `gorm:"primaryKey;column:id;autoIncrement;not null;" json:"id"`
Scope string `` /* 162-byte string literal not displayed */
SourceType string `` /* 127-byte string literal not displayed */
SourceId uint64 `gorm:"column:source_id;not null;default:0;uniqueIndex:uniq_migration_mapping,priority:3;" json:"sourceId"`
TargetType string `` /* 127-byte string literal not displayed */
TargetId uint64 `gorm:"column:target_id;not null;default:0;index:idx_migration_mapping_target,priority:3;" json:"targetId"`
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime;<-:create;" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
}
func GetBySource ¶
Click to show internal directories.
Click to hide internal directories.