-- Host: db-master-5.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=28757;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$PZKDjTWefIPUdhDZrpc2ebjakBefQFgy8ZmwHMbrMDgFrhpUqhUDw','admin','ak_c1b30d4b7049a7d6','2023-04-24 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$nQCVju2ih04LbIzJqlTxrOSU1J.HzeBPSf2r7BCpiKNKOvxLGgJjw','user','ak_75a062583aa17812','2023-01-28 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$FI2usnh89I1mO4Rh6nBlxE.H4JwwKhoZdRIhL8SpWPsnmNsz1xZv9','user','ak_1302658721a8457f','2023-05-28 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$MOosMXlKtHODnHZ7T7nST8y6cVDNCQVWPLDi0tIJmCZcDyOKUjzHz','user','ak_55ee8d921e6c09e4','2023-04-04 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$wpzhPdB4D8yEE6eLZt3ULg0emV8KhSyMAYv6tO9MH.lTFscSUHcf.','user','ak_92f052a4acb2b378','2023-06-17 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$fQi7dN3t.6BWZLtyvJLhp5xZ/JPswo7DMmDlSPQKvJTxCFQ3fhAO5','user','ak_f690b20993566336','2023-12-16 10:20: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=44880;

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

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


