text: -- CreateEnum
  CREATE TYPE "Unit" AS ENUM ('UN', 'LT', 'KG', 'MT', 'CM', 'MM', 'ML', 'PC', 'KW');
  
  -- CreateTable
  CREATE TABLE "clients" (
      "id" TEXT NOT NULL,
      "name" TEXT NOT NULL,
      "address" TEXT NOT NULL,
      "complement" TEXT,
      "number" TEXT NOT NULL,
      "city" TEXT NOT NULL,
      "district" TEXT NOT NULL,
      "state" TEXT NOT NULL,
      "zipcode" TEXT NOT NULL,
      "create_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "update_at" TIMESTAMP(3),
  
      CONSTRAINT "clients_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "contacts" (
      "id" TEXT NOT NULL,
      "name" TEXT NOT NULL,
      "comments" TEXT,
      "create_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "update_at" TIMESTAMP(3),
      "fk_id_client" TEXT NOT NULL,
  
      CONSTRAINT "contacts_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "phones" (
      "id" TEXT NOT NULL,
      "number" TEXT NOT NULL,
      "comments" TEXT,
      "create_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "update_at" TIMESTAMP(3),
      "fk_id_contact" TEXT NOT NULL,
  
      CONSTRAINT "phones_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "products" (
      "id" TEXT NOT NULL,
      "name" TEXT NOT NULL,
      "price" DECIMAL(65,30) NOT NULL,
      "cost" DECIMAL(65,30),
      "percent" DECIMAL(65,30),
      "label" TEXT NOT NULL,
      "description" TEXT,
      "create_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "update_at" TIMESTAMP(3),
      "fk_id_client" TEXT NOT NULL,
  
      CONSTRAINT "products_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "compositions" (
      "id" TEXT NOT NULL,
      "name" TEXT NOT NULL,
      "quantity" DECIMAL(65,30) NOT NULL,
      "price" DECIMAL(65,30) NOT NULL,
      "unit" "Unit" NOT NULL DEFAULT E'UN',
      "create_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "update_at" TIMESTAMP(3),
      "fk_id_product" TEXT NOT NULL,
  
      CONSTRAINT "compositions_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "orders" (
      "id" TEXT NOT NULL,
      "control" SERIAL NOT NULL,
      "quantity" INTEGER NOT NULL,
      "total" DECIMAL(65,30) NOT NULL DEFAULT 0.00,
      "date_ready" TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP,
      "date_out" TIMESTAMP(3),
      "name_collector" TEXT,
      "comments" TEXT,
      "create_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "update_at" TIMESTAMP(3),
      "fk_id_client" TEXT NOT NULL,
      "fk_id_product" TEXT NOT NULL,
  
      CONSTRAINT "orders_pkey" PRIMARY KEY ("id")
  );
  
  -- AddForeignKey
  ALTER TABLE "contacts" ADD CONSTRAINT "contacts_fk_id_client_fkey" FOREIGN KEY ("fk_id_client") REFERENCES "clients"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "phones" ADD CONSTRAINT "phones_fk_id_contact_fkey" FOREIGN KEY ("fk_id_contact") REFERENCES "contacts"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "products" ADD CONSTRAINT "products_fk_id_client_fkey" FOREIGN KEY ("fk_id_client") REFERENCES "clients"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "compositions" ADD CONSTRAINT "compositions_fk_id_product_fkey" FOREIGN KEY ("fk_id_product") REFERENCES "products"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "orders" ADD CONSTRAINT "orders_fk_id_client_fkey" FOREIGN KEY ("fk_id_client") REFERENCES "clients"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "orders" ADD CONSTRAINT "orders_fk_id_product_fkey" FOREIGN KEY ("fk_id_product") REFERENCES "products"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  