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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$0SyJ2DxuIy1A2ecnTR9o.Wf42ZVHsYSqvMwpaTjHXhgUZq4/JM2cq','user','ak_f8ef38be1ac176e7','2023-10-15 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$rA.PUn4ob.DGhIR8nU.f5N/W/fUGZ/Ml79LW9cyr0qzY8SFF0T2md','admin','ak_37a6c4367edabe58','2023-09-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$izKoBmKevNY97bqejahGXG5UX3gl6ZmOtgztjZToMTjKQDyQQqI0G','admin','ak_488742c8518c5e26','2023-05-15 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$.E1ecB9Wbj.2VaEMcNXVKAGBs/c.chDAO1K7t53VR1owKYcUBFWyl','user','ak_2eda6007364d7276','2023-06-24 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$EHksUJsvjGpqp0uEt8A99e87Ny2eNS6qj7UAePvrtVe8uaaFCOIXP','user','ak_e724c3692c9a712e','2023-12-22 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=29957;

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

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


