BE-MiniERP/modules/sales/models/payment.go
2025-06-23 15:32:27 +07:00

17 lines
538 B
Go

package models
import "time"
type Payment struct {
ID uint `gorm:"primaryKey" json:"id"`
InvoiceID uint `json:"invoice_id"`
Amount float64 `json:"amount"`
PaymentAt time.Time `json:"payment_at"`
PaymentMethod string `json:"payment_method"` // contoh: cash, bank transfer, credit card
FilePath string `json:"file_path"` // Path ke file bukti pembayaran
Note string `json:"note"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}