30 lines
1.1 KiB
Go
30 lines
1.1 KiB
Go
|
|
package entity
|
||
|
|
|
||
|
|
const CollectionName = "personas"
|
||
|
|
|
||
|
|
type Status string
|
||
|
|
|
||
|
|
const (
|
||
|
|
StatusOpen Status = "open"
|
||
|
|
StatusDeleted Status = "deleted"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Persona struct {
|
||
|
|
ID string `bson:"_id"`
|
||
|
|
TenantID string `bson:"tenant_id"`
|
||
|
|
OwnerUID string `bson:"owner_uid"`
|
||
|
|
DisplayName string `bson:"display_name,omitempty"`
|
||
|
|
Persona string `bson:"persona,omitempty"`
|
||
|
|
Brief string `bson:"brief,omitempty"`
|
||
|
|
ProductBrief string `bson:"product_brief,omitempty"`
|
||
|
|
TargetAudience string `bson:"target_audience,omitempty"`
|
||
|
|
Goals string `bson:"goals,omitempty"`
|
||
|
|
StyleProfile string `bson:"style_profile,omitempty"`
|
||
|
|
StyleBenchmark string `bson:"style_benchmark,omitempty"`
|
||
|
|
SeedQuery string `bson:"seed_query,omitempty"`
|
||
|
|
CopyResearchMap CopyResearchMap `bson:"copy_research_map,omitempty"`
|
||
|
|
Status Status `bson:"status"`
|
||
|
|
CreateAt int64 `bson:"create_at"`
|
||
|
|
UpdateAt int64 `bson:"update_at"`
|
||
|
|
}
|