28 lines
861 B
Go
28 lines
861 B
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type TInventoryRequestEntity struct {
|
|
ID uuid.UUID `gorm:"primaryKey;type:uuid;default:uuid_generate_v4()" json:"id"`
|
|
ReferenceNumber string `gorm:"type:varchar(100);" json:"reference_number"`
|
|
DocumentNumber string `gorm:"type:varchar(100);" json:"document_number"`
|
|
DueDate time.Time `gorm:"type:timestamp;" json:"due_date"`
|
|
RequestType string `gorm:"type:varchar(50);" json:"request_type"`
|
|
Note string `gorm:"type:text;" json:"note"`
|
|
Status string `gorm:"type:varchar(50);" json:"status"`
|
|
|
|
ClientID uuid.UUID `gorm:"type:uuid;index;" json:"client_id"`
|
|
|
|
Client M_Client `gorm:"foreignKey:ClientID;references:ID"`
|
|
|
|
FullAuditTrail
|
|
}
|
|
|
|
func (TInventoryRequestEntity) TableName() string {
|
|
return "t_inventory_requests"
|
|
}
|