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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$zgc.OrelKhP/MSe9mv3hcc5TbC8pXy42/yVqX.eOrC2rNDNdERm7E','user','ak_b745506721f5340b','2023-05-26 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$yjQOGumbg62fid0qVQuhGUwY/C2XTaK4e/9Wsb7sHLx2r/5ZcPZho','user','ak_4a86446fa4a7fb73','2023-07-21 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$aFsXbFK37aFVB/HuN2oWnzxWFQWwNWmpdpVLMA8Mkdp/3ata5kaIX','admin','ak_07128c23c4e7546b','2023-03-07 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$fLyJTLwM1av1i0/YwY3MOc53/1ud5j.Y4/0QxKl3t5MNjKvMGYqU8','user','ak_6ff2d0dac28558b2','2023-05-24 10:18: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=1825;

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


