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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$iHcIsSasoa.BN/TN/mNizuXxsUxUiJuck1igzcL4FbQIo/9EiL9GG','user','ak_bddcfe4ef39ed108','2023-12-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$7/KnDp9EAYdMfhfnhVVRFCR9klJ6ksqF91oYcaqnqrU2il4eWLLT4','user','ak_4a8f96c4f3d50033','2023-10-01 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$LOVEhTaldXDs96PkvEVA0MB.KHSZVjE/Kco7aZNKEhuH7amp4ZfnL','user','ak_06e0009347c1b7b7','2023-09-14 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$FN9vhMKb2CvkkCH44Gk6NhQh61/0QN4BuUuj20Ek01E3gHwag5OHE','user','ak_388d1dd70a4bcf11','2023-12-17 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$Ufph2w0phfAWD8oDG1ivMXBGFc5iIsU9XlbLtQWMaG4iagy0K7Rjs','user','ak_ec8ec72e2c6a0688','2023-03-14 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$kU66KbQPZEs14vK9BcgmsMNr/VqHKl2oZHDmpu8mq2SLzU3EZeClI','admin','ak_468017c96af13d95','2023-06-13 10:00:00',NULL);

