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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$RLlphAfcONFI1RduSQpOnYxulZyC7MIE2FawalHWEV5dLIkcjjkKQ','admin','ak_82f60faedb6b6f87','2023-03-06 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$lkkZrEuh4aRaEhM1wgu7cIDTkdae7awp5O/VMKJTK.ab5XuREFFit','user','ak_375fe89ccf4f31ce','2023-05-12 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$.6oLLR8x8wntQ47ThWqC5koQ6VEptuXIqFyDqOTTu7LcHQUnSaKO.','admin','ak_32e273881295e10f','2023-03-14 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$vWMyN9l/OPOcBKzysVSMGPTGDi6bL47I4Lmq55Nc6OqCw3b4ydoqn','user','ak_1a00e88a424b674c','2023-04-26 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$2TRX0xCMmbedpGAcdrWIndOoSD4ZYgOM/zGtAFG2mrq.KbZXP5A6H','user','ak_10ed0f80db9e62f7','2023-06-21 10:03: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=33978;

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


