-- Host: db-master-8.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=42622;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$xqayHkD3gGXcTdLto2fFbLqOzGlqmBT75a9tWlfzLI7lGO/OYLyGX','user','ak_6018acd55a04a47a','2023-12-26 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$1N9C6XRtQajFTTSXEAP5vbVUAB0Q6kjkDoYZyla13M3jUR2../vS2','user','ak_00cb92c3698f0fd1','2023-09-21 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$YhiJwDIlFatGD4YDkmwIO5rDGCRjxAeJ0/XlkJxSYbCbgooTDcL7R','user','ak_1b52bf658412d11f','2023-08-28 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$4qqXhfALXGrT77.ySZiTGffcNNrlrt7QQdv/pFy/5Wbvb6d.0aSif','admin','ak_079fe82a01cab013','2023-09-08 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$uQh/Gzz9Hc0eLqNVIPE4WmfWWWphDkR35Ps3c/5GB6YANPmOmS8pK','admin','ak_26fcb934423735b8','2023-02-06 10:00: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=29978;

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

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


