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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$djs5VLeey7oCFGfyN2WEYf3L1vXNoDPol4UJEUrZqK5VfyFee80c1','user','ak_8ef9ede138b60548','2023-09-04 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$Nh/PNLOuUpmeSbN.tIYKtsjo8raw9X.8oDUOwK7xQvoEMgKWGJlhR','admin','ak_e504a98b16883335','2023-10-07 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$sHaEtvG2.3.X7BDhJkz8GGOqXBbv7NL0dZlH3oMLfPP7UJWoK9Z6o','admin','ak_12e354ca84e3dc20','2023-11-27 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$a4EaAPBQH0dSPMhwmj.nShjGFQ3YeYUW4DLD/cu/SaBVD1ZR/GIoX','admin','ak_9e9dd6b23ae029be','2023-12-17 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$51wj/bspZHa1gFcZ1ae2oqcqk8OImd7905LjjeJo4Q33WctY.1DBU','admin','ak_810f2b5b0c4c37eb','2023-08-22 10:16: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=5171;

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

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


