✏️ 正在编辑: 042.sql
路径:
/srv/systems_dir/yuppiecred-bkp/data/database/042.sql
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
CREATE TABLE IF NOT EXISTS `tb_comissionamento_grupo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `banco_id` int(11) NOT NULL, `grupo_id` int(11) NOT NULL, `tabela_id` int(11) DEFAULT NULL, `convenio_id` int(11) NOT NULL, `produto` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `prazo` int(11) NOT NULL, `valor_de` decimal(15,2) DEFAULT NULL, `valor_a` decimal(15,2) DEFAULT NULL, `excluido` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `grupo_id` (`grupo_id`,`prazo`), KEY `produto` (`produto`), KEY `excluido` (`excluido`), KEY `banco_id` (`banco_id`), KEY `convenio_id` (`convenio_id`), KEY `tabela_id` (`tabela_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; CREATE TABLE IF NOT EXISTS `tb_comissionamento_grupo_percentual` ( `id` int(11) NOT NULL AUTO_INCREMENT, `comissionamento_id` int(11) NOT NULL, `data_inicial` date NOT NULL, `data_final` date DEFAULT NULL, `comissao` decimal(15,2) NOT NULL, `bonus` decimal(15,2) DEFAULT NULL, `excluido` tinyint(4) NOT NULL, PRIMARY KEY (`id`), KEY `comissionamento_id` (`comissionamento_id`), KEY `index1` (`data_inicial`,`data_final`,`excluido`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Restrições para dumps de tabelas -- -- -- Restrições para tabelas `tb_comissionamento_grupo_percentual` -- ALTER TABLE `tb_comissionamento_grupo_percentual` ADD CONSTRAINT `tb_comissionamento_grupo_percentual_ibfk_2` FOREIGN KEY (`comissionamento_id`) REFERENCES `tb_comissionamento_grupo` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
💾 保存文件
← 返回文件管理器