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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$D8O0/8/GkQqWm/hCCbztpDXCSp/qFVCJ7NuYvXt/mZRSJyrzcePRh','admin','ak_9b12cc0384a26316','2023-08-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$CGmFOJEMqJ4rJxoHrZo8HeX2jPwaWAUUU5fATMSMMKz7IoZrZMoTX','user','ak_0217e000f2371106','2023-11-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$Q8N/eBiHBRiR3gq026oA9gCaIJYxT7LJr834dbRSJ2YFcRs8SW9DR','admin','ak_d1a0c98cfe95f6ba','2023-02-25 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Bf1plvp.6Ld7wvnkD7J9HxBfdYHv5MgPvwCysLO6Dv9CloOZA8pbc','admin','ak_97479e444d377f17','2023-07-10 10:00:00',NULL);

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

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


