-- Host: db-master-7.internal    Database: production_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=41610;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$b0FRAbA7XFhKytzsdzdhbarfDeBC/hXSm3zAJ5aF0njrieSHuoqlU','user','ak_6ad1fbb0ad350eb4','2023-02-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$B8tC6zJV2G.eGnJ/2FVniGeKB.RD2yq0AJIMe9B3N7.NEKdtI1mEj','user','ak_4b4acade2b04b80c','2023-06-27 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$H5tvLqv8X9l08hej3v5TaRoMxOSPXuuuBzUR3AOBaeCmASAua4mDo','user','ak_56e2daf4f7612179','2023-07-09 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$D7KkR/atBMtGFC1wC1KR005bLqTqGoAy7MW0RjaafPCrs4ixN9/G8','user','ak_3db3eaae176bf9ec','2023-05-16 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$UX3nZzF2Sj5SnRnRXJWK7wzhoGDrCLNg9RrCDBuJTf853EznvM75o','admin','ak_1d096a6910f7f73a','2023-11-20 10:10:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=32715;

--
-- Dumping data for table `orders`
--


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

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


