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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$zXnx2Q6ZPVrdTOyfGvDfeDH0SvF.eablBgVoa9Y/HiPldE2Qp7urs','user','ak_3a518af2f435a115','2023-11-05 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$UfThGswf2Iq76.88SpSEgabg88tp1aYYP6NgiN6JDgYvbaXpa2J0I','user','ak_acb0883b6b7a9d0e','2023-01-05 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Xi/4BGM2J.HzCKPkVv6NX24gOmzkzbK1cXd3MzwxN9jEhYlzb4XUH','user','ak_ba3b2f6654611801','2023-10-27 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$CpQty3axfu9l1.Ha3JFL4USc79vNUXPuuZpMsB0rhou8aPxu7NjkZ','admin','ak_e9249d0793f953b9','2023-10-05 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$G7Z7SAwpGXyfH0KuDwDh07DCtucg6N1JNimOAzqpacwi9gC1m9Dl8','user','ak_3f654b43f5ee211f','2023-04-04 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$DiQt6eAlgi0FNfkMBoKIWrV83DuYDPmdn9LZHnNDqbdH4V6FQQdCq','user','ak_c9dedba3b0517272','2023-07-01 10:18: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=15720;

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


