-- Host: db-master-9.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=27378;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$1UpWrMY.t3xfta.euh9s8NaekZCeFteKzd7VBQxdwkZcTRKcACIbW','user','ak_5e5a4bedea6e0aef','2023-11-11 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Eoa1GxAJmX7O1M25UysCKwUlW0uOCDmRzFOkNmCAcB7FzUbkiiuNZ','user','ak_2edafbd9206b3833','2023-03-07 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$B/H9lfDe46mIyVfOwgsjh/RvBr9rV4zuAQnitosxWuvEyp/s/FvIJ','user','ak_e29269e1b25334f2','2023-09-10 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$dPDPSyEpBPgooNXFZ2h10Cd4.V6oUAxXgrBfxFrlNWAkYjP5RFfHQ','user','ak_a29a35d047fc5639','2023-06-18 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$lC4RYRlCXXB.K/AMqXhnvm8eRRTUfH0gk/39RF55WAtzi8JYIcTBj','user','ak_f124207d7282df65','2023-01-14 10:11: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=33727;

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


