-- Host: db-master-6.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=33103;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$MD6qb9Qpr9i1MzkNxXQAD6yIjL25Vlv7yhCdFElWh5PrByCF/PD7y','admin','ak_4f4c073cb64a1ee6','2023-03-04 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$6oUOyvR.bmRtqQyCGlDYjsPASDyr6P.rrxHuDQK9huftmgBJKgyNw','admin','ak_6bedb1e747cb5e51','2023-06-05 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$TgJdhfpeWLpnRFEzp3/ZlnbKHtghYo4UOM/9tWjMMIZj2.UuVWPqH','admin','ak_3a61e8421e1bb5cb','2023-04-01 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Ux32SLi5omxSSr644LXgejSPdNZ33uB1MvQN35At4fpNvp4go2RtC','admin','ak_9ff428fff267974f','2023-04-15 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$/zErN3G3F003kKmUSTcR0Ple3CbgKCi/d9UwMRGTDVTmYItOF12cr','admin','ak_f86114f0e0188186','2023-11-01 10:18: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=23195;

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


