-- Host: db-master-3.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=2315;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$9Pc9CZdo0Umq/AEkODtRbKOjHAaFgNFB8NZzhJc2fUDA.9FY1p1CO','user','ak_3d1e46a14047f58f','2023-10-12 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$/6f9zo4VDw4Ze1ups61I0Lm6JI2wTtBTgTp.KgEErv6ZuzezI1y5h','user','ak_60c18e32bdd3754d','2023-05-04 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$z3/cqSt5tvRKX/dKJ0.5ZJzcD1FgFoaGtcVBUnSFF1DDWyCHDE/9Z','user','ak_578a3128ce1ec191','2023-11-03 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$b6xKjdIx5jjm/gX/XKYlU3l0YCczG31/vz2NuKWNjwXOC23zo9arO','user','ak_2d06d0bda4dfdc6a','2023-05-13 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$RrxsKtYdtKoNJgaRbY4/O2sMvfulwyuhNOFEyr2KsgxPu2KsZ6Bw3','user','ak_2e2aef0add0a1e61','2023-04-12 10:19: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=17849;

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


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

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


