-- Host: db-master-8.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=4504;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$n8spqpTBPK2cggqanOyjlWBw8E4dkephzEl8q2/a7pu/U61vc.owQ','admin','ak_5be888164a91a02e','2023-11-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$HKewEZcJRZMDelP1gY4V90c5FYYL67v03xs9Dnv7Wpwjxoby95KzW','user','ak_88792ebca576d8f3','2023-12-11 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$7dzXkvBJG8doxMBcbPUAgKyj9.qfhRh3irF.4y8pBT4cf3fbNLjKL','user','ak_ed9eebe5bf565ee1','2023-09-15 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$o.CxL6nrTo/dm5VgWmCySlLqBdBLbj6komUA/I3Fend0fU3ODVhZw','admin','ak_c6365d8429bf46e6','2023-12-05 10:06:00',NULL);

