-- Host: db-master-6.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=21522;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$rDx1JP5G9m1mDmvViJQ34TEUyIDK6zHa6zqydYtS1u9IQsnLEDQ.N','user','ak_95f37169f6b497bb','2023-11-09 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$p6W2m/IW65HzHcPN8LSmUBk/KNuSxyYxehZSSkHoneTIuLeCbgoLV','user','ak_842b4f8d6d4a39b0','2023-05-20 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$35m1Dhc/HxwWuMAZGIyk5P/.htzsMfJds5LASFK40x7nkTLHidvpi','admin','ak_e28ed725aa0ecd1e','2023-09-22 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$No09JE9jIVkK/Th725dYFrzzR1BQ94SAHBtFX27CaXkS6WKFB26X8','admin','ak_0a826718e0dc30f9','2023-05-19 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$CKVv0xQsrMyyrVfQebK/7yuS2hSVqd4bOnikTwNBjXZQ6N0atGiYE','admin','ak_47d41ed48c6f1c31','2023-05-14 10:00:00',NULL);

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

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


