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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$.govLyC4WYJw6o9jDbDRD.q8n7MpLZP.u/5HjIRMPhqg//d4TLkH5','admin','ak_82c72f72732dfaa1','2023-04-22 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$FgFg1QsjIJDpU/40wHNDSGTytHnOjYLNwoa3EK34iIj54MpS5uGD0','admin','ak_51d9c880dbb470b3','2023-04-25 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$2rZ2I16E2CMxt5f6McYyGnCgXNiSyvwqhWUJxRv7jQnr1GL8f0weC','admin','ak_dc227efd97a7ad56','2023-06-06 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$I6j/58.XRg1.WeG0oysknrm84lHyyVn5iD5KiS9lqb6EzccEM9U7C','user','ak_af94c52105d8ebf2','2023-12-20 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$izyZVbz1e5TI10qfGRuu/mqazmHsrYE0WurFtaGFLT5mb1DZSSP2K','admin','ak_bddd2c2ca262e0a2','2023-12-28 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$mwdvWKkOz6g1vpg2PJ1AY7RGnk1CHAb71a48eeUwk1JlTcqtpQdBC','user','ak_9e5604d8070f0e43','2023-08-06 10:11: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=42457;

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

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


