-- Host: db-master-1.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=15369;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$hMRijwrVA3pYk0ZIpPsC2vQ020e75CuHvQcjxVhxrIqDfYObPJfAP','user','ak_9bd25172287eee98','2023-07-25 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$cOjHmBbTrP58qmooCO6haxJAhseO.fpeOLBjOmzyzwHpB6GsZvWKX','admin','ak_029d04b3de4a8d7b','2023-07-23 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$aCpsln90o5lk/vWYeuD498wVZSUN/AfUDHm2WsRR9oKu2Gv5SO3HG','user','ak_9af9c57619cda68b','2023-07-05 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$Gxqcesx/Oqvem9S181iZSu85Ojp8XUpJnO6sk8KJxqKLJvJUD9sgt','admin','ak_dce4234aed45016b','2023-06-04 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$gsmHgxudE5XJYoAAdIm0YwjUcsSiI1AscfEb93K10k/9UXliiL7w6','user','ak_bc7099ab6a5e4392','2023-08-09 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$LjKcPOlT.NldcbKZWkO9O9WIHIQP/4qgoGVAgje5m1S/es.ma8Az3','admin','ak_141f496d34824b52','2023-01-20 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=21922;

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

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


