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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$ofTU/mmB5dRdVJ8BOzVqa6dx1KobMpjX75TmYAI79ohoU.mdr6Gj7','user','ak_a144d505dcf2abaf','2023-07-07 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$tnnwgj802O976kFyqH5saXW4KJmrNi9RN91PmoevxnWeUro2J9WnH','user','ak_b259d6e5f8e33219','2023-06-09 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$8fncIWbLtE2ZlgV0OWWKAJgpcqasdmgPp4sV8GJykWeyIOxDO5x6w','user','ak_69b9a92431052362','2023-07-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$lxm3Xj69SVevpu2LQxXzmV59OKHTGVpfDE2cBeCqpLyZ0sS7W1UTb','user','ak_ab5b5e7478fd0c86','2023-02-03 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$HLpVSKss3dhilYTkj1FrlX1hUM1im5oC/hYd4OxKux0lzf03vX25l','user','ak_715e9ff9eb885f73','2023-03-22 10:22: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=33348;

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


