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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$H9Au/55NciLdaY3U4liXg82Iod3RW2bNPPjblNXlMz3oI7cJWDWPn','admin','ak_e3bc14c725a9256d','2023-01-02 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$UOCt070zTQkCgm7y/zFalQbrcLflYCZ9HmijrEt1zMDqEHI06T5M1','admin','ak_a02b358f0812c1ca','2023-10-24 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$o5.XQG1FddWlyPFsAk111hSyDFVQZIgRylJ3Z1Pb1WZUfl5kdLlzY','user','ak_86ed1899dee58cdf','2023-11-23 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$VVjh4ZZuEq2p4vHVL03akcyJJ.LL6g4DeyVtmQuOAwp21YQRm7B6i','user','ak_f07f01a20b56240b','2023-05-07 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$yi0TkOZ5EX4HsgajK0lOCsMyZwRnMrWxTHwHfeY1jHxzWbccWrzqs','user','ak_f36b901002fcc3e2','2023-10-22 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$myCx4/RGs02.I1jUGeSs3Uz23E2cynG6Ho7aDyDEUngDgw8CLQMtw','admin','ak_7bb4e5211b17e9f9','2023-11-27 10:01: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=21434;

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

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


