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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$pw3HmSr0UO1iq1F2TQl7qVjUl5nQMmw2VYR8q.7fAKCFUhclt4UR8','admin','ak_baa26dadb96c9b21','2023-04-04 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$li7mFu/cwf.CbFrHkm4plOOvamNiUkA/lj9AHmZVar0kbro61mFJG','user','ak_f01dab7b99262fe2','2023-03-03 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$0jSHvxz439wgmxaMerptwWT5NMv0jNvahLv38.mJ8pc.s02iZ8e9L','user','ak_f22c705af1727358','2023-07-16 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$H5fAIAZrSjbVOb/evJDv5ynato342k0rltGtjtTbB.EKg2zReSqgK','user','ak_5eaced6931aae916','2023-02-16 10:02: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=14939;

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


