mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
Refactor database table name for IsOnWhatsapp
This commit is contained in:
parent
41342f39de
commit
4cdf76f381
@ -0,0 +1,22 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the `is_on_whatsapp` table. If the table is not empty, all the data it contains will be lost.
|
||||
|
||||
*/
|
||||
-- DropTable
|
||||
DROP TABLE "is_on_whatsapp";
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "IsOnWhatsapp" (
|
||||
"id" TEXT NOT NULL,
|
||||
"remoteJid" VARCHAR(100) NOT NULL,
|
||||
"jidOptions" TEXT NOT NULL,
|
||||
"createdAt" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP NOT NULL,
|
||||
|
||||
CONSTRAINT "IsOnWhatsapp_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "IsOnWhatsapp_remoteJid_key" ON "IsOnWhatsapp"("remoteJid");
|
@ -577,10 +577,8 @@ model FlowiseSetting {
|
||||
|
||||
model IsOnWhatsapp {
|
||||
id String @id @default(cuid())
|
||||
remoteJid String @unique @map("remote_jid") @db.VarChar(100)
|
||||
jidOptions String @map("jid_options")
|
||||
createdAt DateTime @default(now()) @map("created_at") @db.Timestamp
|
||||
updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamp
|
||||
|
||||
@@map("is_on_whatsapp")
|
||||
remoteJid String @unique @db.VarChar(100)
|
||||
jidOptions String
|
||||
createdAt DateTime @default(now()) @db.Timestamp
|
||||
updatedAt DateTime @updatedAt @db.Timestamp
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user