16 lines
415 B
Go
16 lines
415 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Warehouse struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
Kode string `gorm:"not null;unique" json:"kode"`
|
|
Name string `gorm:"not null" json:"name"`
|
|
Address string `json:"address"`
|
|
Stackholder string `json:"stackholder"`
|
|
Number string `json:"number"`
|
|
Description string `json:"description"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|