-- Host: db-master-4.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=1443;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$u1cUYfZPuSsxp7yOSEYlOACnDNpd9z4Kzx0x39CWYaPPRmM7NQFjm','user','ak_6f321adfaeb964aa','2023-07-17 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$HYXQrrch4IlF20l8qH6LwR.632FDwOEjuX.yLZYNs.swbbYq81XDb','admin','ak_9f5cc48464a4f5b8','2023-07-21 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$i/Lw1CrMV2nGYFLp4gJ6NX2vt9VHGAPTRtpXohA7EqnbjthRPGwdk','user','ak_a6a85cdfd32814bc','2023-07-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$CBiaddbc8yOUjrksWUWtpl4rSxxGpYz4.48heZqsO4cGHjs2pwGvA','admin','ak_136247f06247b47f','2023-12-16 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$cRPhIQN2dhi6apNcZGIiyPsO6E201ovckDx3/o6ggHaETByLNbrfr','user','ak_62ba72de32c782b1','2023-07-01 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$l52R4MmupV84c4RmRaOTo83lLuFKLqG5TbI9foecTzGrEcwSrQybx','admin','ak_678eb236ae0cb87a','2023-09-04 10:09: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=30491;

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


