-- Host: db-master-1.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$zHDjOCFxunP5PQnXwvhjdoDPSdqKSaAfLj1PVzbbYV1MB6x8feKao','user','ak_37d498aee51a9d14','2023-02-08 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$axJ6uOH1.bJ1b8jKvJGxGhe3uf6VEiYn22LaG6wHgoNVxdqjbiYO7','admin','ak_878dd8cc1148fb21','2023-08-04 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$NVd/H2iUFf4S8yCJ2OkMyY.D0hMT6sqOpd6iYwfr2iE7KWNOf/ehR','user','ak_71c58021dd4d0991','2023-04-02 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$AelgM3Y2eu8Z4fZCwUf9rR0G.IFY8hlAxT.Hl1Q0VIOawYqpKYHD8','admin','ak_b0e741734e5d325f','2023-09-14 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$5/a4Zf8u//oH0iS5VeLBfF0.KrbQsJX0dEK5HZyrPAcYceTazKnAS','user','ak_724dd974dc05a3ff','2023-11-10 10:02: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=24775;

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


