-- CreateEnum: the three coins. Silver is worth 0.1 gold, copper 0.01 gold. CREATE TYPE "Currency" AS ENUM ('GOLD', 'SILVER', 'COPPER'); -- AlterTable: a character's purse holds each coin separately ALTER TABLE "characters" ADD COLUMN "silver" INTEGER NOT NULL DEFAULT 0; ALTER TABLE "characters" ADD COLUMN "copper" INTEGER NOT NULL DEFAULT 0; -- AlterTable: every ledger entry and coin reward is in one coin; all existing ones are gold ALTER TABLE "gold_transactions" ADD COLUMN "currency" "Currency" NOT NULL DEFAULT 'GOLD'; ALTER TABLE "encounter_rewards" ADD COLUMN "currency" "Currency" NOT NULL DEFAULT 'GOLD';