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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$qE1se0p5TbRdXRWI6ZI49ilPHJx9Stp1Yw4EPWNP2ShCRyXblrucg','user','ak_32e3d2068647a645','2023-01-27 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$crxDcnbuHS9mGiEyUKQhI1SCkDEHnJ4rKjz5Zki2oPIm6w6n8bI8y','admin','ak_712a57cb94d4a6ba','2023-03-19 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$9X.K.kgVd/ZsaRN4t1nEFAAccmgcKGmZl4mcXTSKeUolZvlGZe../','user','ak_aac1bc06dfa092b1','2023-08-28 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$92ulxEAvgbitSmAttQdm.p.1aPcBbqt4wiOvGyFEIRcFRBmnQZXLZ','user','ak_c38049ab289a0d27','2023-06-09 10:19:00',NULL);

