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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$Tr77xlSCo/b9zpAnVAmHmG0pMXASbmczIL6tDehDottisKFuL8R5y','user','ak_3bf5e305eeaff134','2023-05-03 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$shhxpPFI/wIxh0A5dUxSB6Ifa56zxuNjRWXebCO82RAQFGyMDL5mj','user','ak_89a279cf6205d04e','2023-02-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$nR4.f9uu9HZa.XL9vjDS0hM2sVeUUVGXlutAQaSvqKkuW1mWCjthf','user','ak_205d30892c51adc8','2023-01-15 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$1TBULD.qpivY7RUYfHp949b5eFBUzIQS1MyB72M/XyVbDiq3F7UF8','admin','ak_7e73f9755e7220cb','2023-07-14 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$77ROxrhZ7hLbq.yipz6cG9gD1Pyr2hvo1TdvY/JiBGs.Hy9U4kSpz','user','ak_aedf246269f09ba5','2023-11-02 10:21: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=1593;

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


