-- Host: db-master-6.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=9567;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$KbQIfpueRZEEyYtDM/8JKl8uu6VlQ.C1g.eP9jgXXHfv8ku/1IpkI','admin','ak_aae15ce16f0d1bbc','2023-03-28 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$zfb5emuG09zToQtZPW8cwQoLqOLq7BSEOp8/QGtitqBD1/nGqitZ/','admin','ak_c02cb8b20c61e9b5','2023-08-11 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$2Z7fuzl3RqD3t7k3znria25m66Sh7LPaxUiA3gTOpmTXbXixmcJFC','user','ak_c56edc5825d3017b','2023-05-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$thfRZcg8lJypLeuYJGXlSTNTexl8JvCSC3BeA07gGFrs1Z7NIGLWh','user','ak_b0d4d0b697a8ab49','2023-01-14 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$OEvukrranV22DTc7GzjyzYp3MYmVO/wlSYtNPv1DBaeJhdT251P/1','user','ak_70b8a7da0f93af73','2023-10-10 10:00:00',NULL);

