-- Host: db-master-8.internal    Database: production_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=28775;

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$BIg9WeT5d/S9bVYxyx0/1waUJyVLNlAi3zS7crTIMvNycfS67YBy8','admin','ak_52fad82d2758d87c','2023-06-04 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$hOGU8VIJOFy1wnaI/UUuPrYMEzAdgkhLkoRwuLglCwo3pt3n8h9mv','admin','ak_b5b7ffff230a7b13','2023-03-27 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$NhGQeZDoVg1i69ndi/6xPD4rg37Yl3g0NkdnYPJQ7kObSW3gRLN75','admin','ak_fa9b36674b563739','2023-02-03 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$TxVHhOPOKQaUp6TJh07pBLRaODN9LDZnriArWP4ACB389dzN/iENt','user','ak_b0ddf73630a16e22','2023-12-04 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$txY8HqQoEmMsymiJnYv1/zXLXwthKhWmynLoGs3fzyU6AN0hqEuGW','user','ak_201efdc8135ca614','2023-07-11 10:12:00',NULL);

