Last active
March 30, 2022 02:20
-
-
Save oharaandrew314/65f65fba653f73aeb77796c04a9ed92b to your computer and use it in GitHub Desktop.
dynamodb-v2-kotlin-cat-new
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 DynamoCat( | |
| @DynamoKtPartitionKey | |
| val ownerId: Int, | |
| @DynamoKtSortKey | |
| @DynamoKtSecondaryPartitionKey(indexNames = ["names"]) | |
| val name: String, | |
| val gender: String, | |
| val features: List<String> | |
| ) | |
| val schema = DataClassTableSchema(DynamoCat::class) | |
| val table = DynamoDbEnhancedClient.create().table("cat", schema) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment