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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$pBNAmtRWWEsWXYJIqWbBsLo6hc35HfrKlD4233v1bRdc/yAvB7CCy','user','ak_5a3433bff0c32c81','2023-05-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$prXoqPjonZHNA9zdgUTneUmrJzliJMSKznT4bBgWYrf37zyeZFxzn','admin','ak_15bdd6b6a3c2a521','2023-01-15 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$aP.Vc0tDMpDKfsVBmdQJhSK3.h3XVi3Km4J9mCOSIjSq7AzypR5sC','user','ak_95dd3ca9d74f579d','2023-08-27 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$csSt.unoV40Hq7VYtF8vp11y5i89ELDELUFgbjgQGjZHcA.Gj/x1T','admin','ak_532c09cb1fce131b','2023-03-18 10:10: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=27176;

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

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


