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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$MxoQDV39OeayWemRoen5W1TyMOKh09UNFnUxcWGo6RrALUaVD4KgY','user','ak_2575bb2ef2312391','2023-01-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$g00nvYUhOHzks24swZMOmWl6dg1RVJVa1qE8/yziR4giMIAyBJSqU','user','ak_41748a4e9ebd3ad9','2023-10-07 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$xN7RD0F7MguFD21LoHsz9H38ZXa7ZarLe3mkpQNcmenRBYlVNWsE/','user','ak_e3638d4d8146dce8','2023-06-19 10:07: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=22144;

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


