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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$S8LWJzBKaGBrGIrL502AK8Ogsc3Z12vpOJ.u1BsVme9DHarCNSoh4','admin','ak_ebb0c27029a89490','2023-08-13 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$oEwml9zxOhvcEwOftqgtpNujEDM.sq47K6ogEtQ9dffS9S3bIfChn','user','ak_bed1f8a64a57bd1b','2023-02-21 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$gS3zxdUCd1.Yf8J4Pk55xoIwnjXUrh17xb7jLncj1lgteV/py0WBU','user','ak_5ff3e0ab667a2141','2023-03-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$HfPylRd6F6EOIvQcUVIjIZ1Lm71vBHxjc5Q.X0r//rWn8CX27ewv2','admin','ak_e3a794c6db70854c','2023-08-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$2PGb/lUUdzdt1su.zZ3ZGhB3vd0o25uG4/6jJOi8CPIHvyUGFEwXp','user','ak_f84ee14158f25681','2023-10-17 10:06:00',NULL);

