-- Host: db-master-4.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$43ZpN0/k1cwKWzxcJva24Ts.ZH8cRZk8vA9bVrgvYq7C0UGqvbIwb','admin','ak_8b3a548617e9a260','2023-04-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$UaCxxB9T6i2Cphr67guLYzEqJFRrt1sQXvANEJTE28KQdZdZntRS2','admin','ak_c0a27fd0a8387a2a','2023-12-12 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$uIH15I3Vqa7ahmjj9LMxM6xThOTytw6Nwq3Mjg8KFIEibLJm/BOQH','user','ak_53f48fd3c8a054a2','2023-07-21 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$WsG1fEubjVi7ryotsbc53b3EdScqA64Bz/taA2xc3pyirGJ.t1Yoq','admin','ak_c01ef5836dae7ae8','2023-08-23 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$kzBjM.DVcwLeYNREn6.ye7v9WieRxuwfpq7zSTXNu0pe4amYpSff/','user','ak_e7957ddb0d4c3bfe','2023-01-08 10:02: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=22667;

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

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


