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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$BLLcPoQsF/4fV2o.xBicik8ZfHiiN7EshgwIYmqn/LZ4qakSTS/rx','user','ak_64eba137475f3102','2023-09-14 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$dmN6013/7DVDkhLIG3IGGsBHU6QlIKGawckYcz/aEZioXBdZ1sEVg','user','ak_6e54e8a895ae4f15','2023-06-03 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$WEemX6OlL4cQiTOdHPZrx88dFK37Fz17F3kEml/akyBcf2jqcMn8.','user','ak_4205f061e9c11e4d','2023-03-21 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$CqiehXGTdsI7Lj33PDJFhcfBbb2n3hU0XCJ2CaN8d3fHDYMyYocCf','user','ak_586ec7b0fb784eca','2023-11-01 10:12: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=26376;

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


