-- Host: db-master-5.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=12066;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$uxGL0xdBUx5fDNgdtL.dMpA4DrG3l/OVietUnQd4432PewMivmgo5','admin','ak_84980db6423f126a','2023-06-14 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$6gQPC5lYjgURBkkfX2KFhFqsu0x6TJPOodmIu.Vzg2BVTcjUixezY','user','ak_72f552a9a1651247','2023-02-18 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$hEV1zDERlW1yjiNVkga.w2jBMl1HBBTTa2M1/4cm6Ob8OEJkselM/','user','ak_2eb07d186ccd9b5a','2023-08-26 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$7y/gs1LDeaW1F0sLdq43aoPH9IuvsZHInbOin7aEkQ7WGzr9vTzW2','user','ak_9db0977b332fe85f','2023-06-19 10:14:00',NULL);

