Last active
September 4, 2021 17:28
-
-
Save percybolmer/3db43b2eda7f3dfe6662803c2ecca1e8 to your computer and use it in GitHub Desktop.
#ddd-tavern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Package entities holds all the entities that are shared across all subdomains | |
package entity | |
import ( | |
"github.com/google/uuid" | |
) | |
// Person is a entity that represents a person in all Domains | |
type Person struct { | |
// ID is the identifier of the Entity, the ID is shared for all sub domains | |
ID uuid.UUID | |
// Name is the name of the person | |
Name string | |
// Age is the age of the person | |
Age int | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment