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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$6RvzBhG.pc1bEqEqJNw3b20TMmRqOdDCABsgnLCsQy4PPxtmjjWIE','user','ak_09df89a210569718','2023-07-12 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$gkckuAbv33aesN6E/fLZfXsKlhhewpVKpekAYXddm2cb5GFFQu5bl','admin','ak_e9b7ef4561f4cbaf','2023-09-26 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$8DJxa7.r4ylqPOMZdUB.3Xzf9TzQQd6Z/AO6eEpCJXuXB7Odv7IfY','user','ak_9463bed0b67b88d5','2023-04-23 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$qWWU9iclFceaMh8NFWU3qAYABvg5VbrEknGsUZrOeyQqoBNp1rhF2','admin','ak_845e517b6e04db79','2023-01-06 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$8tWAFWXjR0nwIrntomyTL/0u7nCNa1f31HlJxTooaN/YGyGxtw2yj','user','ak_f596cf3f84fccd6e','2023-02-26 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$lxlJ2DpjMy9aKc/CCn3Kme13fWrUCpEz.O.Kq0lWe/b3U8XHspH5F','admin','ak_4d9a1c8b406b52eb','2023-10-06 10:17: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=44083;

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


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

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


