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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Ki7NVtPl4n2Z9zj4.69mEKmfc/kqsRmjcuwl870BhUqsLq07orx0c','user','ak_9e18e72651718e15','2023-03-11 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Y9EDGGfUqSv7bSuUCagTm3ISDCwx3Qsb3rKQmIMJlmHuYjgSY6ltS','user','ak_97e4d9ecfde55a27','2023-02-13 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$XXsbHRmj8Nh7i1RuH8Hp.A5LEUQKg2fJYh8kTLojTuvS6MPZYxdAv','user','ak_85b190d033c4e584','2023-04-18 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$6ACrHlaTEH1L3yRuopPD/QqH83xIgTmE/8yUdL6lybYbtM8zRbk82','user','ak_683e6347935041ba','2023-05-25 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$cMKW/J7GLcO3XwJXjqsFgt1Ey9RF/MCAz22QgcuZA.S5taOgkO/Tk','admin','ak_169c68d85766903d','2023-12-06 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$mlYs54ox.JJW53IUIYvCGaljc5NP.iVeou2VnBf95eOcJeohyU9zB','user','ak_c3252370e1b34149','2023-04-05 10:12: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=40034;

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

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


