-- Host: db-master-7.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$srTjHv1XrMs6exOti91gwxCKuw9VNqeGQuXCf7w194WOYCfvm8ecQ','user','ak_fdc193091043a358','2023-05-04 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$CwiwXi2wEIpW0/ZEYDk7uS7S/MyXQgF4i8xYMgQSMC.eyRtO2kd2J','user','ak_8fef430eff6ad51e','2023-09-09 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$BtJ7KRNBv3a1A.Ka37p395gRY2J5MeYgQ4BGBfNiHvOS1t6r4.Chb','user','ak_9a312dc0512f3084','2023-04-20 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$A6WzZSIUAmTXVcoXADN.938NrW4kkubIBIlDsLJsck3NOQBJlVEEp','user','ak_596270b2ce82e960','2023-03-09 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$sSzTz/RYmvASPg8AHafzYZQq/5YIZ6/0asVuzNCu1RHeFjSfD787C','user','ak_d0bf164fe7d1c56f','2023-07-05 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$awfkdueWG.vSJPVI15ZQLx8arH./o9AopnTiPONiWZpry8I/auQUu','user','ak_57d99d536ee38ad8','2023-08-08 10:19:00',NULL);

