-- Host: db-master-0.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=19980;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$psJii.GYWoCAaEwu8qZaa8QkfKnexDK.wlzGUG/ceEOgfqfWQUHAf','user','ak_c46cb7a694f06637','2023-10-25 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$.5LTaigVtftna/fkpMXdBz5jDqGkYMtk6pmDklD923pHBb9YNbvio','user','ak_8f03202b82cb012e','2023-06-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$V1nmYqXsrdm.iwaJC1vtjlB50U14iInER6Zc5SXQ.0XO9AaC1Zwf4','user','ak_48fcfb7b5096cfb4','2023-06-15 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$hRXoBN7qJgRecRrdL.2GG8RI8ic05MphHsspIzkQSWH1AoMzL4qae','user','ak_ed0b1551ecbe5d7d','2023-07-05 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$PETxfQeZ636Y1yHeOtgC8r4dDawt3PoL678yzRU76JTj/PprQBCCg','admin','ak_86521a5d689433b2','2023-02-08 10:10:00',NULL);

