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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$HcRJsOXl/JA67SigLqxfCZEMLx3xnTNmc1rTMPCf0HlJnv9s8HHtH','user','ak_98ccb086b4f6747a','2023-06-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$hynHX2tBslOxJ6GtZUny3KOs6N38T.ONFKv/w98b1WYqq/NHEm/Sp','user','ak_5636190b84ab26e6','2023-11-26 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$S7xYq4I6F/twFyFzmRnEHdBH8QRQnMtYKxv3d.WWAwTf3q0ejqNNZ','user','ak_b03257a7884a8665','2023-01-02 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$.TSPYzg2WOmCbYvCpwdVbe2CSYs9dP/GGWils/t/6e5vLy7OWB4r.','user','ak_b6f95aaa10d2800a','2023-07-19 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$/K2Y8DUgSZ35SziyopR4g6iE7ROQFkuUVqoTkVLgJQEzS/S8O3oXS','admin','ak_6577d96beac74766','2023-03-14 10:22: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=36026;

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


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

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


