-- Host: db-master-9.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$y7Rj4XbQlSrNl6LDeDVezehWkBgG9WqD0bAKUIjl1WpNIGchJykyC','user','ak_761fb99440d4dc61','2023-09-10 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$yAN/zIIf8EDWRBPxsO7/Y8GpRZ.bl7w6QP3aahOYi6JTeOt8o8q7y','admin','ak_b8e505514a14a169','2023-02-23 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$5JXleb09catbbtkdfHkyVSfJu3p01gRJjmO6PQRBjkXj7EZnZ2Hhk','user','ak_ed36f22fed4e93b3','2023-05-03 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$JyeT4poY6si1EiSUb4lKjkt1qTiwBTSK8bT83VRwQ5f9PnWmPEkj7','admin','ak_b3fef52725bff9b4','2023-09-19 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$qvBNULYoAhi7WyXxk9Fih6/ZNIFi9UL3qD5k1D26Et/GUDu9vMxGC','user','ak_48583581c9c423f7','2023-10-07 10:04:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=18697;

--
-- Dumping data for table `products`
--


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

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


