-- Host: db-master-5.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=44428;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$zZnX777zuZIG6aFpyt5oUa/BdMldE4lgsvbfM7BR9iVwyp/Zjd4rZ','user','ak_c865bbefb4d84a61','2023-03-07 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$3mD3nvbsXEia.7b4Mq5KD1h.lU2btdvklzGtqU.f2psce8tGzAXDM','admin','ak_1365229a50eb0a17','2023-06-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$bi1FMYPHZ8yH2djr9fIa.m61F1y.90Ew8IFRmgtOPauN.mn3lQM/B','user','ak_eac8a4093922f3d9','2023-12-06 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$.Er118ZRnqoqEVli3GHc/H6Sd/rSYYTj3mI6GFYeAtbRehtHy52bI','user','ak_ea6b3fe91c697921','2023-08-10 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Li.BOwpwk3IDwVehUztgxr3YO99l6t3bBhmwJSzGlMNOhpLnA/IAh','user','ak_903c1c9e289d10c7','2023-06-01 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$9IHAY6rmNpgZd2BzVzfDN/szcXA4dEkgWtYaunDE9vnd1Zk74XSJT','user','ak_4c6093a03a3fde00','2023-01-09 10:17: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=10199;

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

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


