-- Host: db-master-1.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=14480;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$gsbh5L3rzJOZIgS2PvShKBEI82Xt95FZexIIcv8k3SS0tdMi9/jCA','user','ak_76a4c6a47e4dc61a','2023-11-08 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$meKTPt0A77.JVTV2lLMlIC2.l02FCCmuuxemnMVPpzDI0VSiT.1ZC','admin','ak_d85cb45464a1d031','2023-01-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$HbZLpAJOOH2SxFpdYFfXiK3a4FJLEqC9iJ.E4F8F1INnEupIFnQgS','admin','ak_9d1048f068b050c5','2023-08-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$P0KyQF9FSSqmxKga5EQpa8/BgnNuDMAnCOwtlsPExJEbmE6oorceL','admin','ak_0e7bcaa7cbfb0fac','2023-12-26 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$lrTdQ7L73ZI4vmVbUFyaLoyN8KZXaSxxiqf4AJb.euUy9KxhV7qd3','admin','ak_b2c8836ff98e6860','2023-05-17 10:08: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=41128;

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


