Files
Chevereto/app/schemas/mysql-5/categories.sql

10 lines
441 B
MySQL
Raw Normal View History

2022-11-30 12:33:23 +00:00
DROP TABLE IF EXISTS `%table_prefix%categories`;
CREATE TABLE `%table_prefix%categories` (
`category_id` bigint(32) NOT NULL AUTO_INCREMENT,
`category_name` varchar(32) NOT NULL,
2024-10-24 14:11:04 +00:00
`category_url_key` varchar(32) COLLATE utf8mb4_bin NOT NULL,
`category_description` text,
2022-11-30 12:33:23 +00:00
PRIMARY KEY (`category_id`),
UNIQUE KEY `url_key` (`category_url_key`) USING BTREE
) ENGINE=%table_engine% DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;