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


--
-- 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=45259;

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


--
-- 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=36660;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$ifQNKCdeCJZXaXzfN6ng/5CzFj/oBPYkvfwzpfduIiVK19CWnEjbR','user','ak_19aa1d539b8b164b','2023-09-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$s4loJlVdoySEBXPe/PKs/j9nq72ii9KTzlfFjUac2PNM0yJcHNRjv','user','ak_64af9786346886dc','2023-08-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$rUkLEgQVlKL9UJny9luh4xsuEohSkVHMV4w.X9HLaTlfLl5HvlkPk','user','ak_39f2a934e39b1638','2023-05-20 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$lGmVWUfLQX5h8MAkCGodaZoYDcrLqQWA8OqLToOBaUAcXGnJWTXGd','user','ak_535b5972dbbe464c','2023-05-21 10:19:00',NULL);

