Last active
May 4, 2020 12:43
-
-
Save farzadshbfn/fcc6d54574fcc33eb617e94bd7709804 to your computer and use it in GitHub Desktop.
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
typealias UserId = String | |
struct User { | |
let id: UserId | |
let cellNumber: CellNumber | |
let isRegistered: Bool | |
let profile: UserProfile? | |
} | |
struct UserProfile { | |
let name: String | |
let lastName: String | |
let email: Email? | |
} | |
struct CellNumber { | |
let digits: String | |
} | |
struct Email { | |
let address: String | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment