package models import "time" // Transfer is the import and export screen's view of the settings row // (id 1 on golem15_seo_settings, UI-SPEC C13): the CSV delimiter its // footer Save stores. It is not listed in All, because the row's model is // Settings. type Transfer struct { ID uint `gorm:"column:id;primaryKey"` CSVDelimiter string `gorm:"column:csv_delimiter"` UpdatedAt *time.Time `gorm:"column:updated_at"` } func (Transfer) TableName() string { return "golem15_seo_settings" } // MorphName names the screen's record. func (Transfer) MorphName() string { return `Golem15\SEO\Models\Transfer` } // Fillable is the delimiter. func (Transfer) Fillable() []string { return []string{"csv_delimiter"} } // Rules is empty: the controller checks the delimiter. func (Transfer) Rules() map[string]string { return map[string]string{} }