mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-24 15:25:43 +00:00
Feat[BE-261,265]: createing BOP and BOP realization(Unfinished)
This commit is contained in:
@@ -9,10 +9,10 @@ import (
|
||||
|
||||
type Expense struct {
|
||||
Id uint64 `gorm:"primaryKey;autoIncrement"`
|
||||
ReferenceNumber *string `gorm:"type:varchar(50)"`
|
||||
ReferenceNumber *string `gorm:"type:varchar(50);uniqueIndex"`
|
||||
SupplierId *uint64 `gorm:""`
|
||||
Category string `gorm:"type:varchar(50);not null"`
|
||||
PoNumber string `gorm:"uniqueIndex;not null;type:varchar(50)"`
|
||||
PoNumber *string `gorm:"type:varchar(50)"`
|
||||
DocumentPath sql.NullString `gorm:"type:json"`
|
||||
ExpenseDate time.Time `gorm:"type:date;not null"`
|
||||
GrandTotal float64 `gorm:"type:numeric(15,3);default:0"`
|
||||
|
||||
@@ -23,5 +23,5 @@ type ExpenseNonstock struct {
|
||||
Expense *Expense `gorm:"foreignKey:ExpenseId;references:Id"`
|
||||
ProjectFlockKandang *ProjectFlockKandang `gorm:"foreignKey:ProjectFlockKandangId;references:Id"`
|
||||
Nonstock *Nonstock `gorm:"foreignKey:NonstockId;references:Id"`
|
||||
Realizations []ExpenseRealization `gorm:"foreignKey:ExpenseNonstockId;references:Id"`
|
||||
Realization *ExpenseRealization `gorm:"foreignKey:ExpenseNonstockId;references:Id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user