-- Host: db-master-3.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$TlNh13.kQrVs/6A6hcT0X5FphXMnA1dAt3vK1QDspq.JTLmpSzxoz','admin','ak_e908f4ebaa3930d3','2023-01-04 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$vg472Uz/XUqXUB4MmzPJsr4KkA7Zg1YRT6MtPzSF9IS7J2ZDlbML.','user','ak_9df5b889208d74a5','2023-12-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$J86mTfRv/SvhrmvQyOLebMPsQj02ZdutILFzAu/wqJsseVrrMUfeO','admin','ak_60550f96afd87c9f','2023-07-27 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$r7k3Bgwlx3dtQMx5mRoahwBNmv9RcwZBbnBc/Eyc6xta18UwaM./8','admin','ak_660885a25baf5403','2023-10-26 10:03: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=22649;

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


