-- Host: db-master-6.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=39845;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$JYc5bmS/bdufhdAzNZC2EXnxNslQ6kUITPCmonOi7moUtWhMstbDx','user','ak_f99a0a19d9bad6b7','2023-01-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$ObxE6qiBdcEpAYVsMzabwT6G8H2VssCM9NwiLgBVI557oX7RkfKm.','user','ak_00055b5f2e5705b2','2023-11-16 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$tGzmjiCmPnyNZ9s86iY.kp4zSSvi75xTLZWXY02ZNoGoaivLJlPLL','user','ak_6e7c816f0bf6748b','2023-02-24 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$9DoTkFPCO8EOdcIxInFmOYrINwqWPDQAVTi1xQwiISmDIkLTA6yqO','user','ak_5f3ef259a2a1fae1','2023-12-15 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$cbbXtypB7caYRE7x8I2aWcya0pzkFyVzbV5Uv0HUVxxNxSgSv8JOx','user','ak_a0a3a0d589cc316d','2023-11-03 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$d.zpEEqtoXTotsL4ftLfQuWSl3g6mDeeRVUgtGNYNZV8Bzc9ypmXB','user','ak_36cefdee4f83ec64','2023-04-21 10:10: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=13868;

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


