Open GratitudeToken opened 5 months ago
I think we can remove table and tables from the names at the end of each name.
I think we can remove table and tables from the names at the end of each name.
Y, I removed it from PG
This looks different now, I have changed it and I am using MYSQL.
We are using ScyllaDB now.
Example query:
SELECT column_name FROM table_name LIMIT 1; // selects first row from column from table.
To run scylla using docker:
docker run --name scylladb -p 9042:9042 -d scylladb/scylla
then login to cqlsh with default username and pass:
cqlsh -u cassandra -p cassandra
Change pass:
ALTER ROLE cassandra WITH PASSWORD = 'new_password';
I am defining the tables as I go with development:
NEXT STEP create the keyspace named genesis (This needs to be updated depending on the nodes added):
CREATE KEYSPACE genesis WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': 3};
To use the keyspace (the database):
USE genesis;
In ScyllaDB datacenter1 is the name of the local DB;
You may have to change:
nano etc/scylla/scylla.yaml
settings like this:
authenticator: PasswordAuthenticator authorizer: CassandraAuthorizer
TABLES STRUCTURE
You should also index email and username:
INSERT INTO progression (userid, titles, level, xp) VALUES(c4471371-b6af-4392-9746-5261271ec442, {'Newb'}, 1, 0);
CREATE INDEX ON pvt_app(PrivateKeyShare);
CREATE INDEX ON pvt_faceid(PrivateKeyShare);
2 types of requests identified so far:
ALL requests must first check the user_fault table before anything.
REGULAR REQUESTS Every regular request from the front-end that has to do with reading or writing data in genesis keyspace must pass the following validation schema:
BLOCKCHAIN REQUESTS Everything above plus the private key share or use FaceID feature