16 lines
571 B
Go
16 lines
571 B
Go
package crawler
|
|
|
|
import "time"
|
|
|
|
// Bag holds the metadata for a single product.
|
|
type Bag struct {
|
|
SKU string `firestore:"sku"`
|
|
Name string `firestore:"name"`
|
|
URL string `firestore:"url"`
|
|
ImageURL string `firestore:"imageURL"`
|
|
Availability bool `firestore:"availability"`
|
|
CreatedTimestamp time.Time `firestore:"createdTimestamp,serverTimestamp"`
|
|
UpdatedTimestamp time.Time `firestore:"updatedTimestamp,serverTimestamp"`
|
|
DeleteTimestamp *time.Time `firestore:"deleteTimestamp,omitempty"`
|
|
}
|