-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First test version of subscription plan API...
- Loading branch information
Showing
3 changed files
with
151 additions
and
9 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import pwd | ||
import os | ||
|
||
WalletAddress = "sent..." | ||
WalletName = "Name" | ||
HotWalletPW = "password" | ||
SQLAlchemyScrtKey = 'sql_scrt_key' | ||
MySQLUsername = 'username' | ||
MySQLPassword = 'password' | ||
MySQLDB = 'db_name' | ||
BYTES = 1073741824000 # 1 TB | ||
RPC = "https://rpc.mathnodes.com:443" | ||
CHAINID = "sentinelhub-2" | ||
KeyringDIR = "/home/" + str(pwd.getpwuid(os.getuid())[0]) | ||
LogDIR = '/home/' + str(pwd.getpwuid(os.getuid())[0]) + '/Logs' | ||
dbDIR = '/home/' + str(pwd.getpwuid(os.getuid())[0]) + '/dbs' | ||
sentinelhub = "/home/" + str(pwd.getpwuid(os.getuid())[0]) + "/go/bin/sentinelhub" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
--- Create Meile Plan Table | ||
|
||
CREATE TABLE meile_plans (uuid VARCHAR(100), subscription_id UNSIGNED BIGINT, plan_id UNSIGNED BIGINT, plan_name VARACHAR(256), plan_price UNSIGNED BIGINT, plan_denom VARCHAR(6), PRIMARY KEY(uuid)) | ||
CREATE TABLE meile_plans (uuid VARCHAR(100), subscription_id UNSIGNED BIGINT, plan_id UNSIGNED BIGINT, plan_name VARACHAR(256), plan_price UNSIGNED BIGINT, plan_denom VARCHAR(100), PRIMARY KEY(uuid)) | ||
|
||
--- Create Meile Subscriber Table | ||
CREATE TABLE meile_subscriptions (id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, uuid VARCHAR(100), wallet VARCHAR(100), subscription_id UNSIGNED BIGINT, plan_id UNSIGNED BIGINT, amt_paid DECIMAL(24,12), amt_denom VARCHAR(100), subscribe_date TIMSTAMP, subscription_duration UNSIGNED SMALLINT, expires TIMESTAMP, PRIMARY KEY(id)) |