sun-pc 5 月之前
父节点
当前提交
6315fba0b5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/db/model/material.go

+ 1 - 0
src/db/model/material.go

@@ -62,6 +62,7 @@ type Image struct {
 // Background represents the background material model that exactly matches the JSON structure
 // Background represents the background material model that exactly matches the JSON structure
 type Material struct {
 type Material struct {
 	Id         primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
 	Id         primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
+	Cid        primitive.ObjectID `bson:"cid,omitempty" json:"cid,omitempty"`
 	ID         int                `bson:"id,omitempty" json:"id,omitempty"`
 	ID         int                `bson:"id,omitempty" json:"id,omitempty"`
 	Type       int                `bson:"type,omitempty" json:"type,omitempty"`
 	Type       int                `bson:"type,omitempty" json:"type,omitempty"`
 	Attributes struct {
 	Attributes struct {