-- Host: db-master-8.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=16465;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$dUHomiq04MynoD80WebVLQ5FpqFDsTCqKNymTRly2kkM/eJdT9jvV','user','ak_fc3fc1a3ca91e8ce','2023-07-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$sPcIXg3Bp.tufLsSP5hu2zuuoROU8M3PFpw53RIxReR0oX8RVFnyH','admin','ak_6aebd5283877b158','2023-11-11 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$FfaUtnMSNLL38DChZRDmEGAjZZfsjO5T0TAKApjxpnCktbIPhtkgk','user','ak_84bb8fc709aa6a4c','2023-05-19 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ld.MjsNx1xUPzHs5.lrUMTPeWgMXsMet2fvJEjtlSqXCYpUkOKPKy','admin','ak_63b86aaf1bc6d912','2023-02-22 10:08: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=9063;

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

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


