-- Host: db-master-4.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=7601;

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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$UMKTkUbKpJcidbIz3WHzU80vHPuH3dcCSiwtTc9RnF2v4hTOiS/aE','user','ak_93d9dc895ca2bd55','2023-07-05 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$U/coD1x88IB8d1AZYaVDZpZue9iIItF5j26VsvBw.ivy06iEsPTD6','user','ak_311f3fe2967aa5de','2023-07-10 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$gPLJDNdxmT3oI/R3pVuvegOotsfFcwy.OZcPgwRYIn7NB35UbNgon','admin','ak_f3bbda715160f0c9','2023-05-20 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$XgDzQkXyH5vTfhPw1h7DZBDI65lAmWqWtfZHjHuk4e7VzzAjrKSJM','user','ak_6c849d1afd5c213c','2023-11-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$0TMsdlFA/R989uh9IXQhDUqKtl79pH2eR5BoVrG4DFTSe/3AjW93/','user','ak_1701959376f9cdcf','2023-05-08 10:10:00',NULL);

