-- Host: db-master-5.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=14196;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$LoCTgNfA4LUA.khTR1n3.eofaWvXreMVzEF1./rOa2kSmJqfZvdkY','user','ak_0d0230ee932d4751','2023-01-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$NqC1FfM1uWXKvxjTvnWNLnB7uR2OdaYMLQ52l1UkyBCAFRvBL.5jx','user','ak_ec4d09197a108e7e','2023-03-04 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$7sNpY/dYyiLMvpTfQSGkzwNqD8GaZOX8KXldCm3jCXPxejotRGqOL','user','ak_4b80daefaa2e26f8','2023-02-02 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$VgVTmurcfjV.SbetFopwfcDnnCTaequCBs4316fm5/RHthuxBGSHw','user','ak_053f649a1fa9bcbd','2023-01-22 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$WVp.5ef3yT3/u.0Fgh9B9vFFRFeAqrHu/k6r4PaSSYPfe13nNboQm','user','ak_f68a2bc05a3b4e37','2023-11-12 10:01: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=25231;

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

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


