Skip to content

Commit

Permalink
Add created and modified timestamps to person
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwins committed Feb 21, 2017
1 parent c6f90bb commit 8d8ea5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scat.sql
Expand Up @@ -176,6 +176,8 @@ CREATE TABLE `person` (
`payment_account_id` varchar(50) DEFAULT NULL,
`active` tinyint(1) NOT NULL,
`deleted` tinyint(4) NOT NULL DEFAULT '0',
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `loyalty_number` (`loyalty_number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Expand Down Expand Up @@ -450,4 +452,4 @@ DELIMITER ;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2017-01-26 16:43:03
-- Dump completed on 2017-02-20 18:52:55

0 comments on commit 8d8ea5b

Please sign in to comment.