31 lines
1.1 KiB
Go
31 lines
1.1 KiB
Go
|
|
package entity
|
||
|
|
|
||
|
|
const CollectionName = "brands"
|
||
|
|
|
||
|
|
type Status string
|
||
|
|
|
||
|
|
const (
|
||
|
|
StatusOpen Status = "open"
|
||
|
|
StatusDeleted Status = "deleted"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Brand struct {
|
||
|
|
ID string `bson:"_id"`
|
||
|
|
TenantID string `bson:"tenant_id"`
|
||
|
|
OwnerUID string `bson:"owner_uid"`
|
||
|
|
DisplayName string `bson:"display_name,omitempty"`
|
||
|
|
TopicName string `bson:"topic_name,omitempty"`
|
||
|
|
SeedQuery string `bson:"seed_query,omitempty"`
|
||
|
|
Brief string `bson:"brief,omitempty"`
|
||
|
|
ProductBrief string `bson:"product_brief,omitempty"`
|
||
|
|
ProductContext string `bson:"product_context,omitempty"`
|
||
|
|
ProductID string `bson:"product_id,omitempty"`
|
||
|
|
Products []Product `bson:"products,omitempty"`
|
||
|
|
TargetAudience string `bson:"target_audience,omitempty"`
|
||
|
|
Goals string `bson:"goals,omitempty"`
|
||
|
|
ResearchMap ResearchMap `bson:"research_map,omitempty"`
|
||
|
|
Status Status `bson:"status"`
|
||
|
|
CreateAt int64 `bson:"create_at"`
|
||
|
|
UpdateAt int64 `bson:"update_at"`
|
||
|
|
}
|