Created
March 15, 2022 19:57
-
-
Save oharaandrew314/d0452eedd2dfdba9ff0ae83b59f09ba0 to your computer and use it in GitHub Desktop.
hexagonal-client-cat-v2
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
data class CatDtoV2( | |
val id: UUID, | |
val name: String, | |
val owner: OwnerDtoV2, | |
val colours: Set<ColourV2>, | |
val breed: BreedV2, | |
val favouriteFood: String | |
) | |
data class OwnerDtoV2( | |
val id: UUID, | |
val name: String | |
) | |
data class AppointmentDtoV2( | |
val id: UUID, | |
val time: Instant, | |
val ownerId: UUID, | |
val catId: UUID | |
) | |
enum class BreedV2 { AmericanShortHair, Persian, MaineCoon, BritishShortHair, Abyssinian, Bengal } | |
enum class ColourV2 { Brown, Grey, Orange, White } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment