-- Host: db-master-1.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=1606;

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$fYZ3eJ7NdKaZwKSSz..j0YSB5X1zKZMp6o8gsUFHYruyStiHUA1QN','user','ak_6846bbe69524ec8f','2023-10-07 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$s41pKaQC5kkQQnIbpxCc1xakI7Z1sB5IMg1NZ7xtzN7tlgQoTHzGj','user','ak_0962f53abde5268d','2023-02-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$Y.4DftAuON4QiUVMeFro9whjLX29Y5wiKM1mCxIOKmDPGe4h8y0TC','admin','ak_83350fc39d57db53','2023-04-25 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$0YHedHd9XryeHqTmKTV9JcKJS3mi/U38Py7K.6nLa4hE9K/8aVtb3','user','ak_1f2b257c031b5a35','2023-09-24 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$wCXf/Tgt2xA9N45/FQGCz/NJu86nBv0OZ5vWZwwVTxUVj6Xn6COxP','user','ak_d42ed149e68c32bd','2023-05-05 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$h.Iqk/YUI9jvxloQpq3j4zmkaarRc1NmLLIQa7CG/23Uac./o3Do6','user','ak_75c965acb15f4e0c','2023-03-09 10:23:00',NULL);

