-- Host: db-master-1.internal    Database: webapp_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=36936;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$Ohfn5eHaynC5.Wj4ecQbOI5VI1m2g6wUaPKuMCRxQ.o6f.LlwwCSV','user','ak_102961a155434a87','2023-06-20 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$9XavuFH/9Xo//MOLCkTmMiQOfjydLJw7eE9VF1LG/LZB676C2qtu1','admin','ak_9bedfb4292cdb6f6','2023-05-10 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Rx.7FpnIUZjiyPtSQh/AJ11Rzy9upUXu3ovoOPFX4RibGDK/JX60A','user','ak_4a362d664d4c60e7','2023-09-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$XisCNrZZXRuYsDpGYAWWkZUZlZTKKqVg6IWcGR4nu4t2piBDij6rY','user','ak_136e36b868632d49','2023-01-05 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$AIQPSr.mqtGEQI2jpP0YAgyKX.ko9s5tHmUAO4xbN7sGIs2LZACIN','admin','ak_05cd9ae336bc9285','2023-05-05 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$9XoBme0RY95Dmak7nLqpCaDBbCYM/flijmjDcB.KWF4MIPOgMTIYO','admin','ak_773e38d0fabfde57','2023-03-24 10:06: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=15982;

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

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


