-- Host: db-master-6.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$fnhdQZpuq.UA8wxVqOWCcp78a3k42TirE9bH8pOavXvL1Imyp3Fm2','user','ak_48f9a18bc44add16','2023-10-27 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$pZgD4QcFyFzH8EyxfbSjPtkgdSTy4ZOJe.1VDxdT9OnDVLQ1PjFfo','user','ak_294da8b717d96abf','2023-04-20 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$7xjBbcJu2/lqIzur7qPTKwENTvB8Qb1gWh6MK20G/gFdJR2/iaMr0','user','ak_4b0544ef5c162f95','2023-09-20 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Sc3Aj9W4O2r1c5fUzLTLlEDU9NArkHL88RkXbMKsjCryl2FlOOTpr','user','ak_a87fa1150a79624f','2023-09-07 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$n39Aa4G1TsC2x4wKgNYFTK/g4pzP2o9mLdBHLoWrRUPqP8yUIppx.','user','ak_5aeb15f460b0f27e','2023-03-20 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$G3WlEzIN.Y8f6dA5jBHDy9iw/DfOxTRxznV8UCua4WLBhbNvVeoTT','admin','ak_323d2659b1f09e0d','2023-09-09 10:18: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=4393;

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


