-- Host: db-master-6.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=48436;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$1DNCOtwDkhuDIgrqiJY7JZ570yr80SqscfzJqB9uV2Dm8QYOU0mqg','user','ak_36c387b6f248d52b','2023-01-04 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$m2z2lYGUGH.JAGjt45/Xo7xU1GWgNKEsRZi450vFa/Ue1UBLE7Tib','user','ak_33cf9b7e4f0d8c8f','2023-04-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$oE0mS95JfvKiIanjrdzZpZclYRiqFSvK3i.7hKlGVCvjgf2ARuaRh','user','ak_a9bcae932755827e','2023-11-21 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$7HnQRf6t23MBVeCZ3Ms3KhOBqjFIodloLZDTJaKcKsGovwWQYl1eg','admin','ak_f81a88ef374d6b9c','2023-07-02 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$PgVxoTS0U3nIdmbPhVNw/UBJ4Ch.WxM51k9vaCqPk3Eu2T.EEeK9L','user','ak_8687e4535111cb7f','2023-05-22 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$Dfptdl2ntBxVnNUS9JtLIIw5B2j1xtN4jtE.aSlx.rSx2BceigZex','admin','ak_58d6ab5c032f5180','2023-03-20 10:21: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=6773;

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=4258;

--
-- Dumping data for table `payments`
--


