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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$L4Aoh6RjBmgzV6Q8PyyphOAoOKs5am/zvnCIUPUIgvIVZWm3IrOE2','admin','ak_7ee4235afdcbacd1','2023-09-23 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$4ctj0OTt1.3w6LJ0YVKhDyf6z97BM78ZyL.sJv/yQO/g4MH5e9veW','user','ak_ae328ef228ee1892','2023-03-10 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$WCrG59mWTQ1MePa96WN0W6wpw/iUnmVlicS8nc50Zc8Rdltb.E08W','admin','ak_599f9127313b81ce','2023-01-07 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$yCKUaefRkDms.wiF2VsG51QPRXp04ADcz8kM42hfQ41lFIwAp3sCB','user','ak_1ff41e63999c3f1d','2023-11-11 10:03: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=43370;

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


