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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$HsLMbtzjwW8Pkz8hbkb5y4evUAI2AqfjealQ8pqzOPbZru.HXfCVl','user','ak_32db935a48f515ab','2023-01-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$d1KN17hN5IBfywXze.KCY/mlzcOfXiLKJIkxSTkecc2Km7IeNCA35','admin','ak_535e829062e09e06','2023-02-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$o/.g.sOXZr8KEFFrLq0qFiu.qwxfa2sy6JGRHAUj3VU0l6D3oYD5i','user','ak_1ca8e7c9f450969e','2023-05-27 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$yjDQDcR.8kLX1vxiYpYS2IAFoUg0OMl4Kj1MyT0A7eU4RQg3VCBUE','user','ak_d17c4004ee0355ca','2023-04-22 10:01: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=40616;

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

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


