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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$ANa8CFf3XTmiIZAFackWXcHwOzZfz7kt5NK2NEWm2nerI1vuZAu2c','user','ak_b1dd40e05588aa14','2023-02-03 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$ndpWvxIyqJFo1KOVy6cn8VRzl00AoC8U0iRyaTf/T9AvIlSGTEtiL','admin','ak_b8b338e62d01ca9d','2023-05-18 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$l9IA/O4QoXPGrMGzf763ibshYrq/FjKNkDgvyk2hz5cEO6hKxFf14','user','ak_e0daef4a211cc021','2023-06-14 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$5jrEXkE3XRpy.woP9/c0z6gqhalHUmxcKpb3EK0iOzzHorSOAQiw6','admin','ak_1ff7a37fa5ebca93','2023-08-10 10:03:00',NULL);

