first commit
This commit is contained in:
commit
c9fb67e751
423 files changed
+53287
No files matched your search
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `bairro` to the `clientes` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `cep` to the `clientes` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `cidade` to the `clientes` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `estado` to the `clientes` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `numero` to the `clientes` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "clientes" ADD COLUMN "bairro" TEXT NOT NULL,
|
||||
ADD COLUMN "cep" TEXT NOT NULL,
|
||||
ADD COLUMN "cidade" TEXT NOT NULL,
|
||||
ADD COLUMN "complemento" TEXT,
|
||||
ADD COLUMN "conjugeCpf" TEXT,
|
||||
ADD COLUMN "conjugeNome" TEXT,
|
||||
ADD COLUMN "contribuiPrevidencia" BOOLEAN NOT NULL DEFAULT false,
|
||||
ADD COLUMN "dataNascimento" TIMESTAMP(3),
|
||||
ADD COLUMN "declaraIR" BOOLEAN NOT NULL DEFAULT false,
|
||||
ADD COLUMN "estado" TEXT NOT NULL,
|
||||
ADD COLUMN "estadoCivil" TEXT,
|
||||
ADD COLUMN "instagram" TEXT,
|
||||
ADD COLUMN "nomeMae" TEXT,
|
||||
ADD COLUMN "nomePai" TEXT,
|
||||
ADD COLUMN "numero" TEXT NOT NULL,
|
||||
ADD COLUMN "orgaoEmissor" TEXT,
|
||||
ADD COLUMN "possuiFilhos" BOOLEAN NOT NULL DEFAULT false,
|
||||
ADD COLUMN "profissao" TEXT,
|
||||
ADD COLUMN "renda" DECIMAL(65,30),
|
||||
ADD COLUMN "rg" TEXT,
|
||||
ADD COLUMN "tipoPrevidencia" TEXT,
|
||||
ADD COLUMN "usaDNI" BOOLEAN NOT NULL DEFAULT false,
|
||||
ADD COLUMN "vinculoEmpregaticio" TEXT;
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "filhos" (
|
||||
"id" TEXT NOT NULL,
|
||||
"nome" TEXT NOT NULL,
|
||||
"dataNascimento" TIMESTAMP(3) NOT NULL,
|
||||
"clienteId" TEXT NOT NULL,
|
||||
|
||||
CONSTRAINT "filhos_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "filhos" ADD CONSTRAINT "filhos_clienteId_fkey" FOREIGN KEY ("clienteId") REFERENCES "clientes"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
Reference in new issue
Block a user