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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$mrx15HpvU4k3e6X6OMA/7/TXlAKxD25HNq9XXVeCiZD.ROWAlF1WN','admin','ak_5e723f39d542a55b','2023-10-17 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$1YwbxD6fLSKP7acSe7meIlzUWxTR.7pj.XIiLHN9OyAVNq3NSt0gi','user','ak_490f7c4578d6ca9b','2023-07-17 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$W/bFFSxM5.jcCGCgM306FO2CadxnuVGRkhw/PihK6VIKQaCLgGDI/','user','ak_2a0bf8d82b867fc3','2023-11-01 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$OpcUpyd9/qiBA6PdP42cfMP8182sSImBM9cSU2DpzIZu11hm73onG','admin','ak_a966a247902410ee','2023-07-24 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$/mIN/xDvEusSDxLJlrmASS/DWDXxTdOJKT3nOr8Olr1vl/uC/bk3n','user','ak_d7740cf881cfe2cf','2023-04-12 10:04:00',NULL);

