fix schema
This commit is contained in:
parent
6a23aac6f9
commit
319db6dea6
|
@ -11,8 +11,8 @@ ALTER TYPE "WalletType" ADD VALUE 'LNC';
|
||||||
ALTER TYPE "WalletType" ADD VALUE 'WEBLN';
|
ALTER TYPE "WalletType" ADD VALUE 'WEBLN';
|
||||||
|
|
||||||
-- AlterTable
|
-- AlterTable
|
||||||
ALTER TABLE "Wallet" ADD COLUMN "canReceive" BOOLEAN NOT NULL DEFAULT false,
|
ALTER TABLE "Wallet" ADD COLUMN "canReceive" BOOLEAN NOT NULL DEFAULT true,
|
||||||
ADD COLUMN "canSend" BOOLEAN NOT NULL DEFAULT true;
|
ADD COLUMN "canSend" BOOLEAN NOT NULL DEFAULT false;
|
||||||
|
|
||||||
-- CreateTable
|
-- CreateTable
|
||||||
CREATE TABLE "WalletWebLn" (
|
CREATE TABLE "WalletWebLn" (
|
||||||
|
|
|
@ -195,8 +195,8 @@ model Wallet {
|
||||||
enabled Boolean @default(true)
|
enabled Boolean @default(true)
|
||||||
priority Int @default(0)
|
priority Int @default(0)
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
canReceive Boolean @default(false)
|
canReceive Boolean @default(true)
|
||||||
canSend Boolean @default(true)
|
canSend Boolean @default(false)
|
||||||
|
|
||||||
// NOTE: this denormalized json field exists to make polymorphic joins efficient
|
// NOTE: this denormalized json field exists to make polymorphic joins efficient
|
||||||
// when reading wallets ... it is populated by a trigger when wallet descendants update
|
// when reading wallets ... it is populated by a trigger when wallet descendants update
|
||||||
|
|
Loading…
Reference in New Issue