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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$FP4uJPAEiG5LUohFdPcPjvZdDHzuIgTAcpPs6d1xZlqmAU1BqfFPd','user','ak_b27d6eb6784c34df','2023-09-15 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$rLxHx2xfPx/vyBX9KOMuWStI8acCWsuekTtqoVAtXxdir2wifTo6C','user','ak_127822390e90b7c6','2023-01-24 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$zTYDt4lOdOSkEA4CUud4i62lGuIonj/KTlkdRmETydRPXTZyasBBJ','user','ak_106318901cadc854','2023-06-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$eseBwZTz8ufErFNScZQvrFszx84uQ8CHPWH6rthgzgB4mWBXBoxmr','user','ak_f862bb6988d514c9','2023-08-17 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$6A1v2uPG66DYxo6TfdGKKawTh8E10Glp8i7K119wM77pe1VcD/jxf','user','ak_bf02cac66c709027','2023-01-11 10:13: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=7699;

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

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


