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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$LBSnJ.SkAd7HL1cR47c7CS.aP6WxMh5H/L2CzYU9NdT9jxd7zPxX0','user','ak_e804524c603925d5','2023-04-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$.W7rZysd4qrzsoleINaEWYcQwKfDAsGdgKp7U1a4Ff0KQ.tntT6TB','user','ak_fd74e5acea8c0cdb','2023-04-23 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$gTHX1ycGG88ens77BTOsp04kXXwXnrOSnXEoJLBYenv4iaPIFtw32','user','ak_82edc2ce602aa5fb','2023-03-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$FYo2lH2S9G1TEloXm5XpsTV/1XXmnc5In6u6eEmlTpSohkH4GlA.M','admin','ak_801b3d65342c00c8','2023-12-07 10:00:00',NULL);

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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=28150;

--
-- Dumping data for table `sessions`
--


