-- Host: db-master-9.internal    Database: customers


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

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$PlW2huZc2qnH0jv2aixOnDjO1uor3yNt06WLYBo6ZudQ7t6PlOhrs','user','ak_eac77ccb6220b946','2023-02-27 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$u.1DfWZBUb0XRToAJ7T6nCvuA/ywXZ0jhv6p2vb3dkBrWfg2U0NFW','user','ak_d6c14cced53374ed','2023-04-11 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$w17JlOp10zttaOjdVI35LHSyrfRkjfzfI89S3uTrwmTsyy2Hrmhsk','user','ak_3c7d2a5853b883ea','2023-04-13 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$nu7NasOSLDZFmPWoadERp9IBKAC/e6NQQqNAsL0IszeYb8UziIVdf','admin','ak_675f9d67c8c59cb5','2023-07-10 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$.1f99.brHIMx1nlbeDXKR/.zUcjNpre5yu0Xj23/WiywNuCfbUjUZ','user','ak_4346cc73faf5df01','2023-11-20 10:22:00',NULL);

