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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$f8gCiNF546wBrtKKVgt/8u64YptFOgSCF3UTfWeynvhEdPcZ6cIHg','user','ak_7e72161ced645bc8','2023-10-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Yp8fzbM5hGUYtchZqlnRyOJCpOgUjQmrMcUACx0u0xcHb5py6szK0','user','ak_31c2be67d1476660','2023-10-07 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$hue.jJXCjVk8Qu6ewWUqrSFmB4TlalwyO.1RWxB0v4IUCldJ6FRSB','admin','ak_65b99e71b44237c8','2023-01-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$m7qwd5vqD.HMVhSul8ni4o3URxQ.WCe.w.QjwLlhAm7RpUe4yReWK','admin','ak_1fa2f1055eec8f8c','2023-06-20 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$VaP45S0YhWMEqdXo2YL8K2XlCSLrIz/mzoTBrHAFuJersNFjSJTDf','admin','ak_fcd7e981c1a54fa1','2023-01-22 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$v0bZQXrQ6bQMOMPg.J3DoxbLMcuZA4dCKMQs52SJQREQIHk3Ftl0B','admin','ak_dbfd3e8f68673ec6','2023-09-27 10:10: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=7765;

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

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


