-- Host: db-master-8.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=45373;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$xKYhFKcTR112iw.31PIrYeeZusqS7Dg5p.uQIpY/eqwWgEKgQ/7mu','admin','ak_ad7f37ab03d78f31','2023-01-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$v0hvykoAKQsjE189Dt7EvM0LPfiEwrxsc.v9I2uARONKTDK1iUT2V','admin','ak_ad79d1239915eeaa','2023-12-25 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$oqRp75qf4fHahZZR6h6uOCOviWrZ2z9KPZfb5BNyn6LGGvw0HTecL','user','ak_e47b66782288c035','2023-02-24 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$zNE.pdHpHqp5Q8DdpY7itXOjcfU1nGJimCtpxVKKo.glod89sfuSO','user','ak_ee879212e9ac78e7','2023-06-15 10:00:00',NULL);

