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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$.btR6fZwCNwdK0e7b1M2fXCwiFLMO8.NqCk/laxCjpaVuEasH1t9B','admin','ak_bc11c7886a9feb60','2023-07-21 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$ffAqmHNoPeH7/Eea.QSCP38jTgZajuZ3vlGhlsOKMBM9Einmq8AUL','user','ak_898d2d98297b37a6','2023-12-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$6Lo4t97Vvd9crKwb9eTIRzXVAfStYdsFu4mVsuwZiFWEkK9.wcrDu','user','ak_ab433ae818014b17','2023-10-14 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$J2QLDSBLomEEf2CkIcfWnJmopXXbqTsKndQt9.6eYDdm6nz.h9cX/','admin','ak_6aec5e1cf93439d0','2023-09-16 10:19: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=32426;

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

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


