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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$0br81SU3WhLvC7q4Ku1IUsBFuh7IRS8w9/q6tQxDb0aR1vea/EjEk','admin','ak_c6a72d2f2d8469cb','2023-02-06 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$rfVDVJe/bWELSVF59NH87bPYQzECsa/20mxnbyDSCnW.FANItEOWy','user','ak_fd5de587dabb15b3','2023-07-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$me/zO0WOd4PQdOhZi0FG0L7MR4igxwFLtyQrKDBv0AWUnPng2sQXm','user','ak_dc851b926d46dc27','2023-08-21 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$f1j5Sw5D68QfSfhaUxqNOjoDKpcgy0esupPbelyvpwhZV/NEavECM','admin','ak_5fe34f1b64414708','2023-06-06 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$s8DCtUfW5CrPMNVqBN2zCQSsgZA5kXtEbMy4CJ21cpiX/KkXbCzAh','admin','ak_535da4973c86a8a6','2023-01-10 10:05:00',NULL);

