Added invoices endpoint

This commit is contained in:
Nedim
2023-09-27 19:20:44 +02:00
parent 937c61c635
commit 60042ebd30
9 changed files with 342 additions and 88 deletions

27
models/invoice_item.go Normal file
View File

@@ -0,0 +1,27 @@
package models
import (
"github.com/jinzhu/gorm"
)
type InvoiceItem struct {
gorm.Model
Description string
Quantity int64
Unit string
PriceCents int64 `gorm:"column:price_cents"`
InvoiceID uint
}
func (InvoiceItem) Update() (bool, error) {
return false, nil
}
func (InvoiceItem) Create() (bool, error) {
return false, nil
}
func (InvoiceItem) Delete() (bool, error) {
return false, nil
}