parent
							
								
									6e5dccbc96
								
							
						
					
					
						commit
						ab4227eaef
					
				@ -1,11 +1,11 @@ | 
				
			|||||||
package base | 
					package protection | 
				
			||||||
 | 
					
 | 
				
			||||||
import ( | 
					import ( | 
				
			||||||
	"go.mongodb.org/mongo-driver/bson/primitive" | 
						"go.mongodb.org/mongo-driver/bson/primitive" | 
				
			||||||
) | 
					) | 
				
			||||||
 | 
					
 | 
				
			||||||
// Protection field stores unique document id and version
 | 
					// Key field stores unique document id and version
 | 
				
			||||||
type Protection struct { | 
					type Key struct { | 
				
			||||||
	X primitive.ObjectID `bson:"_x" json:"_x" index:",hashed"` | 
						X primitive.ObjectID `bson:"_x" json:"_x" index:",hashed"` | 
				
			||||||
	V int64              `bson:"_v" json:"_v"` | 
						V int64              `bson:"_v" json:"_v"` | 
				
			||||||
} | 
					} | 
				
			||||||
					Loading…
					
					
				
		Reference in new issue