This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # src/main/resources/db/postgres/V1__create_tables_account_email_wallet_accountwallet_walletoperationhistories.sql # web/src/pages/wallet/[wallet]/settings/issuers/index.vue
- Loading branch information
Showing
18 changed files
with
309 additions
and
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
WALLETKIT_PORT=7000 | ||
WALLET_FRONTEND_PORT=3000 | ||
WALLET_BACKEND_PORT=4545 | ||
WEB_PORTAL_PORT=4000 | ||
VC_REPO_PORT=5000 | ||
ISSUER_PORT=8000 | ||
VERIFIER_PORT=9000 | ||
WALLET_BACKEND_PORT=4545 | ||
WALLET_FRONTEND_PORT=3000 | ||
HOSTNAME=host.docker.internal |
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
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 @@ | ||
baseUrl = "localhost:8000" |
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,2 @@ | ||
webHost = "0.0.0.0" | ||
webPort = 3000 |
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 @@ | ||
baseUrl = "localhost:9000" |
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,2 @@ | ||
webHost = "0.0.0.0" | ||
webPort = 3000 |
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 +1,2 @@ | ||
# database = "db.postgres" | ||
database = "db.sqlite" |
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,13 @@ | ||
hikariDataSource { | ||
jdbcUrl = "jdbc:postgresql://postgresdb:5432/postgres" | ||
driverClassName = "org.postgresql.Driver" | ||
username = "postgres" | ||
password = "secret" | ||
transactionIsolation = "TRANSACTION_SERIALIZABLE" | ||
maximumPoolSize = 5 | ||
autoCommit = false | ||
dataSource { | ||
journalMode = WAL | ||
fullColumnNames = false | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
76 changes: 76 additions & 0 deletions
76
...ostgres/V1__create_tables_account_email_wallet_accountwallet_walletoperationhistories.sql
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,76 @@ | ||
-- ---------------------------------- | ||
-- Emails table | ||
-- ---------------------------------- | ||
CREATE TABLE IF NOT EXISTS "emails" | ||
( | ||
"id" UUID NOT NULL, | ||
"email" TEXT COLLATE pg_catalog."default" NOT NULL, | ||
"password" TEXT COLLATE pg_catalog."default" NOT NULL, | ||
CONSTRAINT "emails_pkey" PRIMARY KEY ("id"), | ||
CONSTRAINT "email" UNIQUE ("email") | ||
); | ||
-- ---------------------------------- | ||
-- Wallets table | ||
-- ---------------------------------- | ||
CREATE TABLE IF NOT EXISTS "wallets" | ||
( | ||
"id" UUID NOT NULL, | ||
"address" TEXT COLLATE pg_catalog."default" NOT NULL, | ||
"ecosystem" TEXT COLLATE pg_catalog."default" NOT NULL, | ||
CONSTRAINT "wallets_pkey" PRIMARY KEY ("id"), | ||
CONSTRAINT "address" UNIQUE ("address") | ||
); | ||
-- ---------------------------------- | ||
-- Accounts table | ||
-- ---------------------------------- | ||
CREATE TABLE IF NOT EXISTS "accounts" | ||
( | ||
"id" UUID NOT NULL, | ||
"email" UUID NULL, | ||
"wallet" UUID NULL, | ||
CONSTRAINT "accounts_pkey" PRIMARY KEY ("id"), | ||
CONSTRAINT "accounts_email_wallet_unique" UNIQUE ("email", "wallet") | ||
INCLUDE("email", "wallet"), | ||
CONSTRAINT "account_email_fk" FOREIGN KEY ("email") | ||
REFERENCES "emails" ("id") MATCH SIMPLE | ||
ON UPDATE CASCADE | ||
ON DELETE CASCADE, | ||
CONSTRAINT "account_wallet_fk" FOREIGN KEY ("wallet") | ||
REFERENCES "wallets" ("id") MATCH SIMPLE | ||
ON UPDATE CASCADE | ||
ON DELETE CASCADE | ||
); | ||
-- ---------------------------------- | ||
-- AccountWallets table | ||
-- ---------------------------------- | ||
CREATE TABLE IF NOT EXISTS "account_wallets" | ||
( | ||
"id" UUID NOT NULL, | ||
"account" UUID NOT NULL, | ||
"wallet" UUID NOT NULL, | ||
CONSTRAINT "account_wallets_pkey" PRIMARY KEY ("id"), | ||
CONSTRAINT "account_wallets_account_fk" FOREIGN KEY ("account") | ||
REFERENCES "accounts" ("id") MATCH SIMPLE | ||
ON UPDATE CASCADE | ||
ON DELETE CASCADE, | ||
CONSTRAINT "account_wallets_wallet_fk" FOREIGN KEY ("wallet") | ||
REFERENCES "wallets" ("id") MATCH SIMPLE | ||
ON UPDATE CASCADE | ||
ON DELETE CASCADE | ||
); | ||
-- ---------------------------------- | ||
-- WalletOperationHistories table | ||
-- ---------------------------------- | ||
CREATE TABLE IF NOT EXISTS "wallet_operation_histories" | ||
( | ||
"id" UUID NOT NULL, | ||
"account" UUID NOT NULL, | ||
"timestamp" TEXT COLLATE pg_catalog."default" NOT NULL, | ||
"operation" TEXT COLLATE pg_catalog."default" NOT NULL, | ||
"data" TEXT COLLATE pg_catalog."default" NOT NULL, | ||
CONSTRAINT "wallet_operation_histories_pkey" PRIMARY KEY ("id"), | ||
CONSTRAINT "wallet_operation_histories_account_fk" FOREIGN KEY ("account") | ||
REFERENCES "accounts" ("id") MATCH SIMPLE | ||
ON UPDATE CASCADE | ||
ON DELETE CASCADE | ||
); |
Oops, something went wrong.