-- Host: db-master-3.internal    Database: webapp_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=30881;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$kcyFoanM.KU77aq1bodw35z1YUd4C5LFtWk2zkGoIgU8sq4K069Ub','user','ak_f1e2c2963277eeac','2023-01-18 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$CV3OHcr7OOfwXxu7vo.b.KwstcSobRig.8HJeOeE2ZtbSml9OIICB','user','ak_d6a571bb5c507f2d','2023-12-01 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$KC2M6S7P3.9x2p9D/Y9RqRkQoirm6kYkLwplYJnqebBzCe391rRSR','user','ak_bb85eb8a7787af81','2023-11-11 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$kKbnGrC2qPZzL3OsKMmz0w8DzhP78tQ5ktZtOxB88N.pMBnlUXx48','user','ak_35d95844ea1111c0','2023-02-07 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$X8ATPmbGgJ30H11pvB8jic.PvPGZSVPgljUs82nkxa7e2hu.R3jkl','user','ak_0a681719b8e273c3','2023-02-19 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$ujaY8gFiIMrtvRvf4t.gKRKOs7tYEmq0Xw3EnOrOi42bpGX/C2.2g','admin','ak_46bdd1a4f3304082','2023-03-03 10:00: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=31909;

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


