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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=23255;

--
-- Dumping data for table `products`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$f0KpJokNOV9L8YhPslBELmg/xeZx57aFrAAM5BHTlKvbU5J3ld02p','user','ak_537f7daa30a1c136','2023-12-26 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$oecD47UFJ4BDkxvbAK1GMTr4.ECKU.zZNNeP5nmSaQ4mcdGtOeQsw','admin','ak_c4a98b833f7ed39e','2023-01-05 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$1Qw0w7t2l7NCFxffRw8AxE7JrpiGTcvnRbpd/X05HVR8OQQcYxUcE','admin','ak_92e9215ee8b6733d','2023-05-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$2SqM4uECNe9lY91HW3EOaEz9uGS5kgSd6gIKPh/eGM7WzTVeNu5Ei','user','ak_1dca8fe18cee8774','2023-04-21 10:21:00',NULL);

