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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$0fUS1aXd4NRYr1StTrZZWplse4dNQOH3iGW3vAJWkXOCAph.dGWZu','user','ak_7f761d80a505c5b0','2023-08-01 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$Dz4k2trvfCKfh.grRm1tyIlf6v1P0kgZPIsC19a/Y3HnEe4sC1/oP','admin','ak_051c78b3cec3d93f','2023-09-15 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$aT5DCk1ESHLdBkQH0g7uiIKfejGMjBQfvMu6/ltnovkRLOPRUtJFs','user','ak_8c545f1eca793ca2','2023-02-17 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$VAs1FXHGLStD2H35JTUtMq2E/sVZowA2gaxo6VCttit7A3GFrRJUi','user','ak_2d8cacaa3092d002','2023-05-01 10:09:00',NULL);

