| 25 | } |
| 26 | |
| 27 | type Project struct { |
| 28 | BaseModel `bson:",inline"` |
| 29 | UserID bson.ObjectID `bson:"user_id"` |
| 30 | ProjectID string `bson:"project_id"` |
| 31 | Name string `bson:"name"` |
| 32 | RootDocID string `bson:"root_doc_id"` |
| 33 | Docs []ProjectDoc `bson:"docs"` |
| 34 | Category ClassifyPaperResponse `bson:"category,omitempty"` |
| 35 | Instructions string `bson:"instructions"` |
| 36 | } |
| 37 | |
| 38 | func (u Project) CollectionName() string { |
| 39 | return "projects" |
nothing calls this directly
no outgoing calls
no test coverage detected