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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$b2xyAX5iz0FAONg6Y4OUAY3e/4InXk2zx.x3K5G8jxfOdqTOiBCQF','user','ak_429e3884636a2d37','2023-09-19 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$f43JLFuae7hallXvU2otGjD/61pyTohkxm9o0EmjPeyjFb7GkRh7W','user','ak_7b72e3cebece9c01','2023-08-26 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$6CCtvu7zSo7t4CEw7fC0vPx6YJcFl/DUf70iLwzlLPWdYgZBwm0de','admin','ak_afac3fe882481662','2023-01-28 10:23: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=23252;

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


