-
Notifications
You must be signed in to change notification settings - Fork 0
/
cql_commands.txt
72 lines (62 loc) · 1.93 KB
/
cql_commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
CREATE KEYSPACE crypton
WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 2 };
//NEWS CC TABLE
CREATE TABLE IF NOT EXISTS news_cc (
body TEXT,
categories list<text>,
downvotes TEXT,
guid TEXT,
id INT,
imageurl TEXT,
lang TEXT,
published_on TIMESTAMP,
source TEXT,
source_info_img TEXT,
source_info_lang TEXT,
source_info_name TEXT,
tags list<text>,
title TEXT,
upvotes INT,
url TEXT,
PRIMARY KEY (id)
)
CREATE TABLE IF NOT EXISTS all_coins (
Id INT,
Url TEXT,
ImageUrl TEXT,
Name TEXT,
Symbol TEXT,
CoinName TEXT,
FullName TEXT,
Algorithm TEXT,
FullyPremined INT,
TotalCoinSupply DOUBLE,
SortOrder INT,
Sponsored TEXT,
IsTrading TEXT,
TotalCoinsMined DOUBLE,
BlockNumber INT,
NetHashesPerSecond DOUBLE,
BlockReward FLOAT,
BlockTime INT,
PRIMARY KEY(I
CREATE TABLE top10data( maintainer, sortorder INT, symbol TEXT, coin_id INT, coinname TEXT, imageurl TEXT, firstalpha TEXT, PRIMARY KEY (maintainer,sortorder, symbol) );
CREATE TABLE IF NOT EXISTS team (
id uuid,
name TEXT,
email TEXT,
linkedin TEXT,
git TEXT,
imgurl TEXT,
PRIMARY KEY (id)
)
INSERT INTO team (id,name,email,linkedin,git,imgurl) VALUES (uuid(),'Mehak Parashar','[email protected]','https://www.linkedin.com/in/mehakparashar','na','mparasha.png');
INSERT INTO team (id,name,email,linkedin,git,imgurl) VALUES (uuid(),'Tushar Chand Kapoor','[email protected]','https://www.linkedin.com/in/tusharchandkapoor','https://github.com/tusharck','tkapoor.png');
INSERT INTO team (id,name,email,linkedin,git,imgurl) VALUES (uuid(),'Syed Ikram','[email protected]','https://www.linkedin.com/in/iksyed','na','sikram.png');
CREATE TABLE IF NOT EXISTS sentimentprice (
id INT,
price FLOAT,
symbol TEXT,
PRIMARY KEY (id)
);
INSERT INTO sentimentprice (id, price, symbol) VALUES (1182,0.0,'BTC');