budgit/internal/model/payment_method.go
juancwu 3de76916c9
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m1s
feat: payment methods
2026-02-13 21:55:10 +00:00

21 lines
562 B
Go

package model
import "time"
type PaymentMethodType string
const (
PaymentMethodTypeCredit PaymentMethodType = "credit"
PaymentMethodTypeDebit PaymentMethodType = "debit"
)
type PaymentMethod struct {
ID string `db:"id"`
SpaceID string `db:"space_id"`
Name string `db:"name"`
Type PaymentMethodType `db:"type"`
LastFour *string `db:"last_four"`
CreatedBy string `db:"created_by"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}