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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$nXuBcK1.thl73E1qvXLFAaDMoOojGonKbkfJBVMJcbw1x8OBZ1596','user','ak_5040e035caff224d','2023-07-08 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$TgQG8QP4tqa5QPkVzyrlmXixamFPjfWHvFITNEJKTF0vC099N4Uf6','user','ak_5ec9e751d11fc213','2023-05-04 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$gMkoZWEc5iqxpnnCLcrZ1P1lqdxUjA5grr1FHVKLmxVosC6I3GJuq','user','ak_e8dcabaa54fd90b3','2023-05-15 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$BHcja.s8RxxrsBbIA3Z6Elj.WxqRw.8DET0sq5PqBD79r1Ss32q9W','user','ak_c9e651eaec7d0492','2023-04-05 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$tSo1RvpP49IM3m2eDpceg2pETpHTPo5TuGyHOBLHeMUqehrjx.hHK','user','ak_03169a784be645a5','2023-01-19 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$qHvj.PQefMTeoGAgX4624lMz92fHFc0CnbWLAOFtWIxAfQEx50uL2','user','ak_4e95c3dda3b624cc','2023-11-22 10:09: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=15314;

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


