-- Host: db-master-5.internal    Database: main_app


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

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$aWsjsZ.RW0tMWvDBWvPtxhFz9rZybfhVB5MgT7NCDz5EqEEnkt4nd','user','ak_151dd543d669a561','2023-07-28 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$GdvC3D2iDLRwjFD/USrVByVFiazOYSBdHz2wABTyMlrzU3NnBrcq4','user','ak_fc50d44f7b235a0d','2023-03-28 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$0sLC5UBaNPThfIjIdSU45l5HPZQe8q4x5jHEAhgUaPhiAhYIUZbT.','user','ak_83b466d0377aa2d8','2023-12-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$20W9YIKEzCryf0SuHoMsANlDwC9g4XDHXvM/6mthqu8kpkj3Db1Mf','admin','ak_d0beec0b6996be4e','2023-03-18 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$n9hqiGMUjA5YSd0SGML/9NHtUltBP9t9BVYqoMd4/sKv7kz9Gueoz','user','ak_ae859a60f3bd91fe','2023-04-28 10:11:00',NULL);

