17 lines
538 B
Go
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"`
|
|
}
|