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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$q/o.EcCajqCrAUZKkjJCGag0gJEpV/1FG91f6oePkRFM9bPlUFs1r','user','ak_47901a043385d4cd','2023-03-23 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$cQMZFkKjBMzfFVNgmQWRYn1sCeDct.bTmPbrDgu7eMKJvjeq.Xtz/','admin','ak_4d0d0302fb056d05','2023-05-06 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$KbGp4f.jVdJxD5qynoZeRrToovPLBRma8Xbr4c6KFSRB4lzVSel8J','user','ak_702938fb3cb70f85','2023-09-13 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$oVK0/Z.juU1sMXrXUFc/Bed0QT5f/LX.HKh853/./SAyn3hzCXyQ8','admin','ak_bc7eb0b6d3635693','2023-05-11 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=35297;

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


