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