-- Host: db-master-2.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=35530;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$siHiG5q6phMdlaN23eq0QxeDUwZrtsxEulkoJ.palL4UUUH05HrKU','user','ak_1104d610ea4ccec4','2023-01-24 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$QTsHq3u0NzIE06wqbcWSjvae13EDysLUDOjXVBXJ3NTrGt7i/eKWd','user','ak_fd6ba36cd756c86f','2023-02-01 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$OVKG4/94e/GW3uISpX8KknI5g4dDZSWZO04lX.N3x853/ooFAjm5d','user','ak_7a55027c412ad897','2023-10-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$e7k2Grhwm5cVp1VHKN4t3meHb0ipd/Uzm7r/S8OuiZy/mHrqomvZ6','user','ak_a492c2eefc0500c3','2023-05-14 10:02: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=21419;

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


