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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$WZeSWIIJtcDH9gDejgpSXmhaiYNlawnZEd3HBSYA./iZqG0D0JqpL','admin','ak_78544e94bfb961b7','2023-03-25 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$KsRL8u0t4SUqPVWSPdnnbQHH3qgnl9Cf8dMwxaePIShZcGJMkAYdZ','user','ak_5250fe258cd80b75','2023-06-16 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$/kcP.8Z5D95jkLje0NuVhG2hcvnbANY8SEfgIPYVMWlIf.FzVs5Fj','user','ak_3bc288a152142ffe','2023-02-12 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$.boEZ3RgIdtj6U4L0Tf4Y9zTsrTDAOGqlvemh9HFxWUrIhH70wIcF','user','ak_e83d605667bbb79d','2023-09-22 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$O/xy.y6eY/b9mGCNK4yXGL9v3PsBbsb6copsrF2HLGNhwTm9Lx5aZ','user','ak_6cdc7900a8ce133a','2023-02-21 10:22: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=11525;

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


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

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


