-- Host: db-master-6.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$7hpwmxCShNqKZg5X7/FMoUeUTOXma5d6BV9YDhJ5SL1CvJ53WAl6R','user','ak_51955396ae729aef','2023-08-11 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$HFNpiDHYnKp1Pkj5NqIDY9KZ/sm7o/mUxvszeBD4kB7ShfrO.GWG4','user','ak_3bb194db489d2436','2023-10-05 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$GxGNa7hKnqBtvzCre7TV6WMdYnSddBllHWP2ezyOaJ.TXkohX1xxi','user','ak_e51d4e4a200281d1','2023-06-07 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$svKolNqb2j2KAmOZ9xOlMOlAOOakjt8/yi3edTdi9Cnt/FDeGInB7','user','ak_3437ded2566ff485','2023-10-10 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$eTff6lu./hIPBxV2Eys0cn2buU8bxjhhyRG/hPJ/hjUcn.2mK2U6m','user','ak_72cb09179a5c65ba','2023-06-15 10:16:00',NULL);

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

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


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

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


