-- Host: db-master-2.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=43625;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$WE.fQ4OHDlo77oG4KSO/oGXz32ez73.h0DEASKNr5lZ4rtCKUAxkw','user','ak_4d16922157ce0594','2023-08-21 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$6B.I2y2gleKIbMseGWTb2TXsCZzGJ9EufdWgP6UHV6IPJNkLYqIj7','user','ak_19734d2976a95ea5','2023-12-21 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$z.W7cF.1zdb1M2kkSoNdqWW9FJrJ/cl0JfSW3gs.GUcX2k3GK7abq','user','ak_cde098aa237a699d','2023-04-21 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$MwXM1a9cEMeh1JMbBY4QCDNdtuO57cNH/daihN3gASoWLZ462V/Cd','user','ak_a7f14e6ecabb755c','2023-01-23 10:02: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=13704;

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


