-- Host: db-master-1.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=23828;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$CqgsTTJZyXvOzSiLbu5MVfyMJb4PfKPLAJDPA/PVNFCaUVWfn1hk1','user','ak_33387ccc78bb8605','2023-11-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$EI7KDKewwbtQ1w1Mr1AytoXSJpf.4GyyUd6HopZiYSKQqhbs6A7Xj','user','ak_69ef2cd48ab52318','2023-07-27 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$pudXXIrJZO5625v2lUnbngQqU.oLwV1TOGorTTkN.KQnR4tVflepZ','user','ak_ddee9304122f6f9c','2023-05-26 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$5b0ClUEWX6Us/7e5YO0Gxc1y.ivpElfOsFDMEv0dQb9SE2YZDOpCA','admin','ak_0ddc01089f6db20c','2023-05-06 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$deGHkTIaFpu28cmnkHCl3tDCGE3r0QcqW7bZj9Oyyda4EWL6pNo.q','user','ak_5158c30d3ddf8e42','2023-09-10 10:04: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=45765;

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


