-- Host: db-master-8.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=49773;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$NLtRyHub6lx7Pp4hYGaTYlb5B2ziRTAEf7Bjlep24geZVB.UvR5NZ','user','ak_a9fe8bac6e90df36','2023-04-08 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$WDmUyVaFGmAjWUU8wEp/8E3FoR0nZYt2Hk5vfXHXRztMkLKiW4Pcg','user','ak_22511efd5abb46b3','2023-07-19 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$7P3EdlaxMxvDstq5rbSwgOVq65.AQbaEn0rGE4X83u1rYuURr6aHl','user','ak_999dd9003d0ee44d','2023-10-04 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$JHZMu0dmwjXZB85wqOFPYnuM7yUpMeXbb/380RhOY8taYdLYYtTxF','admin','ak_b45107ae4d563122','2023-12-04 10:04: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=49777;

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

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


