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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=34616;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$xhtNSCSRPnRfsqhyIWMR6OSOJ.xRWCKAD07BYZs..PKgU2Wnlcih1','user','ak_520022b49bc3ac3f','2023-04-01 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$yLCPpXB4uY.jv0dXmGzk9OeWMJfIQhDOziDqmre/mCnAQpEHXcdnV','user','ak_647b15cba16bbed0','2023-02-03 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$8eW3IF1WTBeWcs4ys.jCldvYkMibagGl6mR4rK1HqAzIj1NhZpDnD','user','ak_6a9378567a41643c','2023-10-16 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$retBWb8IX2yOE7kVkvZLN1ceZiDrCyr0AGjLFQ6NyG53.2PiDkNlg','user','ak_693afbcd766f6cf7','2023-07-12 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$eJuLEPAD2NvN6mjvwhoPcqSGjHRKbU//nGJ8pTK67LLVf2dbpo4kr','admin','ak_e6967092e982cf1b','2023-07-05 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$QxMd5Eu3GvxzX9vH1KQP54xwYPsmlA5NtJ8FxkGPYzVBsjLdz.fX.','user','ak_31e3f1637044522b','2023-05-28 10:00: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=13193;

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


