25 lines
1.1 KiB
Go
25 lines
1.1 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
|
|
package prestadb
|
|
|
|
const TableNamePsCurrency = "ps_currency"
|
|
|
|
// PsCurrency mapped from table <ps_currency>
|
|
type PsCurrency struct {
|
|
IDCurrency int32 `gorm:"column:id_currency;primaryKey;autoIncrement:true" json:"id_currency"`
|
|
Name string `gorm:"column:name;not null" json:"name"`
|
|
IsoCode string `gorm:"column:iso_code;not null;index:currency_iso_code,priority:1;default:0" json:"iso_code"`
|
|
NumericIsoCode *string `gorm:"column:numeric_iso_code" json:"numeric_iso_code"`
|
|
Precision int32 `gorm:"column:precision;not null;default:6" json:"precision"`
|
|
ConversionRate float64 `gorm:"column:conversion_rate;not null" json:"conversion_rate"`
|
|
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
|
|
Active bool `gorm:"column:active;not null;default:1" json:"active"`
|
|
}
|
|
|
|
// TableName PsCurrency's table name
|
|
func (*PsCurrency) TableName() string {
|
|
return TableNamePsCurrency
|
|
}
|