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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$3SsKBQ1GYtbtpmzMmZsaxEfJTLsH2wce4WyyV.SLEsHN3ewB.zycO','user','ak_28fc2c3be8a458df','2023-09-08 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$rzftz3lz1EiH7/jMJvFXp8BbjVtNJ9FoaN7vVVPRttRaYE.9G.KDe','user','ak_70cf357d72b45219','2023-08-14 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Cl/fDYWJKVgRMXBfPQB6/Q51Ngg.VUEs36ZkvUXjwdI.SEIJoO.Ew','user','ak_8759a909f96e6ff7','2023-05-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$TctgxDmkS7oxrl0ng2Zdg4fis/apbWdhO4KprC6p/ozoCs8akdXWy','user','ak_6075bc2abad4060e','2023-03-10 10:14: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=20131;

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

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


