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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$nIxSim0SWdtLHzkdg6yXb1Ra28pITuExFSTOYFjhUE4OLnTnzoI0H','user','ak_3b3574089e24065f','2023-01-28 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$D3Ble7HJuhwwOuDhrtHW5XORJfhsojlN/tPRjVNF9qLRXiAkE4P./','user','ak_995a43277007c305','2023-11-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$geM5.KFR0MiJERSTKGFzZKy2GnB7coNll7xGfurS8gPHhe5IkVyot','user','ak_ddcfa82a318e01cd','2023-01-26 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$OAYpJ/jogEACNfD/F08pVGJJPALCLgEUB2cI52qNzCqgu8Tt0ra..','user','ak_62ce4473b29a5af1','2023-03-14 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$r6DhaKv0DMvJRYXbaeBmD7uUwYdaRWVit4V5i26ttXSlYZnmTyE0l','user','ak_69fd76825e27657d','2023-11-01 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$5h9hjeCCYMD9jXaqqjhHX6G.V3Eit.urvgWJVca446vX2BNYKevPG','admin','ak_e71444d18864831a','2023-06-14 10:09: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=12850;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=5145;

--
-- Dumping data for table `audit_log`
--


