All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
20 lines
928 B
Go
20 lines
928 B
Go
package domain
|
|
|
|
import "time"
|
|
|
|
const TableNameModa = "moda"
|
|
|
|
type Moda struct {
|
|
ID string `gorm:"column:id;type:character(26);not null;default:generate_ulid()" json:"id"`
|
|
Name *string `gorm:"column:name;type:character varying(255);index:moda_name_idx,priority:1" json:"name"`
|
|
MerchantID *string `gorm:"column:merchant_id;type:character(26);index:moda_merchant_id_idx,priority:1" json:"merchant_id"`
|
|
CreatedBy *string `gorm:"column:created_by;type:character(26);index:moda_created_by_idx,priority:1" json:"created_by"`
|
|
CreatedOn *time.Time `gorm:"column:created_on;type:timestamp without time zone;default:now()" json:"created_on"`
|
|
UpdatedBy *string `gorm:"column:updated_by;type:character(26)" json:"updated_by"`
|
|
UpdatedOn *time.Time `gorm:"column:updated_on;type:timestamp without time zone;default:now()" json:"updated_on"`
|
|
}
|
|
|
|
func (*Moda) TableName() string {
|
|
return TableNameModa
|
|
}
|