-- Host: db-master-2.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=17153;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$wIvRJY/09iI9au.Ynjwmw1HSjJu1SGlwcjhAaHmDwUhq9SpePfymO','user','ak_cbe805438ba41b1a','2023-04-12 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$K08nDaMbuLpRETCiplh7EzFU4nnvfxhFQbyErWRXk66P6rHyyecY4','user','ak_290a06a1edfe506f','2023-09-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$tI0sxnpi2llU.9.S3m5ow3mc5MST8YAWRsSWflMpLLkTe/g2zQ8es','user','ak_f37de06ab230252f','2023-09-28 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$LBg09h2q8u4lPlviQeCcLjpk7gLmnR37.rQEByzs2NgWqpMyJuhB.','user','ak_463e545b95e76a6a','2023-09-04 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$5ySvjfNAFjRfp9cRFJ/w8aova8WOi9xEVQUA.kA4jcrsJKZ1Yvnwo','user','ak_e8ccc47de02a1a82','2023-02-27 10:04: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=48118;

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


