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


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$89/OGoRIc7u2tMq7i8IsJIOUBQ2UndX4cAyx2XoXRwx/EKqsMbf8r','user','ak_d606f915082ce560','2023-03-24 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$L/VJ97MXTfKhLVqUyFYAdvNBGa/FT3LUodgF/cVv09RfcRWIkmQgx','user','ak_6df5736ee30c6e5a','2023-03-11 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$FjcmeD2pVs6ljedMp6yxFTgBNtzSFeo.Jog2dpaTdhJdBcu8Zj.ZV','user','ak_960f68a80500e2d8','2023-05-12 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$74qFK9i3Sh4I1sTDNzqt2cwwJ7D.GYnFY9ISxyN8CYdOa8k3b7G2Q','user','ak_f6fc85f17d9d5bd3','2023-10-04 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$gTVgksRVPDFx5SEa.Iu35xp0VUp.Z446wMXghTWKPMvtdgUE/mpu5','user','ak_078431066423818f','2023-01-05 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$FL7kyGaUfB3ZE2NYqEBjPCBOtnNNqH7L0u4WNBR4r2F1E0ttH.l0p','user','ak_eed046695524189a','2023-01-25 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'admin@example.org','$2b$12$KfRuro21H.w5T2FEjjpz/rUvy.SRMq96SZzcZ2lAygeWEHHgc5wOw','user','ak_a044edbe40e3952f','2023-06-09 10:20:00',NULL);

