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


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$UcrH6MHwEWyvh/vxx3n..dUldtdaiEqhyu2XLefGNsbEkw3XQnO.q','user','ak_543ffe5a58fa06b2','2023-06-26 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$qloJfjy9.XGmYdGPyQB1rv0MF8G7y9oxvxFJsbHRed9mt2iAWIkQx','user','ak_0c0fe4d9a13e2b8c','2023-03-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$BqjRf.67yMzvELhZDIsePuiJje4l5tW1T.clfSJD34AmVgSPaFZCA','user','ak_856841109cc3a742','2023-08-12 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$3yGo9NttgdRYgBZatLxAjBaMj2xtov/a6QWWiMvW4z/GKA3hgrB6C','user','ak_7af0fd7f251edee2','2023-10-14 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$xX2/eEiwKqIuIw.s6IAK9T5jf/UyLpIXwF0oTETn5c1EiB5FkBRLh','user','ak_7fde9233a2bc154c','2023-07-10 10:04:00',NULL);

