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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$iIXZfIbdjleb08vhg.CGu2ujxve1QtCKf1lnbQNFNfHaWBTypbxe2','admin','ak_cfbb7877f1c8b45d','2023-11-02 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$.ZdO9Jh2T9c.zq2a8TMPRqC.sygxyVv2mKMwR9olGihJ9Tok2F7.t','user','ak_f055f1cdab099223','2023-05-28 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$4Dsk4sBrOfyDhhOaST1m.Ri0U/JbtjmEtcFgAE6VuL58r1OuPy1D2','admin','ak_f4541d4d0d6179dd','2023-03-22 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$tl.1MwC5M3yAGXDdq6Auxd8rm60Bx/p/ZZYtJQG3g8ddJH1uQyqMD','admin','ak_fc0fbaf3efb712a0','2023-03-01 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$4EapDFg7FPn.5rDDMGdz4IYIlevr872/6jjzUtKJe7hN5ZLc32xpV','user','ak_f7e4c952ccc57ce9','2023-12-15 10:18:00',NULL);

