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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=18008;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$9.1by9XAvLPIX35dudTQ.8uqVU/flxaC0pLKBTvF3S1J/vl44b9hc','user','ak_fa1fdda4a4c2988f','2023-09-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$bdkqCrtRMFldlUTAWj4dSbiMGRXf6gZ5133TaGiv59l1cAMkOca18','user','ak_173e727c2d966616','2023-10-15 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$E21S0q1Ozk7fB0zHQmd29VchdDDqohdqdWG79cpMYy0v5ZpIrErEz','user','ak_9c0c4a591f3bb199','2023-08-25 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$MPVTO7T4SfaNq4/glZNsp1.yJxuPoRx2Q1yqZonG10WcAXOQT.B73','admin','ak_014a6bd21bb656be','2023-05-02 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$VWutjli5xLgItWi6.KPjYSBzjCZjcHKA9DbFRbWjkz7hq7JhsGmFg','admin','ak_ede0d9fba541aee5','2023-03-10 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$3CX1X7LIQ8sUgOi9jHeP.ymnuUjHhWs2H6xoHc.AhUjOXYqzQSdvU','user','ak_88a4262f28eb6e34','2023-01-14 10:09:00',NULL);

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

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


