SQL test case

This commit is contained in:
Jesse Portnoy
2023-08-05 21:03:59 +01:00
parent d888137b13
commit 0c32bbe78b
+18
View File
@@ -0,0 +1,18 @@
CREATE TABLE IF NOT EXISTS `system_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(50) NOT NULL,
`first_name` varchar(40) NOT NULL,
`last_name` varchar(40) NOT NULL,
`sha1_password` varchar(40) NOT NULL,
`salt` varchar(32) NOT NULL,
`created_by` int(11) DEFAULT NULL,
`status` tinyint(4) NOT NULL,
`is_primary` tinyint(4) DEFAULT '0',
`status_updated_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
`role` varchar(40) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `system_user_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;