-- Host: db-master-2.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=9909;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$E1A/zaALlTjb7dD00yzqYMieiDnzqSlna0x8abTMQG3TQAz.mkKL9','user','ak_ab5b3f0a88bc2909','2023-12-25 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$/EqSfeylm14wCKMFjq1f0qyGipuWHEx6Es.eftDjiRg83oc1lOyMr','user','ak_7000c2daf5b10d41','2023-05-28 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$UiVpzzwNNIRbclasovvu3zeNdnta2IxzjWFkeEnlVJQThftU6TeS2','user','ak_76a64ec46e64da1b','2023-07-13 10:07: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=23729;

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


