-- Host: db-master-9.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=12960;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$D31M5J0TvviRpVuVkBijkeyUpeJR8jNBYSCnaZPA.Xl8qDblJn7s.','admin','ak_649f307f79af9727','2023-10-07 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$pK1g5vhfmBWSrR2nWdjzLuLwvbRgu0.MRsAgqzcRm0rcTlB0DmiBC','user','ak_edbb25797074fde5','2023-03-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$KI3qTumr3sPrzazPAs2diJY4l7dfAtC23IkaBSYNKomzCY9ryGQZC','user','ak_13439768b97a3a27','2023-12-07 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$.gyjL/VIlDV9B8ttKNulriZon5cqUGbflFJNBTvzc94qy7I0wAt3v','user','ak_69649d32a82c284f','2023-10-04 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$Uowv/HD95s7ZvH6e985OXYdaG/LqMrzIYWLsklJfVI5N2kw3aRPmC','admin','ak_78d8fe7401371b28','2023-08-21 10:01: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=6988;

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

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


