-- Host: db-master-2.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=9814;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$TN.3ry85IdhPGyGwL5F3ENoYpuQ24tuw6rc4o.mo3NSzk14Ei/R/m','user','ak_2b604f5878b99adc','2023-11-23 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$SwfxwfrT0uALXYyNt92zRw4zjwGoq0uj.ZgamIwPPcZrmaluwtBbM','admin','ak_2683d2838592b6a9','2023-06-10 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$CGsASwWiFBhs7fDkKPKT63ecvJxZel8jUY0/fFB7gZtVwKq5BWF8r','user','ak_e73dd97a9062b539','2023-07-08 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$TM5XGECf26t.NYKW6SJQITYY5mG4E.51YTgzauQHQKl51CtpVEvhn','user','ak_ed00f4b035e9badb','2023-09-12 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$DB1wZ5VdEPtQcJplqd5W2Y0lwMiKXf.7ThYORfD8qtmyi2nioOSGn','admin','ak_0a05d4b6f4c2d481','2023-01-06 10:23: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=24344;

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


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

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


