Last active
March 26, 2021 03:58
-
-
Save shaykav/4220708314bf81179f135c40df5424b0 to your computer and use it in GitHub Desktop.
This file contains 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
import { attribute, hashKey, table } from '@aws/dynamodb-data-mapper-annotations'; | |
import { APIGatewayEventRequestContext } from 'aws-lambda'; | |
@table('CONNECTION_TABLE') | |
export class Connection { | |
/* ConnectionId */ | |
@hashKey() | |
id: string; | |
@attribute({defaultProvider: () => new Date()}) | |
createdAt: Date; | |
@attribute() | |
requestContext: APIGatewayEventRequestContext; | |
@attribute() | |
payload: Record<string, string>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment