-- Host: db-master-3.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=35177;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$fHRWGK.Mv5wxoz2ftHBqE6eOGyQHGZyMCohECxWSTSJThhu8yHMTq','admin','ak_86169cf327fbe292','2023-07-21 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$QUHcR7DVQV5qI8GfUBBTM0vi3d9CLjaEkyRtPD3RSJpnXwCSz68Fn','user','ak_18d61430a1ffe1b9','2023-02-03 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$GiUINsILCjtpmFMotlEdkiXKuDrH0KKoFBaOCTggZHBn0m46j/gOr','admin','ak_c7d5d0edaeabe201','2023-07-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$gyCqDvTlwdnKNKT1lsTmJz4Npv7tmm9LLa1gjanzG5.S.jMO09Hnc','user','ak_4823346594a27138','2023-11-28 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$K2qF61xdl4kCFjcpT3IVaNcKC2CtpJgnwtn4YcOl70GoG8vFxwJ/r','user','ak_833a42afa82d4d6c','2023-05-11 10:06:00',NULL);

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

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


