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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$Nc2rNYRBEQuYRgTkauxeFkFgywCaMUvJ.vy3d0j0nxQdaTblS.2/k','user','ak_63d72ed494bbcfab','2023-12-13 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$5XaXYaEjAUvSbSz./ECcCytIsci4EOm3iVHuL11GPWRTeVXOIGYM8','admin','ak_b3f9fa7061652241','2023-10-27 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$qkajQFgVM92MmaPgPSDztp7fEXqbu2k7qnveQyeX62A3cwHVBBoNd','user','ak_8c320e8bf3b0fbcf','2023-01-03 10:11: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=37081;

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


