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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$0bUXqTFIZtM0mbPls.gz6Jl0SXIRQKFsLF6lqIBuIGpxDgZb82Tln','user','ak_9c2925725ff303c0','2023-01-11 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$5uncOFEcmTVykmF/SdTSENy0B/pFs8/8LIzBaXZqQfa2Vgs1cBEX/','user','ak_c818627e2f37135f','2023-06-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$J13LbWtE4U0BuLCpi5Ee5hbRVLFG0WyHz8W19auosKU7F4ynGByH9','user','ak_634d08cb21691b9b','2023-04-11 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$phVONflBE0fqWMR/saADL0mHWmged4sSBqA8fONHZwOT/aEDfKauw','user','ak_ebea3b9613dbeb3b','2023-07-27 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$yEMPzdDR.JK6TnWoOIZE/O4JlA9HiG2St83BL/4YTFAK6C/WRyElP','admin','ak_70e32416bacd612c','2023-07-10 10:13: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=37367;

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

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


