Created
December 16, 2014 20:58
-
-
Save marceloandrader/d0870e43887307f271f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `account_preferences` ( | |
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, | |
`account_id` INT(10) UNSIGNED NOT NULL, | |
`first_name` VARCHAR(45) NULL, | |
`last_name` VARCHAR(45) NULL, | |
`details` TEXT NOT NULL, | |
`created_dt` DATETIME NULL, | |
`updated_dt` DATETIME NULL, | |
PRIMARY KEY (`id`), | |
INDEX `fk_account_preferences_1_idx` (`account_id` ASC), | |
CONSTRAINT `fk_account_preferences_1` | |
FOREIGN KEY (`account_id`) | |
REFERENCES `account` (`id`) | |
ON DELETE NO ACTION | |
ON UPDATE NO ACTION); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment