-- Host: db-master-3.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$DyhfDt4f0XCYk2g2tJDrge4w6kGrcaTi8ntxX/9/p46HI5OKxcW71','user','ak_46c6ce1fdc493391','2023-01-19 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$TLyzZYB8DE7rkSh5QyA03y5bQzYmMrWkoMgrnjSlWZ2i9ypMAJGpW','user','ak_5bc66a96fc7f02eb','2023-04-24 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$qoNgbEV723qHp56cApXKddeeIGwudFD2F8BZlvBE8s8IeVUTZEiUs','admin','ak_31f306c6f2a18732','2023-11-26 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$4d5aOLnhoUW7kfcv8gjHWKjWxZdV37GN5szBxtQWmw722GqBeNBUV','admin','ak_67a90099516502c6','2023-07-18 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$.e9bgQ1mgQVa619cZEBFkd3/C.QzNtGlNLlXcJLAznsypxAivjTrT','user','ak_8f440768ad0f0555','2023-06-15 10:19:00',NULL);

