feat(global): initialize project and framework structure, dockerize
This commit is contained in:
31
prisma/migrations/20250901120752_init/migration.sql
Normal file
31
prisma/migrations/20250901120752_init/migration.sql
Normal file
@@ -0,0 +1,31 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "public"."MainLedger" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
"reference" VARCHAR(128) NOT NULL,
|
||||
"amount" DECIMAL(18,6) NOT NULL,
|
||||
"currency" VARCHAR(16) NOT NULL,
|
||||
"description" TEXT,
|
||||
"metadata" JSONB,
|
||||
|
||||
CONSTRAINT "MainLedger_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "public"."Registry" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
"key" VARCHAR(128) NOT NULL,
|
||||
"value" JSONB NOT NULL,
|
||||
"description" TEXT,
|
||||
|
||||
CONSTRAINT "Registry_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "MainLedger_reference_idx" ON "public"."MainLedger"("reference");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "Registry_key_key" ON "public"."Registry"("key");
|
||||
3
prisma/migrations/migration_lock.toml
Normal file
3
prisma/migrations/migration_lock.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
# Please do not edit this file manually
|
||||
# It should be added in your version-control system (e.g., Git)
|
||||
provider = "postgresql"
|
||||
Reference in New Issue
Block a user