BE-MiniERP/modules/sales/models/payment.go
2025-06-22 23:23:26 +07:00

16 lines
421 B
Go

package models
import "time"
type Payment struct {
ID uint `gorm:"primaryKey" json:"id"`
InvoiceID uint `json:"invoice_id"`
Amount float64 `json:"amount"`
PaidAt time.Time `json:"paid_at"`
Method string `json:"method"` // contoh: cash, bank transfer, credit card
Note string `json:"note"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}