Files
crm.clientright.ru/modules/Services/schema.xml

38 lines
1.3 KiB
XML
Executable File

<?xml version='1.0'?>
<schema>
<tables>
<table>
<name>vtiger_service</name>
<sql><![CDATA[CREATE TABLE `vtiger_service` (
`serviceid` int(11) NOT NULL,
`service_no` varchar(100) NOT NULL,
`servicename` varchar(50) NOT NULL,
`servicecategory` varchar(200) DEFAULT NULL,
`qty_per_unit` decimal(11,2) DEFAULT '0.00',
`unit_price` decimal(25,8) DEFAULT NULL,
`sales_start_date` date DEFAULT NULL,
`sales_end_date` date DEFAULT NULL,
`start_date` date DEFAULT NULL,
`expiry_date` date DEFAULT NULL,
`discontinued` int(1) NOT NULL DEFAULT '0',
`service_usageunit` varchar(200) DEFAULT NULL,
`website` varchar(100) DEFAULT NULL,
`taxclass` varchar(200) DEFAULT NULL,
`currency_id` int(19) NOT NULL DEFAULT '1',
`commissionrate` decimal(7,3) DEFAULT NULL,
`unit_code` varchar(100) DEFAULT NULL,
PRIMARY KEY (`serviceid`),
CONSTRAINT `fk_1_vtiger_service` FOREIGN KEY (`serviceid`) REFERENCES `vtiger_crmentity` (`crmid`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8]]></sql>
</table>
<table>
<name>vtiger_servicecf</name>
<sql><![CDATA[CREATE TABLE `vtiger_servicecf` (
`serviceid` int(19) NOT NULL DEFAULT '0',
`tags` varchar(1) DEFAULT NULL,
PRIMARY KEY (`serviceid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8]]></sql>
</table>
</tables>
</schema>