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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=20723;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Fdw8IYHdjeun3aGM0AKXTBgioRX0ABiIca8Da1CEo9xP/mCdYgpCR','user','ak_55338d0911961d69','2023-04-26 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$UmLR8RG/I/xOrVEGAgRV3E2CATVG0R.AD1HqHnKFcdTL2OCAazGfG','user','ak_dee6a85b90579ba0','2023-02-04 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$VuGY8U81zwRiaLsJth4lyctSWRfxSC6IQVt6fwQX8z5K/KlFxoL08','user','ak_1fb28715e458c3fb','2023-07-18 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$PzgFL1Qd1gOTNmPtnjnD3WTEDQ9hP2doNutl6uP8ybJT9CfOPMEjQ','user','ak_20f39676947b973e','2023-02-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$SI3xVlUC9BD/OzgKcPuVeiGpDV3UkxwRJvisKxosoef6OxI608z.o','user','ak_6f0ff5539dd853b3','2023-07-13 10:02: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=1646;

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


