-- Host: db-master-1.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=36802;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$.YC7ZhKPg2Zy/0yAqfl4MaSgrQO120zB07q1kkckGK7mEaENMAyiy','admin','ak_6640c934c35deb1d','2023-12-06 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$8gmLu67QsaVCcsHbhDyRg.yQV/.qOAoqkMxyawaYBaveI2CFF5FhU','user','ak_1767f19f2bae6d03','2023-01-15 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$TGDcZmj8Fvjp//pbzD/ylX9IAFaU9REos4Xp4OYCK36kLm7OaTI1.','user','ak_5d7b6ef28bd5d722','2023-10-05 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$0xfEztHOJ/41EdSlqH4waQGzinLCeJImc8U5VV7g/Y6Ifg4g.LRt4','user','ak_c5b938877a986990','2023-11-09 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$6VcFv..DOFusvktHRo6NHKtJmxer5f9cgw/FdlpwJdsh/zoApIw51','admin','ak_dd16effb229dbc57','2023-01-21 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$JC8ltKFzCAlYLpzgZ.mbonHRkNeAI5Y/NfFbaM3kPXN5z7Y7zf/pk','admin','ak_1087caa531eb7752','2023-06-09 10:15: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=36344;

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

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


