-- Host: db-master-4.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$2tr5THb4y8dGaIRoD9wlLgvBOdVYCa3dvv7nIpeaks6bzL8fXsZ/3','user','ak_0b3ea1a037aa4f04','2023-10-13 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$5zdKdd0TwXEwnTkA3vWnAaoa6Wks370mYjDwV.Uf/NZWem3N873yp','admin','ak_dde48b4c2949a620','2023-07-05 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$9ZpqQj32CwjfXhyp5DGeYs.Lq6aB7neEzPUgawA6S7pP1zHBaZqFH','user','ak_1060a08ab42d700d','2023-11-22 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$v7fcKTW/BDbRLcgUM/xni/f5wq3Kvxs/MjrY0UR3u.EreLxWNauhc','admin','ak_3e2431c366f07dfd','2023-12-27 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$el.n/KuwaA2xvgHtrqCnjKGr307WUxioS423bHZPyc3uG3sOAjr6o','user','ak_042a91750121bd92','2023-11-06 10:20:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=34423;

--
-- Dumping data for table `products`
--


