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

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$9qitQJ3sHC48E7s7yVBksGVCqPvVZQh0VSoE1SjJjeZxC34.lMPzt','user','ak_3b9d99b231c80fbc','2023-03-09 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$NGSwtPgInW9nKKZR4LUUk1WQ.FwL3cevOeIXGEyAJdKYxemcxLT2V','admin','ak_e61f3befd2f4987b','2023-12-06 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$L9WnoCE7nm/1wVgdkJ8qwM13CVy5BjHII4HJJpBbTtnNA1PPWaUPN','user','ak_fc14d201607d97f6','2023-08-04 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$KdaqlprxPndHlEa.FURlmNpw2Q/yzfx1md6yytwWAR3RbBSjQRtcD','user','ak_f4eb509ba8555e6b','2023-07-19 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$N3LYYzJbmoDTrT16xHKRVPvQcCzh7Mjn/07yFMgwqvZqAXZs6ffsl','user','ak_337e22e659eeb226','2023-01-22 10:08:00',NULL);

