16 lines
421 B
Go
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"`
|
|
}
|