-- Host: db-master-5.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=14964;

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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$T/U70wC9P9cpLBCMnkiBO8JBfo7TuOpNljO1XWN1TlHn8Kix09AU6','user','ak_33571b8a8acf0ca1','2023-11-26 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$06NXM4ziCwpUcjYFp2Ycd5sMiIz1d6MkxZdzQ.pvFRJEMnvzHxa54','user','ak_0dffe5542fed4f98','2023-02-16 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$RAsaCZqoMzMZLE1APL2wrl1vYZDCsylbaoVEbkRAApXUoWcgLOJwG','user','ak_ce5af0c84e018931','2023-03-13 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$.O1V1xyVb01zG5r5NoOBDQTehgE3q6foq3GF.syFNvrK5EnPvow2W','user','ak_df9fe6dd551a647e','2023-09-05 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$uqRso3ivnBuVJT38LdLermlhsr3xM5vu5H0OqAV8ewcVaVk.wZjEF','user','ak_45e86b20c7477ea5','2023-04-20 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$eeAV/gs27pEwoPiTTXcdLr2xBvIBkuv28ycpQByVneCBVhFH9JKYU','admin','ak_88695f7b0107eb62','2023-09-26 10:17:00',NULL);

