-- Host: db-master-1.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=16016;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$vYViiwbGUPeOg9ijmnVyAbtayNYS1EwA9PekBDdLrkut5Bg00Lx2Z','user','ak_4738be5687f54e57','2023-05-26 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$DZ4JvQ.gjbpuVpUR3su1EbGu6/y.wEOvfzSc.3fiwWb0SgSZg3Un6','admin','ak_06f4ae1daaedcd19','2023-05-16 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$uPQgSB9HavrTyPmbozZtaVsIWlN/439ffOO1dAOog6hp3Rq4L5BqM','user','ak_71cca1dc8d8c5c2d','2023-12-10 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$6sBCSac3pRNmZl8fVvn8pnkx5cSHz2GC5nPHyb3Q.wtrIkWA4zG0g','user','ak_9051ce921ad9fa6d','2023-04-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$6NXZuxkMYnP8f8AgoXpoMPktrpJifqbo1DTyklwx4I1A32j6K/tGi','admin','ak_7228ed43a494f1fd','2023-08-03 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$df9DX2e57t733VMiJTyc.pZt/wdM3aRpjKqKXiqkVOxmWBo.S/A3G','user','ak_cd11b96a918c8094','2023-11-02 10:19:00',NULL);

