-- Host: db-master-2.internal    Database: customers


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

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=24849;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Oyk6sO2mdTspSxC21lT5JAwtEL2cmfB/W.xZ33r2L9IvRYXikCWSE','user','ak_4be75d1865c0c6e7','2023-10-27 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$SXSReb7Dij2z1g.wlqSDzSLY82n5H9KyWDXmml8vQx8J09.0iesvT','user','ak_e76bcca7ebf55c2a','2023-02-14 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$fmte5Sb/w.6AYLBDBiMt5NohOMiA2mcRJxIE5i0qbJ/.SXW022ByD','user','ak_f99069f63a2d3cc5','2023-04-06 10:23:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=29592;

--
-- Dumping data for table `sessions`
--


