Advertisement
Guest User

Untitled

a guest
Feb 10th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.79 KB | None | 0 0
  1. CREATE TABLE `city` (
  2.     `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  3.     `state_id` INT(10) UNSIGNED NOT NULL,
  4.     `name` VARCHAR(512) NOT NULL,
  5.     `slug` VARCHAR(512) NOT NULL,
  6.     `total_branches` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  7.     `total_banks` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
  8.     `seo_title` TEXT NOT NULL,
  9.     `seo_description` TEXT NOT NULL,
  10.     PRIMARY KEY (`id`),
  11.     INDEX `city_state_fk` (`state_id`),
  12.     INDEX `total_branches` (`total_branches`),
  13.     INDEX `total_banks` (`total_banks`),
  14.     INDEX `slug` (`slug`) USING HASH,
  15.     INDEX `name_idx` (`name`) USING BTREE,
  16.     FULLTEXT INDEX `name` (`name`),
  17.     CONSTRAINT `city_state_fk` FOREIGN KEY (`state_id`) REFERENCES `state` (`id`) ON UPDATE NO ACTION ON DELETE NO ACTION
  18. )
  19. COLLATE='utf8_general_ci'
  20. ENGINE=InnoDB
  21. AUTO_INCREMENT=29726
  22. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement