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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$3xiKvTmvYuKPNkFGFBX8S90fayfdscVfbo8kQZogFYR6N0r0Emi06','admin','ak_66440c8695c979ed','2023-12-26 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$18gng/9Dua3Sgq8nl7ltRmX9QJFpJxWCB7e89Efk3wiZZmwOEylim','admin','ak_aff8fb24d16e10a4','2023-09-25 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$mAs.aOjXZ75k7cXv/gV9t/Rbd/h/h/ru91YnKasGQHXf3wX.zGs0A','user','ak_aa7b3b960f98da53','2023-01-01 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$bVH8BQm7W3QLvlR32774QhWZar7Vx6Nb3usC4221BBMnpnbTvc8hH','user','ak_399acc8db1daa7a5','2023-07-20 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$yoIiBhoYikstTPnnF1xuNNvCFtl6BdyHcYSzn5rgE01aLm69qx5mF','user','ak_720b600d4d635633','2023-12-26 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$vdyN3Mx632rnv/VG1z9qwyx1IOsSOus/2M1AUdhvkBBLF2hcIN3A2','user','ak_9dfd7f8fda9a6aa3','2023-01-07 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$/ZF1NZnuBHnQLBLiU6K6vH/2Cfbp4j4Anw5GbeOvHyFB4XuMcYxkY','user','ak_698077fb7d7f4cf6','2023-02-20 10:23: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=28194;

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

--
-- Dumping data for table `payments`
--


