From 8d8ea5b85cc673edafbea6654bcd6cd34c5fb77c Mon Sep 17 00:00:00 2001 From: jim winstead Date: Mon, 20 Feb 2017 18:53:45 -0800 Subject: [PATCH] Add created and modified timestamps to person --- scat.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scat.sql b/scat.sql index 6c1f9e58c..55fb8ed7b 100644 --- a/scat.sql +++ b/scat.sql @@ -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; @@ -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