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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$83CKeQuliR3lIZkG/zpNNvKp713GDxOOwz.Nw2XIkXlPkAyvc5Sfn','user','ak_6971b901090329f3','2023-08-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$0Gv4cQrV5WuvCJRDoR/vEakp92nCsupeTeJA.y5Zbv6r..k.1bC9O','admin','ak_495a7aff47b91048','2023-01-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$HE2uvnjQmhL0/KoSyV3VGQqUW4c0r1.eS8dC/11WoCgaAis/2xEhY','admin','ak_2c0a13df3a4c8d9c','2023-12-01 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$.mbIgp1g2JkdPGlC5ifeDEu9eq8bBg2mwkzmOW2.LiXT7i8GmQRuk','admin','ak_914f7e7d3b57e8ce','2023-11-08 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$xYO4azEQS.V8TGtLK5Ct/2fGsqyGedKVMkGOrw9yOgIhOtg3spkRF','user','ak_6e0b718bd7e72dc1','2023-12-06 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$vAmVJUgyA8EEqRE2HYdPio79/XnDhq0eA7thTQj4SkEFjyVWdDRIf','user','ak_2b352961c4e105d1','2023-02-05 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=16956;

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


