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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$mTj6Z.FmbmjNByVZO8a//UWmfwFkOVrd0gTOe6no.jh57V6T2SfCt','user','ak_89c943ab60933e15','2023-11-24 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$.cVIC56VVJAx6xAH7/LK/ceUF9nlj6oJ9PlvNzz8meCj0mPshrXOP','admin','ak_eb62c0580499b0b7','2023-10-16 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$H5WplY61GmGGt4YCgboah.vWCYFTc3nM6H7rxXJUTA.BDQ8fd85cz','user','ak_b5fb06da2dd58301','2023-01-11 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$YZnH256UB5iIOz6BwLMSMAu5G2Dcf62hC7IFK0tvUxE8kJgapV9gk','user','ak_20144ac6499cb0f4','2023-11-12 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$ZjoSXEGfkvchzdPF7go1dfIFKVS267EFdt55N8RTyt0x.3uDCb/KB','user','ak_246d5b712efe4b36','2023-02-03 10:04: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=17121;

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


