generated from Hbbb/go-backend-template
-
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.
Merge branch 'main' into electron-forge
- Loading branch information
Showing
11 changed files
with
120 additions
and
29 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,11 +1,14 @@ | ||
#/bin/sh | ||
#/bin/bash | ||
|
||
date=$(date +%Y-%m-%d) | ||
|
||
echo "----- [$date] ETL: start -----" >> budgeted-cron-log.log | ||
path="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
echo "The script is located in: $path" | ||
|
||
bin/budgeted-cli load plaid-data >> budgeted-cron-log.log | ||
bin/budgeted-cli load csv >> budgeted-cron-log.log | ||
bin/budgeted-cli load sqlite >> budgeted-cron-log.log | ||
echo "----- [$date] ETL: start -----" >> budgeted-cron-log.log | ||
$path/budgeted-cli load plaid-data >> budgeted-cron-log.log | ||
$path/budgeted-cli load csv >> budgeted-cron-log.log | ||
$path/budgeted-cli load sqlite >> budgeted-cron-log.log | ||
|
||
echo "----- [$date] ETL: complete -----" >> budgeted-cron-log.log |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
17 changes: 17 additions & 0 deletions
17
prisma/migrations/20240129234021_add_budgets/migration.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,17 @@ | ||
-- CreateTable | ||
CREATE TABLE "Budget" ( | ||
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
"name" TEXT NOT NULL, | ||
"amount" REAL NOT NULL, | ||
"range" INTEGER NOT NULL | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "BudgetRule" ( | ||
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
"budgetId" INTEGER NOT NULL, | ||
"column" TEXT NOT NULL, | ||
"operator" TEXT NOT NULL DEFAULT 'CONTAINS', | ||
"value" TEXT NOT NULL, | ||
CONSTRAINT "BudgetRule_budgetId_fkey" FOREIGN KEY ("budgetId") REFERENCES "Budget" ("id") ON DELETE RESTRICT ON UPDATE CASCADE | ||
); |
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