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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$zoPaB81qq4RmDrvAz1MQU7vC9I1jthc0ggrzDpsDR8OEW7jqfynYK','user','ak_ce00c7527ea4849f','2023-05-03 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$o2lJrxM1F8sNYj2lLlvMrjeDpBc6.SoQJTN550NJOLbiXC20qDNi1','user','ak_54b52cea38d91a25','2023-09-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$lEImWR2tKqlEQq3ENY0yE8OzvmC2CJD16rU7GxwEHrLrIp8zgA1Mf','admin','ak_994d53f46c17598e','2023-05-10 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$8trNsv.NiR9cTWm/bxdH1r7onBAhgXb4sDNgkbapdbcdRdBDLqUdJ','admin','ak_9d9b45e1141aedbb','2023-12-05 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$ixr2/OBxpMaPpnlyNFQJGx8wPi222rAYL/ITVup2oX0qYbegfXEb.','user','ak_477aa728aa2e70af','2023-03-13 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$em8Q/IZcqpaIErdj5B8a82F872TrYVprp5H2m5AD7jTWmqC6bzwTs','user','ak_e3aa7b7104a511d4','2023-11-12 10:00:00',NULL);

