-- Host: db-master-7.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$pb48dOixOTTx3ZpUV1Jr2kLB4376XLOlmC803maxOpOY2NZdH5NXF','user','ak_8893acc684acdc6f','2023-03-18 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$em7INV7oZdUoAGqkzYP1Fq1BJH1MmeBKoeJYTqNCWjkM4KtyhhM1x','admin','ak_f7437abcd6f16752','2023-03-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$tsQKIq7loWqe/ECHabBbr3b3/S1yAb3ThsM5w2pLHVNRW1rW419J1','user','ak_58c0396002768b9c','2023-06-18 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$nmr98etTwNwlmPuXXWDRYapC/2aa6.W5OlqXMw6hb54ynRNjpN9u/','user','ak_9201b3dc8316d470','2023-03-03 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$rARuvfX2rpLBXq2B0.Nmvux66DKUFBDgTHAr7aVqFna2SJSQfGxiL','user','ak_416f0dc03d2d90fe','2023-02-15 10:20:00',NULL);

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

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


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

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


