Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added models for loyalty pass and subscription. #247

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

flickkshitij
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Jun 6, 2024

Deploy Preview for flickmatch canceled.

Name Link
🔨 Latest commit b3ddfd9
🔍 Latest deploy log https://app.netlify.com/sites/flickmatch/deploys/669e445182e5a60008e3ee61

@flickkshitij
Copy link
Contributor Author

Below are the commands to create the tables (created in beta db) ; Only ^ will be replaced by / in mac

aws dynamodb create-table ^
--table-name DaysSubscription ^
--attribute-definitions ^
AttributeName=daysSubscriptionId,AttributeType=S ^
--key-schema ^
AttributeName=daysSubscriptionId,KeyType=HASH ^
--provisioned-throughput ^
ReadCapacityUnits=5,WriteCapacityUnits=5 ^
--table-class STANDARD

aws dynamodb create-table ^
--table-name GamesSubscription ^
--attribute-definitions ^
AttributeName=gamesSubscriptionId,AttributeType=S ^
--key-schema ^
AttributeName=gamesSubscriptionId,KeyType=HASH ^
--provisioned-throughput ^
ReadCapacityUnits=5,WriteCapacityUnits=5 ^
--billing-mode PROVISIONED

aws dynamodb create-table ^
--table-name LoyaltyPass ^
--attribute-definitions AttributeName=passId,AttributeType=S ^
--key-schema AttributeName=passId,KeyType=HASH ^
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 ^
--billing-mode PROVISIONED

aws dynamodb create-table ^
--table-name Subscription ^
--attribute-definitions AttributeName=subscriptionId,AttributeType=S ^
--key-schema AttributeName=subscriptionId,KeyType=HASH ^
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 ^
--billing-mode PROVISIONED

aws dynamodb create-table ^
--table-name SubscriptionDetails ^
--attribute-definitions AttributeName=subscriptionDetailsId,AttributeType=S ^
--key-schema AttributeName=subscriptionDetailsId,KeyType=HASH ^
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 ^
--billing-mode PROVISIONED

@flickkshitij
Copy link
Contributor Author

image

private PassType passType;
private Integer numberOfGames;
private Integer validityPeriodInDays;
private String createdDate;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to long type.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for lastUpdateDate.

Then we can set it using final long currentTime = new Date().getTime();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants