-- Host: db-master-2.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=25752;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$MAcMe93FrQX5.QpqXhQoDDsyYzH765O55FASGbpRYPQH89sVsWKnD','user','ak_1dc63d8f1f4004d2','2023-10-06 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$OVstkGiZhv0teemjgME.FFwoVq/kaAf88XuWvKkb80l582/uJ8T0.','user','ak_1bdc586bddf03c5f','2023-07-21 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$jUKu4YN5T.nN.hFUZ5R58wBf1M6JvOHTU9SSPyLTJ11tQXmiZwV4k','user','ak_00f96260bf3a85fc','2023-11-15 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$xbJ1ZLxohTNKq3QQCz4bCb8GwNcthkNeUoYeDMgdOvuF55MqX9HFD','user','ak_1c2779e7d1289289','2023-01-25 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$TbVLdC5meJMe5oTjaX5z.L7sST0PVcppQ/nyI/eZhGg585kiEjlHL','user','ak_e330552f58ccf180','2023-09-22 10:08: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=17918;

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


