-- Host: db-master-8.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$BUtdeorpujvOmKmtNMvf8tde.xiCJo32NYPle7W5zx1wumc2fMLha','user','ak_eefd6ed824585124','2023-05-16 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$1ndDbPhsAz2VpJ.XQ27CA.HY1nwSu6EIkOB9qXAFo7WrHhiqki0sU','user','ak_51a625ad35cd16f1','2023-04-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$1S215S1J4DBXq3WOp6tv55m4HLuPlmGqwP9gvKcMKwq28CtdVSxwR','user','ak_ac6dd97ed555c52e','2023-08-10 10:23: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=5986;

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


