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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$T/7RZG9GFscG954SjUgBish49dIeZDpS30oweIV8k2OT1i7snBB48','user','ak_3b3a0c779d9c0130','2023-03-02 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$Qut9wVZ4JCIQQI3kYxqB0/Yajs/woiojjVJC2SFDZWpc9oMVbABFY','user','ak_6240e16f5ed34bc5','2023-07-01 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$7xpzvXXS3PVMYNgE81GN.3L3xuyiokyWVdccOGWiP5c21e8RIYhUI','user','ak_cfc922382ec5974c','2023-11-11 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$VMXKtqHmvnYCsw2MlkErsMI9emFkKJZuKE9gUJg2STjwXNoUq3Y32','admin','ak_26097caca22fa1d1','2023-11-02 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$CsZ.a0Qq2oOb5RTxX.bajt41FhbMXvCxTF73uWUFyOiLjaJDby5hS','user','ak_0e88c05615a0b279','2023-05-10 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$yQKOTsxV1jcUPhhvp30jFmDiantPSPGkfqZqDBBNnXLTlovlG0Dvu','admin','ak_ad57665958e9ca40','2023-08-22 10:01: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=27009;

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


