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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$80jubsGw/UWB0FoZxgKwtLkXsZAadCQ0yr3d3gEMIKGuexKy/OgqA','user','ak_370d448dac4ca8af','2023-04-26 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$wKXetY4G.h6F32hqyXMaAX.SO8hn3Bkr3GTcjS8iyrPYkYboE3ptW','user','ak_31f2f17ab4d2dc0a','2023-03-11 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$uuxrlXX3jYnyfM8dxLbbdh1mQ.UflI6RJBOLHqRbeI3EHnoNYcP.k','user','ak_329927ad0695d948','2023-07-23 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$DhIpNxNHAs5hC3m89hb7Wxiqx9zy0mE4MekWiNprtEXDr3NHwNwU5','user','ak_a06de7884d9a8fa9','2023-03-07 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$gOdocoXq32iJtwOkQXoT/nzx1GhhJ/1S1NLeBsSJ0PhsrsIRdLgcO','user','ak_1359dcbb388b5e0d','2023-01-27 10:10: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=24195;

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

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


