b949500482
- Created CreateCustomerIndividualDto for individual customer data with fields: first_name, last_name, national_code, postal_code, is_favorite, and economic_code. - Created CreateCustomerLegalDto for legal customer data with fields: company_name, economic_code, registration_number, and postal_code.
21 lines
707 B
SQL
21 lines
707 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `description` on the `sales_invoices` table. All the data in the column will be lost.
|
|
|
|
*/
|
|
-- AlterTable
|
|
ALTER TABLE `customers` MODIFY `type` ENUM('INDIVIDUAL', 'LEGAL', 'UNKNOWN') NOT NULL;
|
|
|
|
-- AlterTable
|
|
ALTER TABLE `sales_invoice_items` ADD COLUMN `notes` TEXT NULL;
|
|
|
|
-- AlterTable
|
|
ALTER TABLE `sales_invoice_payments` MODIFY `payment_method` ENUM('TERMINAL', 'CASH', 'SET_OFF', 'CARD', 'BANK', 'CHECK', 'OTHER') NOT NULL;
|
|
|
|
-- AlterTable
|
|
ALTER TABLE `sales_invoices` DROP COLUMN `description`,
|
|
ADD COLUMN `invoice_date` TIMESTAMP(0) NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
ADD COLUMN `notes` TEXT NULL,
|
|
ADD COLUMN `unknown_customer` JSON NULL;
|