-- Host: db-master-6.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=42396;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$dWxSgxom3TMZmmSdKs02Zr7lBpmf1IrbWKCKb6GnDuaflV2zTZ3HJ','user','ak_31d19fa4aa956369','2023-05-16 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$fwtqk.3aQFq9jDU912gmimJ6fwpiymKIu2A2c8dZkRttelpUpK41h','user','ak_74981f1b1e998174','2023-04-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$M.bGIL2dCvbKM/YuCN4Nv5bR.JnfgCATb8EtZRgZMzTNeyKkL5jjZ','admin','ak_4614dfcd0d0c1b13','2023-07-07 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$MS3ynkbfplmI2FLwD7JYOfFwYYEZE9EhOn09MyGnukf1/djNymBu5','user','ak_d722004aa6d67582','2023-11-23 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$3HNNBYKsUSttNy01eeJH3TYMARyThDCvWM79I/8LSh4ra5WHKJ9RR','admin','ak_a7c20c8b02665bca','2023-08-25 10:19:00',NULL);

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

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


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

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


