package models import "time" // Stationery represents a stationery product in the database type Stationery struct { StationeryCode string `json:"stationery_code" db:"stationery_code"` StationeryName string `json:"stationery_name" db:"stationery_name"` Cost float64 `json:"cost" db:"cost"` Price float64 `json:"price" db:"price"` Discount float64 `json:"discount" db:"discount"` Quantity int `json:"quantity" db:"quantity"` Color string `json:"color" db:"color"` Material string `json:"material" db:"material"` Dimensions string `json:"dimensions" db:"dimensions"` Category string `json:"category" db:"category"` Description string `json:"description" db:"description"` ImageURL string `json:"image_url" db:"image_url"` Slug string `json:"slug" db:"slug"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` } // StationeryCreateRequest represents the data needed to create a new stationery item type StationeryCreateRequest struct { StationeryName string `json:"stationery_name"` Cost float64 `json:"cost"` Price float64 `json:"price"` Discount float64 `json:"discount"` Quantity int `json:"quantity"` Color string `json:"color"` Material string `json:"material"` Dimensions string `json:"dimensions"` Category string `json:"category"` Description string `json:"description"` ImageURL string `json:"image_url"` }