-- Host: db-master-2.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$sf2S9fwjjunxDzL9KKMWUceA1LCc8L4yTNV5adpQ.52AlNKePNC83','admin','ak_246e0866b7fb0afc','2023-11-10 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$sJEFP6IvU7X96pBIlaYoF/NZnCn7a3k4hHh6GTIkMDp7IymN4c7I/','admin','ak_7da229aa1c5f4c1f','2023-02-15 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$.mp8PD6NgaCzdZL7osLnionAzXs4NJX88QR5ZIY9XSsdpHpVEJN2p','user','ak_425b0b91e7323b9e','2023-11-20 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$c2eFhPtx1TYlP8vjvlZK/VRqzOmy0BNYtf4LwGjfMtNpgopglAbNf','admin','ak_4d10c8be4be01dab','2023-04-07 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$q6RIZ8m7lZlf6cnbR6STLakF.0p/LDtqqKc4Ukg5wGPs2uDd4YWtr','admin','ak_bfc9a297c7a00bae','2023-08-21 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$fJw.FDpug5sSPe03jByT73kiRx7qUFpZeleSz4ajvDXHoFO.Hp0lR','admin','ak_e85210542ad30759','2023-10-02 10:11:00',NULL);

