-- Host: db-master-7.internal    Database: customers


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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$ljzIeI2vs5nZpwZ8l67X7xqojU0jSX.wtY1cfXeelz9gW54/dhryB','user','ak_7d20a08f17573266','2023-09-10 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$YXLWnpRroOhVilGyXxTqm5rSKRJE2qugNrdCAnnMF4wfR8jXI4ISj','admin','ak_97f5ad7c43692cd5','2023-03-10 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$BYo.vPCSz/bSSVhoaHyULDKe1bZaTm1ViTved9f1JUPJzeP3uGnPH','admin','ak_3a6f99f487621714','2023-03-25 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$v7h50OFe5ex8GpoQrsERLl8gGg.EgP7gmQdPGy4qribnxN2G5ef32','user','ak_c7ff28ff7ade2bb9','2023-11-25 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$N1/kK2mTrMReP2QKyxS8TAI9KJ4EPpbXmRpQ98cV//5/rv1SlGeBT','user','ak_a641aa8179b15fef','2023-12-05 10:09:00',NULL);

