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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$gbpoERv08X89jwz5xGZ2SzccnSORpcjNwf6xzgMjO6VJicwSa7OvH','user','ak_a5d938e947b934a8','2023-07-25 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$pKptVgRrZlnmgNx4/sFwX2dbcYRecMmv2AePhEOnbPlNKAQ3Zyp/D','user','ak_fe86d21ead12985f','2023-02-08 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$uD4jy.RERs0s/WFHJ83j4qU0Ey5AjZVZW.C1Xts7SlkNyHR69Ry5P','user','ak_a535bd4c69e6c2de','2023-05-19 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$PmVlX58Z..NO/tr2tWCUvFTDa9N9l/.hwCe/pVRkYmNQCYTMViPCt','user','ak_71fa5a9e0ae3f171','2023-03-10 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$wte.f7skwLNnOf8k55Qj7L70lhJa0p7qvki1bjsrW4GzJ0zO9ZgNT','user','ak_42f9c50a388837d3','2023-08-25 10:02: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=5153;

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


