Skip to content

Commit

Permalink
Remove binary gradle files and add initial dabatase structure
Browse files Browse the repository at this point in the history
  • Loading branch information
victuxbb committed Feb 8, 2019
1 parent 41215a9 commit 4904587
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ gradle/wrapper/gradle-wrapper.properties

#IDE
.idea
out/
Binary file removed .gradle/4.10.2/fileChanges/last-build.bin
Binary file not shown.
Binary file removed .gradle/4.10.2/fileHashes/fileHashes.lock
Binary file not shown.
Empty file removed .gradle/4.10.2/gc.properties
Empty file.
Empty file removed .gradle/vcs-1/gc.properties
Empty file.
20 changes: 19 additions & 1 deletion src/main/resources/import.cql
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
CREATE KEYSPACE tinyurl
WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 3};
WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 3};

USE tinyurl;

CREATE TABLE URL (
hash text PRIMARY KEY,
original_url text,
creation_date timestamp,
expiration_date timestamp,
user_id int
) WITH comment='Urls';

CREATE TABLE User (
id int PRIMARY KEY,
name text,
email text,
creation_date timestamp,
last_login timestamp
) WITH comment='Users';

0 comments on commit 4904587

Please sign in to comment.