Create Table Query with Unique Key Constraints
CREATE TABLE `table_name` (
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`brand_id` int(11) DEFAULT 2,
`store_id` int(11) NOT NULL UNIQUE,
`merchant_id` int(11) NOT NULL UNIQUE,
`charges` text CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT current_timestamp(),
`modified_at` datetime DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Comments
Post a Comment