-- Host: db-master-0.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=33073;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$vA6P9uu9L6mFrZrQat1qLBVzdCR9gbZDUeeJg/PVezF5ENOOrMe3L','user','ak_97adec7b7629b3ca','2023-03-13 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$BogMqfEsFl329Ht66kXHnEqwEjTTHIlHA1cmsdDBUdwnOyIgjSd.z','user','ak_c766fa3ecc34a29d','2023-06-05 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$FpnVrvr69vtn0FFVB60sNFD0TAbwi0M9Bz5/A07XWJZIriBuM/Kqt','user','ak_a76f09b877d7a3dd','2023-08-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$vpCxh06Pp/GZaO30o9t2JgxcZ14nDLwWQu98AfQvQUpaKPpm.kUmJ','user','ak_32287c993f4da235','2023-10-14 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$E7Hx1X/qJHmsuXn8Dfv7.B6eYvujvQV0x0qb6j/H/1fTLAsPE6nxJ','user','ak_91076d94bae0d495','2023-10-01 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$k8wS3aeipnRRec2Q9Px3lvZ5gKicZ7bvCkaXCjSCD86aFl6Wle1b6','user','ak_cd6d98c250a039d5','2023-11-12 10:20: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=31642;

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


