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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$McMHdpQd3ASXIDzxLdwZ0RhbAYRRqNPLwdSItQ3.KAgooT1kFssJ7','admin','ak_f98a63c5aa68e232','2023-03-03 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$YcJ.UqGiA1vxdMam97KzKfltHFhS0EhnpvI/5fxqghWmda21JmUWR','admin','ak_f96952a98742a470','2023-04-15 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$3ONq27d/ZEX2zP3KGL90khVVZkEX6bwp/vsood7hB8p3ab5aWUyIQ','user','ak_311f4ecb593bdd70','2023-10-20 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$qMJs6e8dQ0WEAQF97kyF72NahXVo9rZAjib4wwVwmIacLefCcttUJ','user','ak_7529b1b86a7fc411','2023-07-01 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=32528;

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


