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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$Hphbffr1Kr.MkaJTQ66KGhW9sPxi37CLZHLlOnsUso6e6fUJQWoP6','admin','ak_f867e288b4a8eb5a','2023-01-08 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$gctB.sAW/3k9OKNQaHsa.3eqZjminiEeZQCZkoPGuv6EFz.YiOw5Z','admin','ak_4d9159b383544eaf','2023-11-23 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$w22isGefK./95WPK4kVApnOzjV0ZvIDMQi5d3TnbykRIwVUv6Y3zu','user','ak_221c60a8df4b4607','2023-04-12 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$QhDN0gbwElHUY6oT2kATcR08cyFeyPDyNT7MO.52j5kbxIQokGzs/','user','ak_f65fce652144302f','2023-09-08 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$poCdeZFSqIuDd25nyujkJs0nvH49//WqnSnvJc8HEjBEttOqbHyXb','user','ak_372c09905b74db50','2023-12-11 10:22:00',NULL);

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

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

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


