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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$2wM1jYzzLydfZp.ct4v5T5iHJ3qnHAqWS4wemfpArPe474bkR7.iO','user','ak_eaa91055136b3c13','2023-11-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$gtMCFdUcJrVMA/1R5J2iwGAYgphFA.G7Hwx9Fc4KentWEhcrvPBoo','admin','ak_af9d0ba23a5534d7','2023-05-25 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$flOTLn/REVN9M95.e/fUm4oeZaVgKdK0PlCHbbPFm83wAQI0gG38n','admin','ak_6120878e90342169','2023-05-05 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$33f/0iQWXXuMBKyRwhBuyJgc8XHlGfk2jcpV11EsnotVktZDP8Ek4','admin','ak_9d1458acea38e52c','2023-11-16 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$pyBXtH6.d/voMPygxP5YUoPOzAUj4bxfRJyqwLrP3WS2mUBLN9Npo','user','ak_dea5d14080a50249','2023-07-21 10:14:00',NULL);

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

--
-- Dumping data for table `payments`
--


