-- Host: db-master-8.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$TEoNX6jgv5NeZEWZdy0LKDRnPq6TOJ8QUJoBa52Ka99jm/3dEaRDq','user','ak_3638ebbb789e6608','2023-07-14 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$nwGDS0K3tkBNKLp2cWBWRKrJqDT67vTxiewzsKV5ozYywWgyKTfUJ','admin','ak_95231e72fe61c0bb','2023-03-03 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$leLf2qd1I/Olc8yzAKrhhbo9vCrNU3rEzQ9R9.Jc4EJ0/5YhrEfFC','user','ak_2e80ecc2c3262547','2023-04-06 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$x/clnYH6svWj/nbtjb3UIFEUrAQ0CZcNSUT.Df48TV.lvnu3nzJOn','user','ak_7fd245e24147edaf','2023-11-04 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$kwUcPJQr3U4LAjQHLo5Soaj7p3ojXSceFfezyukhl6JLh7MjeN9Sv','user','ak_cfb1fc86de794317','2023-02-17 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$ULjFYCTXEi22uUdtdHaBWhK5czNQWIr/tGXPYvNNmEkyFKfEHH2xS','user','ak_e1458f6ae9698fba','2023-07-24 10:08:00',NULL);

