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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$yT9xUuvJyp/Gm2nTy06mifFCe5cCh.BX40eC2LTz5q9gQaSvu7tOo','user','ak_94ba9b0a7000789f','2023-09-18 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$AIXpLYBWJRIlpFdg22A1LvVQ6BzKPNYVdiOm/RKEq09Sd/I4SJu51','admin','ak_3b1b3e13fff1d8c8','2023-12-26 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$uyRDkuWulVs/NpD.nD/AQ1wKw39bQOk48t5RmVuxUFmrX762S62Q8','user','ak_efea2e917493dd27','2023-11-28 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$v2H3TGreeJUhj85Saq3m4b2ZfRQM2SrIDpDCzB4EQ8gPGQI2dKylt','user','ak_37e167e5548c71c3','2023-03-24 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$vhfHZiVcSFQ4EMgTeMe6JPYzdqq2f9okTkN1bsuZpcs4OnPnxpfaV','user','ak_82b05cc441c49f53','2023-10-10 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$I5wgvcPqlm/H2G1owQ/.Ve5evQXKUjSWPuFhCll/l2Dh4IoKAaKc8','admin','ak_6c7304b82623ceac','2023-06-03 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=28695;

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


