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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$pq2SLVBWx64MHI0FHw0bbnQtW6pIMnwhKuKE4L6ikDfXbkRydpnRL','user','ak_89e81be4e25ef15d','2023-05-02 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$FSSwdWIHJXXairOpU9dJNfDuA3Skqa/BWZH8kZqVRpwjk2Btn/uQT','admin','ak_90869a4c8a5feb50','2023-05-28 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$/WTNIuZxXk4aOuk9nrthXQ.CguKaxQ370lT4u4jtZzXGOjSR11lhJ','admin','ak_dcd3a9a5866d9467','2023-04-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$4WQRkD.js8D757b4KyoYYZ4rBVh5vrBzYGjtyv.sHys1TUvaSa.d0','user','ak_2d5b6d70c650090f','2023-11-16 10:00: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=45936;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=19922;

--
-- Dumping data for table `audit_log`
--


