-- Host: db-master-9.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$zbdLVMwV6stWsGthTkd5mDi5.soYAxqa.UrH66rFDNa0gIHJNwBZN','user','ak_19ff1e5176aae547','2023-06-13 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$S82zvHvViIo5Y8VH8D7cW3BD/0X/LZCc5N8OkRbzDWLgh4cwrkM01','admin','ak_792df7f6f78a9f5e','2023-08-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$IwCJirLqVNWo4x2RP1Djl37/5BdBVxFfq/fZdpeXSAdMcoKHRTBZC','user','ak_6aa7dcf7229e8f35','2023-12-01 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$OrsoH7fgZnXNpghyJJuuem6GDvUOVPTl/pDUeCaq1kZv5Z2HRhxuV','admin','ak_7bfdbb0430e23bfe','2023-07-02 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$wEKygxuS/9eW0c0f3XYe8w9CS8zJ/YClBFAsSh0zGfX9.ocuMsi0e','user','ak_0473a63033e3f5be','2023-06-13 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$CXm3SxVQyE5SbChSrDB5IpDBeozrSV2frxX.FmS.Ks1kbqmUkGTbP','user','ak_4daf4617a3547953','2023-11-20 10:11:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@internal.io','$2b$12$NyIvqd5YKGWLYI3kaw30BA8QRMepStA2Rkm.IjkMom2nieIMm/ZF2','user','ak_3e50b4ca199c5876','2023-12-12 10:11: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=26811;

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


