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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$QbOgRUPFcUdV8hi5YFj/ynxbtV4yiLnRQIExE4Y2JJ8eddHA9wI0L','admin','ak_5a85e8f17271d7f1','2023-12-07 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$nlflDDGtVIvsjn52cX8ebSVy6KzTbMFXeULev3jPbwjr/8W0.O0UG','user','ak_724ddc5fdd44f2a9','2023-08-25 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$prNUXxzH..MiBS90aR8WgXD0acOB1lGvD4N3DAzyaQyVYBaI89z7i','user','ak_adb507302c9c23b8','2023-01-27 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$zTo.MX7I8m/KquNuV4JAggg0A/d6Nmhi9dFwLThrIHI0xdj8wxzlV','admin','ak_2855b89049862dd4','2023-09-11 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$br5IxoR3jpyEts16xXkGEn6rvlB/2ZbwJwKfS1wLUShRd/gkCrsyJ','user','ak_7697d886bfc0f413','2023-01-14 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$U6.tp0.1kWOPo9eb0Umt79W.A4mZLk/5Bfd70S7L7CFYprwzfCnbZ','user','ak_f63caf452a53d5e7','2023-05-17 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@internal.io','$2b$12$Ak4ZAQDJIp4GlLrMsRhCaK0s2uKoN1SmQcPJFFWbzj9Crl/d88GRe','admin','ak_eae7e358ccb4db73','2023-05-28 10:05:00',NULL);

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

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


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

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


