mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
partial repository layer added
This commit is contained in:
13
pkg/model/subscriptionType.go
Normal file
13
pkg/model/subscriptionType.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user