-- Host: db-master-0.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=2864;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$s/U52AA01wGY0ivxK9l.YAavAYIOMNYm0uKI.8q7vbiDwf2iKmdDG','user','ak_5d6ffcb5e843a42f','2023-04-26 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$SBqY5k6rme.xlcad3nnjRODeFfDNQQt/qc9yPxDZQpGIxS8qL9qe6','user','ak_a906bb25340679a5','2023-12-19 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$rgdP2.KUaEkHsYwSswgRfncYYZv0FnZzI7AYnlIJ7jCjVizXYwfqw','user','ak_159865e20878d66f','2023-05-14 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$VRmzvTFS7QKkpRNn5qnNQD3HLDJ4EoYnp8xDWbRR6emhsBF3FKk.9','user','ak_edd10abe54b9a018','2023-04-25 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$LDgVspsB9v5OC3j07xQyL7eMJK.nDz53xP5EHWIBkgpRqqP0D1qLR','user','ak_28fda8a152349802','2023-12-08 10:01:00',NULL);

