Files
wallet-go-api/pkg/model/subscriptionType.go
2022-09-27 00:33:44 +02:00

14 lines
329 B
Go

package model
type SubscriptionType struct {
tableName struct{} `pg:"subscriptionTypes,alias:subscriptionTypes"`
BaseModel
Name string `json:"name" pg:"name"`
Type string `json:"type" pg:"type,notnull"`
}
type NewSubscriptionTypeBody struct {
Name string `json:"name" form:"name"`
Type string `json:"type" form:"type"`
}