--
-- Host: 127.0.0.1    Database: handsdb
-- ------------------------------------------------------


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int NOT NULL AUTO_INCREMENT,
  `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `full_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `department_id` int DEFAULT NULL,
  `auth_type` enum('AD','local') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'AD',
  `role` enum('admin','manager','user') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'user',
  `is_active` tinyint(1) DEFAULT '1',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'sbastola',NULL,'sbastola@fowler.ca','Suraj Bastola',NULL,'AD','user',1,'2025-11-27 15:10:37','2025-12-19 14:05:17'),(2,'tvanekelenburg',NULL,'tvanekelenburg@fowler.ca','Tina Van Ekelenburg',NULL,'AD','user',1,'2025-11-28 18:04:58','2025-12-16 17:14:07'),(3,'localadmin','$2y$10$DZT5UkihrqwPJ5zgj3m9ieVqzjBJTfsmJAutpVqqv5mdlaF/ZDnbG',NULL,'Local Admin',NULL,'local','admin',0,'2025-11-28 20:57:13','2025-11-28 20:58:30'),(4,'cdietl',NULL,'cdietl@fowler.ca','Cassie Dietl',NULL,'AD','user',1,'2025-12-01 18:08:23','2025-12-09 13:32:50'),(5,'pperrier',NULL,'pperrier@fowler.ca','Paul Perrier',NULL,'AD','user',1,'2025-12-09 21:40:36','2025-12-09 21:40:36'),(6,'cgreen',NULL,'cgreen@fowler.ca','Cody Green',2,'AD','user',1,'2025-12-15 15:23:27','2025-12-15 15:23:27');


