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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$3ExhfQGON59l75vWzlzOcd2uXZAFAI51oPHuhqJeDEPs1d.EzcphH','user','ak_f7121ffa548d9311','2023-12-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$Dm3wy.UYOLnFbDdFdpM5AbC21K58rFM2l8w2f5v2oO6QnFHlgfr7K','admin','ak_8594de8fa70bb65d','2023-03-15 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$94kIGEgf1Txr06QHZNsNLmtpF/s8ykhbMy5DXADmEmmNLxiIaTPt3','admin','ak_70898e11f8d58abf','2023-09-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$OhoNxHljTjxW86nrrKzq2grQiSWJk.3PN2kRwvHsnQ0DIWA1eTM1N','admin','ak_f60e45ae36aa4b9d','2023-03-22 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$ZPIYkz/fA7KlCXRDiohpP0DchoLiji7Z2ld5v5c42Z5rGjACtx/eo','user','ak_495d63ade8ac5765','2023-10-18 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$EFWXleQWMTv7mj6BWhN2Jn8bF56XtRbFObE5ug7/VSZG1VX0ijD2v','admin','ak_ace3163e173b00a8','2023-02-16 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'root@corp.net','$2b$12$2lBGMrEtV/Zy6ZK12.TtT19J4vdzCUvRZKjGJs0GpciA3wFZb8wSJ','admin','ak_74a68958fc282891','2023-10-11 10:12: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=18273;

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


