-- Host: db-master-1.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=25377;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$rZsoCYGcBwdeZ.zbx2yZcL7F9BVtzRnnmEEx5eHBMZmYiTyx0.Q4q','user','ak_98cd56323d9bd7e7','2023-06-24 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$fpiY1O90WHocXS5.Y3tE94q4q/fiy8OEPMHIEYQcljBiMFWNnXfLJ','user','ak_d1f727702d4a8905','2023-03-15 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$gxSr5GnL1p1eoe5856G2catLQ0pqRB.oQRUytszTxXPUzuhqFS3yk','user','ak_8a940ec6657586f5','2023-02-09 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$eyjPLJM4tzBy37vgw5/ZPhCTfMxQTZYYgKNBchTNHo1Pd9ytqmIpi','admin','ak_4d72118b6d36b466','2023-12-27 10:16:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=43597;

--
-- Dumping data for table `payments`
--


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

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


