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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$S2XpO17wJNUbRHOt1Of7h3eKVvCldGs1D3aVbQy9mRBUpFL8lRZ/d','user','ak_e7f7824ee1c67841','2023-02-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$7vQnfgJq3d6ZUbSpCIlv2ckmZnXJgCXCWyRepKoOWUNXH2X4Xe/tz','user','ak_0ff1d4d9ee965b4d','2023-11-09 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$7R3tzCN619Ba.3BDucfCIVV0e0JP9C6kOu6flKAdCs33ac6lcvJVy','user','ak_ccfbdb31be04c05a','2023-07-01 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$.oDtuqPBoaLBsi2uP04S5TKE.5zvmXd3HPqYdWrN6nc5NKC8BnhLx','user','ak_50b0fbe8094926ec','2023-09-04 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$zGahK9b2RFYw62HPRQdM55vgLxqz4UVNJa0srM60KqKsvpmvHkaZg','user','ak_16f9e35baa228cc1','2023-08-17 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$wQfNmCENH/pT20tTCBOkA394ZIx95pgR9DV2pfQsO2GDRJYxafm3c','user','ak_861c6dfa638f1c8a','2023-10-11 10:16:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=26765;

--
-- Dumping data for table `sessions`
--


