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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$hMRogUtHYgI1jaq.Dr5c3k3stRsEmvzUL9RlO2Mt8j9Ea3nEAv3dv','user','ak_1eb9836bf4aa2c52','2023-04-20 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$Gxngdw5ETAA7ToeCC9W3nXWAbK0tPLkJX.Fbfu7mO1ZvcKL/HSv89','user','ak_58c2274f947f254c','2023-07-27 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$dZKrS54sXNCkRHWQqugVfUnHx5mE1r2tEHKK7e7jqS4uKXu5hHIgn','admin','ak_5107d0584923e04e','2023-02-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$dxvdHM6bY3pKlJSmhW0mRXAfG5YfEyuJM/sOtsSKy3J8/pRhYfvME','user','ak_8caef06099a3667c','2023-02-18 10:18:00',NULL);

