diff --git a/do/base_do.go b/do/base_do.go new file mode 100644 index 0000000..4d7f45e --- /dev/null +++ b/do/base_do.go @@ -0,0 +1,14 @@ +package do + +import ( + "go.mongodb.org/mongo-driver/v2/bson" + "time" +) + +type MongoBaseDO struct { + Creator bson.ObjectID `bson:"creator" json:"creator"` + CreatedAt time.Time `bson:"createdAt" json:"createdAt"` + Updater bson.ObjectID `bson:"updater" json:"updater"` + UpdatedAt time.Time `bson:"updatedAt" json:"updatedAt"` + TenantId bson.ObjectID `bson:"tenantId" json:"tenantId"` +}