-- Host: db-master-7.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$i/RivB87KSZAWIzEkhWVsVGmlrXqQ0IfHvzmX810MzIpQXxKmhPfu','user','ak_f07654bb06c4e88f','2023-04-27 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$PN.cNI7SvxWFvxpJOSV.TZrGgbmUvkNtLnBoryCditSNC3KM6C9Zj','user','ak_2231d5724e97ba0c','2023-10-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$DEuLiXcRhmAvcMYxl/vWQ4OuWdV0jAieTlqHLQRC1QJnkExaGGWgZ','user','ak_2d7eb2b32da39813','2023-07-19 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$fN1Wns6Q/T8/DnU7PpPxKRRzA85df6ru.yG3T5V6hBE0bp4OVeO/l','user','ak_338fa28ca70768a0','2023-02-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$Nx8xpKAgblydPMwoLbmyNu7SbmeKaGiHFwasVnZcm6aCPt/DySkW0','user','ak_31e5c742653d96ad','2023-07-23 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$PuwJLG3r.YOgVEDLsVUaovXEUmOuZ3uVNcjdLnc.qUyRTizwnpApm','user','ak_5464f2f6b69c889d','2023-10-09 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'root@example.org','$2b$12$HUFtRy.QSu8bhIFjByeEGwrWJpUANzbOz1D4wht/W7GS3nWaGrfBo','user','ak_55e7b68dddf736e5','2023-10-15 10:03: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=25590;

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


