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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$W2GMyRiB/jFhF1ez/KbT9potrjVdacIU95PiZYIViV5ErH2QDCSpl','user','ak_cd94c6a731fad6f5','2023-11-06 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$t0F5.IzU6IU42WItoiJb/WC8fWDtOG75KoCi0hZNP/3uWCBAHVf7I','user','ak_a5ebd8d98ec92702','2023-01-25 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$uA0yfrkp56WWFDnejU.6Ki4mq/lmlCV33KvFQf7lI/XIdZAqXWreF','user','ak_4591a22ec2851ab8','2023-05-23 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$eJB5WCOKI2OjcrbTVqafiKQOAFXPBUTp9qDi2UbMmrnZGel8PLa.T','user','ak_b5fd7aa926a49298','2023-05-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Giqc1k.TkjOoc3Sh.x/8lH21k0TZIMTWsYTjzjT.LDHklJ7niOgt2','user','ak_deae9b21f6a298ec','2023-05-28 10:16:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=5157;

--
-- Dumping data for table `sessions`
--


