/*
  Warnings:

  - You are about to alter the column `ir` on the `invoices` table. The data in that column could be lost. The data in that column will be cast from `Decimal(10,0)` to `Decimal`.
  - You are about to alter the column `cofins` on the `invoices` table. The data in that column could be lost. The data in that column will be cast from `Decimal(10,0)` to `Decimal`.
  - You are about to alter the column `pis` on the `invoices` table. The data in that column could be lost. The data in that column will be cast from `Decimal(10,0)` to `Decimal`.
  - You are about to alter the column `csll` on the `invoices` table. The data in that column could be lost. The data in that column will be cast from `Decimal(10,0)` to `Decimal`.
  - You are about to alter the column `iss` on the `invoices` table. The data in that column could be lost. The data in that column will be cast from `Decimal(10,0)` to `Decimal`.
  - Added the required column `service_taker` to the `service_takers_council_details` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE `invoices` MODIFY `ir` DECIMAL NOT NULL,
    MODIFY `cofins` DECIMAL NOT NULL,
    MODIFY `pis` DECIMAL NOT NULL,
    MODIFY `csll` DECIMAL NOT NULL,
    MODIFY `iss` DECIMAL NOT NULL;

-- AlterTable
ALTER TABLE `service_takers_council_details` ADD COLUMN `service_taker` INTEGER NOT NULL;

-- AddForeignKey
ALTER TABLE `service_takers_council_details` ADD CONSTRAINT `service_takers_council_details_service_taker_fkey` FOREIGN KEY (`service_taker`) REFERENCES `service_takers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
