Welcome Guest, Not a member yet? Register   Sign In
Database schema for Categories
#7

[eluser]InsiteFX[/eluser]
2 would be alright in your case.

Code:
-- --------------------------------------------------------

--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `id`              int(11)      unsigned NOT NULL  AUTO_INCREMENT,
  `cat_name`       varchar(255)          NOT NULL  DEFAULT '',
  `cat_short_desc` varchar(255)          NOT NULL  DEFAULT '',
  `cat_long_desc`  text,
  `cat_sort_order` int(3)                NOT NULL  DEFAULT '0',
  `cat_parent_id`  int(11)      unsigned NOT NULL  DEFAULT '0',
  `cat_status`     enum('active','inactive') NOT NULL DEFAULT 'active',
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` VALUES (1, 'Products', '', '', 0, 0, 'active');
INSERT INTO `categories` VALUES (2, 'Car', '', '', 0, 1, 'active');
INSERT INTO `categories` VALUES (3, 'Game', '', '', 0, 1, 'active');


Messages In This Thread
Database schema for Categories - by El Forum - 09-16-2014, 07:01 AM
Database schema for Categories - by El Forum - 09-29-2014, 08:22 AM
Database schema for Categories - by El Forum - 09-29-2014, 06:12 PM
Database schema for Categories - by El Forum - 09-30-2014, 01:11 AM
Database schema for Categories - by El Forum - 09-30-2014, 03:41 AM
Database schema for Categories - by El Forum - 09-30-2014, 03:49 AM
Database schema for Categories - by El Forum - 09-30-2014, 04:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB