refactor user accounts structure
This commit is contained in:
@@ -1,155 +0,0 @@
|
|||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Goods` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` VARCHAR(255) NOT NULL,
|
|
||||||
`description` TEXT NULL,
|
|
||||||
`sku` VARCHAR(100) NOT NULL,
|
|
||||||
`localSku` VARCHAR(100) NOT NULL,
|
|
||||||
`barcode` VARCHAR(100) NULL,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updatedAt` TIMESTAMP(0) NOT NULL,
|
|
||||||
`deletedAt` TIMESTAMP(0) NULL,
|
|
||||||
`categoryId` INTEGER NULL,
|
|
||||||
`baseSalePrice` DECIMAL(15, 0) NOT NULL DEFAULT 0.00,
|
|
||||||
|
|
||||||
UNIQUE INDEX `Goods_localSku_key`(`localSku`),
|
|
||||||
UNIQUE INDEX `Goods_barcode_key`(`barcode`),
|
|
||||||
INDEX `Goods_categoryId_idx`(`categoryId`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Good_categories` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` VARCHAR(100) NOT NULL,
|
|
||||||
`description` TEXT NULL,
|
|
||||||
`imageUrl` VARCHAR(255) NULL,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updatedAt` TIMESTAMP(0) NOT NULL,
|
|
||||||
`deletedAt` TIMESTAMP(0) NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Customers` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`firstName` VARCHAR(255) NOT NULL,
|
|
||||||
`lastName` VARCHAR(255) NOT NULL,
|
|
||||||
`email` VARCHAR(255) NULL,
|
|
||||||
`mobileNumber` CHAR(11) NOT NULL,
|
|
||||||
`address` TEXT NULL,
|
|
||||||
`isActive` BOOLEAN NOT NULL DEFAULT true,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updatedAt` TIMESTAMP(0) NOT NULL,
|
|
||||||
`deletedAt` TIMESTAMP(0) NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `Customers_mobileNumber_key`(`mobileNumber`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Trigger_Logs` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`message` TEXT NOT NULL,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`name` TEXT NOT NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Sales_Invoices` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`code` VARCHAR(100) NOT NULL,
|
|
||||||
`totalAmount` DECIMAL(15, 2) NOT NULL,
|
|
||||||
`description` TEXT NULL,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updatedAt` TIMESTAMP(0) NOT NULL,
|
|
||||||
`customerId` INTEGER NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `Sales_Invoices_code_key`(`code`),
|
|
||||||
INDEX `Sales_Invoices_customerId_idx`(`customerId`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Sales_Invoice_Items` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`count` DECIMAL(10, 0) NOT NULL,
|
|
||||||
`unitPrice` DECIMAL(15, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`totalAmount` DECIMAL(15, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`invoiceId` INTEGER NOT NULL,
|
|
||||||
`goodId` INTEGER NOT NULL,
|
|
||||||
`serviceId` INTEGER NOT NULL,
|
|
||||||
|
|
||||||
INDEX `Sales_Invoice_Items_invoiceId_goodId_idx`(`invoiceId`, `goodId`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Sales_Invoice_Payments` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`invoiceId` INTEGER NOT NULL,
|
|
||||||
`amount` DECIMAL(15, 2) NOT NULL,
|
|
||||||
`paymentMethod` ENUM('CASH', 'CARD', 'BANK', 'CHECK', 'OTHER') NOT NULL,
|
|
||||||
`paidAt` DATETIME(3) NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
INDEX `Sales_Invoice_Payments_invoiceId_idx`(`invoiceId`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Services` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` VARCHAR(255) NOT NULL,
|
|
||||||
`description` TEXT NULL,
|
|
||||||
`sku` VARCHAR(100) NOT NULL,
|
|
||||||
`barcode` VARCHAR(100) NULL,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updatedAt` TIMESTAMP(0) NOT NULL,
|
|
||||||
`deletedAt` TIMESTAMP(0) NULL,
|
|
||||||
`categoryId` INTEGER NULL,
|
|
||||||
`baseSalePrice` DECIMAL(15, 0) NOT NULL DEFAULT 0.00,
|
|
||||||
|
|
||||||
UNIQUE INDEX `Services_sku_key`(`sku`),
|
|
||||||
UNIQUE INDEX `Services_barcode_key`(`barcode`),
|
|
||||||
INDEX `Services_categoryId_idx`(`categoryId`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Service_categories` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` VARCHAR(100) NOT NULL,
|
|
||||||
`description` TEXT NULL,
|
|
||||||
`imageUrl` VARCHAR(255) NULL,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updatedAt` TIMESTAMP(0) NOT NULL,
|
|
||||||
`deletedAt` TIMESTAMP(0) NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Goods` ADD CONSTRAINT `Goods_categoryId_fkey` FOREIGN KEY (`categoryId`) REFERENCES `Good_categories`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoices` ADD CONSTRAINT `Sales_Invoices_customerId_fkey` FOREIGN KEY (`customerId`) REFERENCES `Customers`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoice_Items` ADD CONSTRAINT `Sales_Invoice_Items_invoiceId_fkey` FOREIGN KEY (`invoiceId`) REFERENCES `Sales_Invoices`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoice_Items` ADD CONSTRAINT `Sales_Invoice_Items_goodId_fkey` FOREIGN KEY (`goodId`) REFERENCES `Goods`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoice_Items` ADD CONSTRAINT `Sales_Invoice_Items_serviceId_fkey` FOREIGN KEY (`serviceId`) REFERENCES `Services`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoice_Payments` ADD CONSTRAINT `Sales_Invoice_Payments_invoiceId_fkey` FOREIGN KEY (`invoiceId`) REFERENCES `Sales_Invoices`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Services` ADD CONSTRAINT `Services_categoryId_fkey` FOREIGN KEY (`categoryId`) REFERENCES `Service_categories`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
@@ -1,245 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- The primary key for the `Sales_Invoice_Payments` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
|
||||||
- You are about to drop the column `createdAt` on the `Sales_Invoice_Payments` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `invoiceId` on the `Sales_Invoice_Payments` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `paidAt` on the `Sales_Invoice_Payments` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `paymentMethod` on the `Sales_Invoice_Payments` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the `Customers` table. If the table is not empty, all the data it contains will be lost.
|
|
||||||
- You are about to drop the `Good_categories` table. If the table is not empty, all the data it contains will be lost.
|
|
||||||
- You are about to drop the `Goods` table. If the table is not empty, all the data it contains will be lost.
|
|
||||||
- You are about to drop the `Sales_Invoice_Items` table. If the table is not empty, all the data it contains will be lost.
|
|
||||||
- You are about to drop the `Sales_Invoices` table. If the table is not empty, all the data it contains will be lost.
|
|
||||||
- You are about to drop the `Service_categories` table. If the table is not empty, all the data it contains will be lost.
|
|
||||||
- You are about to drop the `Services` table. If the table is not empty, all the data it contains will be lost.
|
|
||||||
- You are about to drop the `Trigger_Logs` table. If the table is not empty, all the data it contains will be lost.
|
|
||||||
- Added the required column `invoice_id` to the `Sales_Invoice_Payments` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `paid_at` to the `Sales_Invoice_Payments` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `payment_method` to the `Sales_Invoice_Payments` table without a default value. This is not possible if the table is not empty.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `Goods` DROP FOREIGN KEY `Goods_categoryId_fkey`;
|
|
||||||
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoice_Items` DROP FOREIGN KEY `Sales_Invoice_Items_goodId_fkey`;
|
|
||||||
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoice_Items` DROP FOREIGN KEY `Sales_Invoice_Items_invoiceId_fkey`;
|
|
||||||
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoice_Items` DROP FOREIGN KEY `Sales_Invoice_Items_serviceId_fkey`;
|
|
||||||
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoice_Payments` DROP FOREIGN KEY `Sales_Invoice_Payments_invoiceId_fkey`;
|
|
||||||
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoices` DROP FOREIGN KEY `Sales_Invoices_customerId_fkey`;
|
|
||||||
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `Services` DROP FOREIGN KEY `Services_categoryId_fkey`;
|
|
||||||
|
|
||||||
-- DropIndex
|
|
||||||
DROP INDEX `Sales_Invoice_Payments_invoiceId_idx` ON `Sales_Invoice_Payments`;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `Sales_Invoice_Payments` DROP PRIMARY KEY,
|
|
||||||
DROP COLUMN `createdAt`,
|
|
||||||
DROP COLUMN `invoiceId`,
|
|
||||||
DROP COLUMN `paidAt`,
|
|
||||||
DROP COLUMN `paymentMethod`,
|
|
||||||
ADD COLUMN `created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
ADD COLUMN `invoice_id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `paid_at` DATETIME(3) NOT NULL,
|
|
||||||
ADD COLUMN `payment_method` ENUM('CASH', 'CARD', 'BANK', 'CHECK', 'OTHER') NOT NULL,
|
|
||||||
MODIFY `id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD PRIMARY KEY (`id`);
|
|
||||||
|
|
||||||
-- DropTable
|
|
||||||
DROP TABLE `Customers`;
|
|
||||||
|
|
||||||
-- DropTable
|
|
||||||
DROP TABLE `Good_categories`;
|
|
||||||
|
|
||||||
-- DropTable
|
|
||||||
DROP TABLE `Goods`;
|
|
||||||
|
|
||||||
-- DropTable
|
|
||||||
DROP TABLE `Sales_Invoice_Items`;
|
|
||||||
|
|
||||||
-- DropTable
|
|
||||||
DROP TABLE `Sales_Invoices`;
|
|
||||||
|
|
||||||
-- DropTable
|
|
||||||
DROP TABLE `Service_categories`;
|
|
||||||
|
|
||||||
-- DropTable
|
|
||||||
DROP TABLE `Services`;
|
|
||||||
|
|
||||||
-- DropTable
|
|
||||||
DROP TABLE `Trigger_Logs`;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `customers` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`first_name` VARCHAR(255) NOT NULL,
|
|
||||||
`last_name` VARCHAR(255) NOT NULL,
|
|
||||||
`email` VARCHAR(255) NULL,
|
|
||||||
`mobile_number` CHAR(11) NOT NULL,
|
|
||||||
`address` TEXT NULL,
|
|
||||||
`is_active` BOOLEAN NOT NULL DEFAULT true,
|
|
||||||
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updated_at` TIMESTAMP(0) NOT NULL,
|
|
||||||
`deleted_at` TIMESTAMP(0) NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `customers_mobile_number_key`(`mobile_number`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `devices` (
|
|
||||||
`account_id` VARCHAR(255) NULL,
|
|
||||||
`app_version` VARCHAR(20) NOT NULL,
|
|
||||||
`build_number` VARCHAR(20) NOT NULL,
|
|
||||||
`device_id` VARCHAR(255) NOT NULL,
|
|
||||||
`platform` VARCHAR(100) NOT NULL,
|
|
||||||
`brand` VARCHAR(100) NOT NULL,
|
|
||||||
`model` VARCHAR(100) NOT NULL,
|
|
||||||
`device` VARCHAR(100) NOT NULL,
|
|
||||||
`os_version` VARCHAR(20) NOT NULL,
|
|
||||||
`sdk_version` VARCHAR(20) NOT NULL,
|
|
||||||
`release_number` VARCHAR(20) NOT NULL,
|
|
||||||
`browser_name` VARCHAR(100) NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`device_id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `goods` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(255) NOT NULL,
|
|
||||||
`description` TEXT NULL,
|
|
||||||
`sku` VARCHAR(100) NOT NULL,
|
|
||||||
`local_sku` VARCHAR(100) NOT NULL,
|
|
||||||
`barcode` VARCHAR(100) NULL,
|
|
||||||
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updated_at` TIMESTAMP(0) NOT NULL,
|
|
||||||
`deleted_at` TIMESTAMP(0) NULL,
|
|
||||||
`category_id` VARCHAR(191) NULL,
|
|
||||||
`base_sale_price` DECIMAL(15, 0) NOT NULL DEFAULT 0.00,
|
|
||||||
|
|
||||||
UNIQUE INDEX `goods_local_sku_key`(`local_sku`),
|
|
||||||
UNIQUE INDEX `goods_barcode_key`(`barcode`),
|
|
||||||
INDEX `goods_category_id_idx`(`category_id`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `good_categories` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(100) NOT NULL,
|
|
||||||
`description` TEXT NULL,
|
|
||||||
`image_url` VARCHAR(255) NULL,
|
|
||||||
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updated_at` TIMESTAMP(0) NOT NULL,
|
|
||||||
`deleted_at` TIMESTAMP(0) NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `trigger_logs` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`message` TEXT NOT NULL,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`name` TEXT NOT NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `sales_invoices` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`code` VARCHAR(100) NOT NULL,
|
|
||||||
`total_amount` DECIMAL(15, 2) NOT NULL,
|
|
||||||
`description` TEXT NULL,
|
|
||||||
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updated_at` TIMESTAMP(0) NOT NULL,
|
|
||||||
`customer_id` VARCHAR(191) NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `sales_invoices_code_key`(`code`),
|
|
||||||
INDEX `sales_invoices_customer_id_idx`(`customer_id`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `sales_invoice_items` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`count` DECIMAL(10, 0) NOT NULL,
|
|
||||||
`unit_price` DECIMAL(15, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`total_amount` DECIMAL(15, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`invoice_id` VARCHAR(191) NOT NULL,
|
|
||||||
`good_id` VARCHAR(191) NOT NULL,
|
|
||||||
`service_id` VARCHAR(191) NOT NULL,
|
|
||||||
|
|
||||||
INDEX `sales_invoice_items_invoice_id_good_id_idx`(`invoice_id`, `good_id`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `services` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(255) NOT NULL,
|
|
||||||
`description` TEXT NULL,
|
|
||||||
`sku` VARCHAR(100) NOT NULL,
|
|
||||||
`barcode` VARCHAR(100) NULL,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updatedAt` TIMESTAMP(0) NOT NULL,
|
|
||||||
`deletedAt` TIMESTAMP(0) NULL,
|
|
||||||
`categoryId` VARCHAR(191) NULL,
|
|
||||||
`baseSalePrice` DECIMAL(15, 0) NOT NULL DEFAULT 0.00,
|
|
||||||
|
|
||||||
UNIQUE INDEX `services_sku_key`(`sku`),
|
|
||||||
UNIQUE INDEX `services_barcode_key`(`barcode`),
|
|
||||||
INDEX `services_categoryId_idx`(`categoryId`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `service_categories` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(100) NOT NULL,
|
|
||||||
`description` TEXT NULL,
|
|
||||||
`imageUrl` VARCHAR(255) NULL,
|
|
||||||
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
`updatedAt` TIMESTAMP(0) NOT NULL,
|
|
||||||
`deletedAt` TIMESTAMP(0) NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateIndex
|
|
||||||
CREATE INDEX `Sales_Invoice_Payments_invoice_id_idx` ON `Sales_Invoice_Payments`(`invoice_id`);
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `goods` ADD CONSTRAINT `goods_category_id_fkey` FOREIGN KEY (`category_id`) REFERENCES `good_categories`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `sales_invoices` ADD CONSTRAINT `sales_invoices_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `sales_invoice_items` ADD CONSTRAINT `sales_invoice_items_invoice_id_fkey` FOREIGN KEY (`invoice_id`) REFERENCES `sales_invoices`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `sales_invoice_items` ADD CONSTRAINT `sales_invoice_items_good_id_fkey` FOREIGN KEY (`good_id`) REFERENCES `goods`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `sales_invoice_items` ADD CONSTRAINT `sales_invoice_items_service_id_fkey` FOREIGN KEY (`service_id`) REFERENCES `services`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoice_Payments` ADD CONSTRAINT `Sales_Invoice_Payments_invoice_id_fkey` FOREIGN KEY (`invoice_id`) REFERENCES `sales_invoices`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `services` ADD CONSTRAINT `services_categoryId_fkey` FOREIGN KEY (`categoryId`) REFERENCES `service_categories`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- The primary key for the `devices` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
|
||||||
- You are about to drop the column `device_id` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- Added the required column `uuid` to the `devices` table without a default value. This is not possible if the table is not empty.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `devices` DROP PRIMARY KEY,
|
|
||||||
DROP COLUMN `device_id`,
|
|
||||||
ADD COLUMN `uuid` VARCHAR(255) NOT NULL,
|
|
||||||
ADD PRIMARY KEY (`uuid`);
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- A unique constraint covering the columns `[uuid]` on the table `devices` will be added. If there are existing duplicate values, this will fail.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- CreateIndex
|
|
||||||
CREATE UNIQUE INDEX `devices_uuid_key` ON `devices`(`uuid`);
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
-- AlterTable
|
|
||||||
ALTER TABLE `devices` ADD COLUMN `fcm_token` VARCHAR(100) NULL;
|
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- You are about to drop the column `createdAt` on the `service_categories` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `deletedAt` on the `service_categories` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `imageUrl` on the `service_categories` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `updatedAt` on the `service_categories` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `baseSalePrice` on the `services` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `categoryId` on the `services` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `createdAt` on the `services` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `deletedAt` on the `services` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `updatedAt` on the `services` table. All the data in the column will be lost.
|
|
||||||
- A unique constraint covering the columns `[local_sku]` on the table `services` will be added. If there are existing duplicate values, this will fail.
|
|
||||||
- Added the required column `account_id` to the `customers` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `complex_id` to the `customers` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `account_id` to the `good_categories` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `complex_id` to the `good_categories` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `account_id` to the `goods` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `complex_id` to the `goods` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `account_id` to the `sales_invoices` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `complex_id` to the `sales_invoices` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `account_id` to the `service_categories` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `complex_id` to the `service_categories` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `updated_at` to the `service_categories` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `account_id` to the `services` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `complex_id` to the `services` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `updated_at` to the `services` table without a default value. This is not possible if the table is not empty.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `services` DROP FOREIGN KEY `services_categoryId_fkey`;
|
|
||||||
|
|
||||||
-- DropIndex
|
|
||||||
DROP INDEX `services_categoryId_idx` ON `services`;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `customers` ADD COLUMN `account_id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `complex_id` VARCHAR(191) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `good_categories` ADD COLUMN `account_id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `complex_id` VARCHAR(191) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `goods` ADD COLUMN `account_id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `complex_id` VARCHAR(191) NOT NULL,
|
|
||||||
MODIFY `local_sku` VARCHAR(100) NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `sales_invoices` ADD COLUMN `account_id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `complex_id` VARCHAR(191) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `service_categories` DROP COLUMN `createdAt`,
|
|
||||||
DROP COLUMN `deletedAt`,
|
|
||||||
DROP COLUMN `imageUrl`,
|
|
||||||
DROP COLUMN `updatedAt`,
|
|
||||||
ADD COLUMN `account_id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `complex_id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
ADD COLUMN `deleted_at` TIMESTAMP(0) NULL,
|
|
||||||
ADD COLUMN `image_url` VARCHAR(255) NULL,
|
|
||||||
ADD COLUMN `updated_at` TIMESTAMP(0) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `services` DROP COLUMN `baseSalePrice`,
|
|
||||||
DROP COLUMN `categoryId`,
|
|
||||||
DROP COLUMN `createdAt`,
|
|
||||||
DROP COLUMN `deletedAt`,
|
|
||||||
DROP COLUMN `updatedAt`,
|
|
||||||
ADD COLUMN `account_id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `base_sale_price` DECIMAL(15, 0) NOT NULL DEFAULT 0.00,
|
|
||||||
ADD COLUMN `category_id` VARCHAR(191) NULL,
|
|
||||||
ADD COLUMN `complex_id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
ADD COLUMN `deleted_at` TIMESTAMP(0) NULL,
|
|
||||||
ADD COLUMN `local_sku` VARCHAR(100) NULL,
|
|
||||||
ADD COLUMN `updated_at` TIMESTAMP(0) NOT NULL;
|
|
||||||
|
|
||||||
-- CreateIndex
|
|
||||||
CREATE UNIQUE INDEX `services_local_sku_key` ON `services`(`local_sku`);
|
|
||||||
|
|
||||||
-- CreateIndex
|
|
||||||
CREATE INDEX `services_category_id_idx` ON `services`(`category_id`);
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `services` ADD CONSTRAINT `services_category_id_fkey` FOREIGN KEY (`category_id`) REFERENCES `service_categories`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- You are about to drop the `Sales_Invoice_Payments` table. If the table is not empty, all the data it contains will be lost.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `Sales_Invoice_Payments` DROP FOREIGN KEY `Sales_Invoice_Payments_invoice_id_fkey`;
|
|
||||||
|
|
||||||
-- DropTable
|
|
||||||
DROP TABLE `Sales_Invoice_Payments`;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `sales_invoice_payments` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`invoice_id` VARCHAR(191) NOT NULL,
|
|
||||||
`amount` DECIMAL(15, 2) NOT NULL,
|
|
||||||
`payment_method` ENUM('CASH', 'CARD', 'BANK', 'CHECK', 'OTHER') NOT NULL,
|
|
||||||
`paid_at` DATETIME(3) NOT NULL,
|
|
||||||
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
INDEX `sales_invoice_payments_invoice_id_idx`(`invoice_id`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `sales_invoice_payments` ADD CONSTRAINT `sales_invoice_payments_invoice_id_fkey` FOREIGN KEY (`invoice_id`) REFERENCES `sales_invoices`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
-- AlterTable
|
|
||||||
ALTER TABLE `goods` ADD COLUMN `price_text` VARCHAR(100) NULL;
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- You are about to drop the column `price_text` on the `goods` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `count` on the `sales_invoice_items` table. All the data in the column will be lost.
|
|
||||||
- Added the required column `quantity` to the `sales_invoice_items` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `unit_type` to the `sales_invoice_items` table without a default value. This is not possible if the table is not empty.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `sales_invoice_items` DROP FOREIGN KEY `sales_invoice_items_good_id_fkey`;
|
|
||||||
|
|
||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `sales_invoice_items` DROP FOREIGN KEY `sales_invoice_items_service_id_fkey`;
|
|
||||||
|
|
||||||
-- DropIndex
|
|
||||||
DROP INDEX `sales_invoice_items_good_id_fkey` ON `sales_invoice_items`;
|
|
||||||
|
|
||||||
-- DropIndex
|
|
||||||
DROP INDEX `sales_invoice_items_service_id_fkey` ON `sales_invoice_items`;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `goods` DROP COLUMN `price_text`;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `sales_invoice_items` DROP COLUMN `count`,
|
|
||||||
ADD COLUMN `payload` JSON NULL,
|
|
||||||
ADD COLUMN `quantity` DECIMAL(10, 0) NOT NULL,
|
|
||||||
ADD COLUMN `unit_type` ENUM('COUNT', 'GRAM', 'KILOGRAM', 'LITER', 'METER', 'HOUR') NOT NULL,
|
|
||||||
MODIFY `good_id` VARCHAR(191) NULL,
|
|
||||||
MODIFY `service_id` VARCHAR(191) NULL;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `sales_invoice_items` ADD CONSTRAINT `sales_invoice_items_good_id_fkey` FOREIGN KEY (`good_id`) REFERENCES `goods`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `sales_invoice_items` ADD CONSTRAINT `sales_invoice_items_service_id_fkey` FOREIGN KEY (`service_id`) REFERENCES `services`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- You are about to drop the column `account_id` on the `customers` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `address` on the `customers` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `email` on the `customers` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `first_name` on the `customers` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `is_active` on the `customers` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `last_name` on the `customers` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `mobile_number` on the `customers` table. All the data in the column will be lost.
|
|
||||||
- Added the required column `type` to the `customers` table without a default value. This is not possible if the table is not empty.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- DropIndex
|
|
||||||
DROP INDEX `customers_mobile_number_key` ON `customers`;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `customers` DROP COLUMN `account_id`,
|
|
||||||
DROP COLUMN `address`,
|
|
||||||
DROP COLUMN `email`,
|
|
||||||
DROP COLUMN `first_name`,
|
|
||||||
DROP COLUMN `is_active`,
|
|
||||||
DROP COLUMN `last_name`,
|
|
||||||
DROP COLUMN `mobile_number`,
|
|
||||||
ADD COLUMN `is_favorite` BOOLEAN NULL DEFAULT false,
|
|
||||||
ADD COLUMN `type` ENUM('INDIVIDUAL', 'LEGAL') NOT NULL;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `customer_individuals` (
|
|
||||||
`customer_id` VARCHAR(191) NOT NULL,
|
|
||||||
`first_name` VARCHAR(255) NOT NULL,
|
|
||||||
`last_name` VARCHAR(255) NOT NULL,
|
|
||||||
`national_id` CHAR(10) NOT NULL,
|
|
||||||
`postal_code` CHAR(10) NOT NULL,
|
|
||||||
`economic_code` CHAR(10) NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`customer_id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `customer_legal` (
|
|
||||||
`customer_id` VARCHAR(191) NOT NULL,
|
|
||||||
`company_name` VARCHAR(255) NOT NULL,
|
|
||||||
`economic_code` CHAR(10) NOT NULL,
|
|
||||||
`registration_number` CHAR(20) NOT NULL,
|
|
||||||
`postal_code` CHAR(10) NOT NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`customer_id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `customer_individuals` ADD CONSTRAINT `customer_individuals_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `customer_legal` ADD CONSTRAINT `customer_legal_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
-- AlterTable
|
|
||||||
ALTER TABLE `sales_invoice_items` ADD COLUMN `discount` DECIMAL(15, 2) NOT NULL DEFAULT 0.00,
|
|
||||||
ADD COLUMN `pricingModel` ENUM('STANDARD', 'GOLD') NOT NULL DEFAULT 'STANDARD';
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- You are about to drop the column `description` on the `sales_invoices` table. All the data in the column will be lost.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `customers` MODIFY `type` ENUM('INDIVIDUAL', 'LEGAL', 'UNKNOWN') NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `sales_invoice_items` ADD COLUMN `notes` TEXT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `sales_invoice_payments` MODIFY `payment_method` ENUM('TERMINAL', 'CASH', 'SET_OFF', 'CARD', 'BANK', 'CHECK', 'OTHER') NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `sales_invoices` DROP COLUMN `description`,
|
|
||||||
ADD COLUMN `invoice_date` TIMESTAMP(0) NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
ADD COLUMN `notes` TEXT NULL,
|
|
||||||
ADD COLUMN `unknown_customer` JSON NULL;
|
|
||||||
@@ -1,272 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- The primary key for the `devices` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
|
||||||
- You are about to drop the column `account_id` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `app_version` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `brand` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `browser_name` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `build_number` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `device` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `fcm_token` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `model` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `platform` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `release_number` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `sdk_version` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `uuid` on the `devices` table. All the data in the column will be lost.
|
|
||||||
- A unique constraint covering the columns `[complex_id,national_id]` on the table `customer_individuals` will be added. If there are existing duplicate values, this will fail.
|
|
||||||
- A unique constraint covering the columns `[complex_id,registration_number]` on the table `customer_legal` will be added. If there are existing duplicate values, this will fail.
|
|
||||||
- Added the required column `complex_id` to the `customer_individuals` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `complex_id` to the `customer_legal` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `brand_id` to the `devices` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- The required column `id` was added to the `devices` table with a prisma-level default value. This is not possible if the table is not empty. Please add this column as optional, then populate it before making it required.
|
|
||||||
- Added the required column `name` to the `devices` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `updated_at` to the `devices` table without a default value. This is not possible if the table is not empty.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- DropIndex
|
|
||||||
DROP INDEX `devices_uuid_key` ON `devices`;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `customer_individuals` ADD COLUMN `complex_id` VARCHAR(191) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `customer_legal` ADD COLUMN `complex_id` VARCHAR(191) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `devices` DROP PRIMARY KEY,
|
|
||||||
DROP COLUMN `account_id`,
|
|
||||||
DROP COLUMN `app_version`,
|
|
||||||
DROP COLUMN `brand`,
|
|
||||||
DROP COLUMN `browser_name`,
|
|
||||||
DROP COLUMN `build_number`,
|
|
||||||
DROP COLUMN `device`,
|
|
||||||
DROP COLUMN `fcm_token`,
|
|
||||||
DROP COLUMN `model`,
|
|
||||||
DROP COLUMN `platform`,
|
|
||||||
DROP COLUMN `release_number`,
|
|
||||||
DROP COLUMN `sdk_version`,
|
|
||||||
DROP COLUMN `uuid`,
|
|
||||||
ADD COLUMN `brand_id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
ADD COLUMN `id` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `name` VARCHAR(191) NOT NULL,
|
|
||||||
ADD COLUMN `updated_at` DATETIME(3) NOT NULL,
|
|
||||||
MODIFY `os_version` VARCHAR(191) NULL,
|
|
||||||
ADD PRIMARY KEY (`id`);
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `tokens` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`token` VARCHAR(191) NOT NULL,
|
|
||||||
`type` ENUM('ACCESS', 'REFRESH') NOT NULL,
|
|
||||||
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`expires_at` DATETIME(3) NOT NULL,
|
|
||||||
`account_id` VARCHAR(191) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `tokens_token_key`(`token`),
|
|
||||||
UNIQUE INDEX `tokens_type_account_id_key`(`type`, `account_id`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `verification_codes` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`code` VARCHAR(191) NOT NULL,
|
|
||||||
`is_used` BOOLEAN NOT NULL DEFAULT false,
|
|
||||||
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`expires_at` DATETIME(3) NOT NULL,
|
|
||||||
`account_id` VARCHAR(191) NOT NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `guilds` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`code` VARCHAR(191) NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `business_activities` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`tax_id` VARCHAR(191) NULL,
|
|
||||||
`guild_id` VARCHAR(191) NOT NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `complexes` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`address` VARCHAR(191) NULL,
|
|
||||||
`business_activity_id` VARCHAR(191) NOT NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `poses` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`serial` VARCHAR(191) NOT NULL,
|
|
||||||
`model` VARCHAR(191) NULL,
|
|
||||||
`status` ENUM('ACTIVE', 'DISABLED') NOT NULL DEFAULT 'ACTIVE',
|
|
||||||
`pos_type` ENUM('PSP', 'MOBILE', 'API') NOT NULL,
|
|
||||||
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updated_at` DATETIME(3) NOT NULL,
|
|
||||||
`complex_id` VARCHAR(191) NOT NULL,
|
|
||||||
`device_id` VARCHAR(191) NOT NULL,
|
|
||||||
`provider_id` VARCHAR(191) NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `poses_serial_key`(`serial`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `device_brands` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updated_at` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `licenses` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`pos_id` VARCHAR(191) NOT NULL,
|
|
||||||
`partner_id` VARCHAR(191) NOT NULL,
|
|
||||||
`starts_at` DATETIME(3) NOT NULL,
|
|
||||||
`expires_at` DATETIME(3) NOT NULL,
|
|
||||||
`status` ENUM('ACTIVE', 'EXPIRED', 'SUSPENDED') NOT NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `partners` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`code` VARCHAR(191) NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `users` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`mobile_number` VARCHAR(191) NOT NULL,
|
|
||||||
`national_code` VARCHAR(191) NULL,
|
|
||||||
`first_name` VARCHAR(191) NOT NULL,
|
|
||||||
`last_name` VARCHAR(191) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `users_mobile_number_key`(`mobile_number`),
|
|
||||||
UNIQUE INDEX `users_national_code_key`(`national_code`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `accounts` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`username` VARCHAR(191) NOT NULL,
|
|
||||||
`type` ENUM('PARTNER', 'BUSINESS', 'ADMIN', 'PROVIDER', 'POS') NOT NULL,
|
|
||||||
`status` ENUM('ACTIVE', 'SUSPENDED') NOT NULL,
|
|
||||||
`password` VARCHAR(191) NOT NULL,
|
|
||||||
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`user_id` VARCHAR(191) NOT NULL,
|
|
||||||
`partner_id` VARCHAR(191) NULL,
|
|
||||||
`business_id` VARCHAR(191) NULL,
|
|
||||||
`provider_id` VARCHAR(191) NULL,
|
|
||||||
`pos_id` VARCHAR(191) NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `accounts_username_key`(`username`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `providers` (
|
|
||||||
`id` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`code` VARCHAR(191) NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `user_devices` (
|
|
||||||
`account_id` VARCHAR(255) NULL,
|
|
||||||
`app_version` VARCHAR(20) NOT NULL,
|
|
||||||
`build_number` VARCHAR(20) NOT NULL,
|
|
||||||
`uuid` VARCHAR(255) NOT NULL,
|
|
||||||
`platform` VARCHAR(100) NOT NULL,
|
|
||||||
`brand` VARCHAR(100) NOT NULL,
|
|
||||||
`model` VARCHAR(100) NOT NULL,
|
|
||||||
`device` VARCHAR(100) NOT NULL,
|
|
||||||
`os_version` VARCHAR(20) NOT NULL,
|
|
||||||
`sdk_version` VARCHAR(20) NOT NULL,
|
|
||||||
`release_number` VARCHAR(20) NOT NULL,
|
|
||||||
`browser_name` VARCHAR(100) NULL,
|
|
||||||
`fcm_token` VARCHAR(100) NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `user_devices_uuid_key`(`uuid`),
|
|
||||||
PRIMARY KEY (`uuid`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateIndex
|
|
||||||
CREATE UNIQUE INDEX `customer_individuals_complex_id_national_id_key` ON `customer_individuals`(`complex_id`, `national_id`);
|
|
||||||
|
|
||||||
-- CreateIndex
|
|
||||||
CREATE UNIQUE INDEX `customer_legal_complex_id_registration_number_key` ON `customer_legal`(`complex_id`, `registration_number`);
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `tokens` ADD CONSTRAINT `tokens_account_id_fkey` FOREIGN KEY (`account_id`) REFERENCES `accounts`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `verification_codes` ADD CONSTRAINT `verification_codes_account_id_fkey` FOREIGN KEY (`account_id`) REFERENCES `accounts`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `business_activities` ADD CONSTRAINT `business_activities_guild_id_fkey` FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `complexes` ADD CONSTRAINT `complexes_business_activity_id_fkey` FOREIGN KEY (`business_activity_id`) REFERENCES `business_activities`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `poses` ADD CONSTRAINT `poses_complex_id_fkey` FOREIGN KEY (`complex_id`) REFERENCES `complexes`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `poses` ADD CONSTRAINT `poses_device_id_fkey` FOREIGN KEY (`device_id`) REFERENCES `devices`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `poses` ADD CONSTRAINT `poses_provider_id_fkey` FOREIGN KEY (`provider_id`) REFERENCES `providers`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `devices` ADD CONSTRAINT `devices_brand_id_fkey` FOREIGN KEY (`brand_id`) REFERENCES `device_brands`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `licenses` ADD CONSTRAINT `licenses_pos_id_fkey` FOREIGN KEY (`pos_id`) REFERENCES `poses`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `licenses` ADD CONSTRAINT `licenses_partner_id_fkey` FOREIGN KEY (`partner_id`) REFERENCES `partners`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `accounts` ADD CONSTRAINT `accounts_user_id_fkey` FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `accounts` ADD CONSTRAINT `accounts_partner_id_fkey` FOREIGN KEY (`partner_id`) REFERENCES `partners`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `accounts` ADD CONSTRAINT `accounts_business_id_fkey` FOREIGN KEY (`business_id`) REFERENCES `business_activities`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `accounts` ADD CONSTRAINT `accounts_provider_id_fkey` FOREIGN KEY (`provider_id`) REFERENCES `providers`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `accounts` ADD CONSTRAINT `accounts_pos_id_fkey` FOREIGN KEY (`pos_id`) REFERENCES `poses`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- You are about to drop the column `account_id` on the `good_categories` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `account_id` on the `goods` table. All the data in the column will be lost.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `good_categories` DROP COLUMN `account_id`,
|
|
||||||
ADD COLUMN `guild_id` VARCHAR(191) NULL,
|
|
||||||
ADD COLUMN `is_default_guild_good` BOOLEAN NOT NULL DEFAULT false,
|
|
||||||
MODIFY `complex_id` VARCHAR(191) NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `goods` DROP COLUMN `account_id`,
|
|
||||||
ADD COLUMN `guild_id` VARCHAR(191) NULL,
|
|
||||||
ADD COLUMN `is_default_guild_good` BOOLEAN NOT NULL DEFAULT false,
|
|
||||||
MODIFY `base_sale_price` DECIMAL(15, 0) NULL DEFAULT 0.00,
|
|
||||||
MODIFY `complex_id` VARCHAR(191) NULL;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `goods` ADD CONSTRAINT `goods_complex_id_fkey` FOREIGN KEY (`complex_id`) REFERENCES `complexes`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `goods` ADD CONSTRAINT `goods_guild_id_fkey` FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `good_categories` ADD CONSTRAINT `good_categories_guild_id_fkey` FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `good_categories` ADD CONSTRAINT `good_categories_complex_id_fkey` FOREIGN KEY (`complex_id`) REFERENCES `complexes`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- You are about to drop the column `tax_id` on the `business_activities` table. All the data in the column will be lost.
|
|
||||||
- You are about to drop the column `pricingModel` on the `sales_invoice_items` table. All the data in the column will be lost.
|
|
||||||
- Added the required column `owner_id` to the `business_activities` table without a default value. This is not possible if the table is not empty.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `business_activities` DROP COLUMN `tax_id`,
|
|
||||||
ADD COLUMN `owner_id` VARCHAR(191) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `complexes` ADD COLUMN `tax_id` VARCHAR(191) NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `sales_invoice_items` DROP COLUMN `pricingModel`,
|
|
||||||
MODIFY `unit_type` ENUM('COUNT', 'GRAM', 'KILOGRAM', 'MILLILITER', 'LITER', 'METER', 'HOUR') NOT NULL;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `business_activities` ADD CONSTRAINT `business_activities_owner_id_fkey` FOREIGN KEY (`owner_id`) REFERENCES `users`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- Added the required column `pricing_model` to the `goods` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `unit_type` to the `goods` table without a default value. This is not possible if the table is not empty.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `goods` ADD COLUMN `pricing_model` ENUM('STANDARD', 'GOLD') NOT NULL,
|
|
||||||
ADD COLUMN `unit_type` ENUM('COUNT', 'GRAM', 'KILOGRAM', 'MILLILITER', 'LITER', 'METER', 'HOUR') NOT NULL;
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
-- AlterTable
|
|
||||||
ALTER TABLE `accounts` MODIFY `type` ENUM('PARTNER', 'BUSINESS', 'SUPER_ADMIN', 'ADMIN', 'PROVIDER', 'POS') NOT NULL;
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
-- AlterTable
|
|
||||||
ALTER TABLE `partners` ADD COLUMN `licenseQuota` INTEGER NULL DEFAULT 0;
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- You are about to drop the column `licenseQuota` on the `partners` table. All the data in the column will be lost.
|
|
||||||
- Added the required column `updated_at` to the `accounts` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `updated_at` to the `business_activities` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `updated_at` to the `complexes` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `updated_at` to the `guilds` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `updated_at` to the `licenses` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `updated_at` to the `providers` table without a default value. This is not possible if the table is not empty.
|
|
||||||
- Added the required column `updated_at` to the `users` table without a default value. This is not possible if the table is not empty.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `accounts` ADD COLUMN `updated_at` TIMESTAMP(0) NOT NULL,
|
|
||||||
MODIFY `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0);
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `business_activities` ADD COLUMN `updated_at` TIMESTAMP(0) NOT NULL,
|
|
||||||
MODIFY `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0);
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `complexes` ADD COLUMN `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
ADD COLUMN `updated_at` TIMESTAMP(0) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `device_brands` MODIFY `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
MODIFY `updated_at` TIMESTAMP(0) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `devices` MODIFY `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
MODIFY `updated_at` TIMESTAMP(0) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `guilds` ADD COLUMN `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
ADD COLUMN `updated_at` TIMESTAMP(0) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `licenses` ADD COLUMN `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
ADD COLUMN `updated_at` TIMESTAMP(0) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `partners` DROP COLUMN `licenseQuota`,
|
|
||||||
ADD COLUMN `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
ADD COLUMN `license_quota` INTEGER NULL DEFAULT 0,
|
|
||||||
ADD COLUMN `updated_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0);
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `poses` MODIFY `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
MODIFY `updated_at` TIMESTAMP(0) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `providers` ADD COLUMN `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
|
||||||
ADD COLUMN `updated_at` TIMESTAMP(0) NOT NULL;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `users` ADD COLUMN `updated_at` TIMESTAMP(0) NOT NULL,
|
|
||||||
MODIFY `created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0);
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- A unique constraint covering the columns `[user_id,business_id]` on the table `accounts` will be added. If there are existing duplicate values, this will fail.
|
|
||||||
- A unique constraint covering the columns `[user_id,provider_id]` on the table `accounts` will be added. If there are existing duplicate values, this will fail.
|
|
||||||
- A unique constraint covering the columns `[user_id,pos_id]` on the table `accounts` will be added. If there are existing duplicate values, this will fail.
|
|
||||||
- Added the required column `name` to the `poses` table without a default value. This is not possible if the table is not empty.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `poses` ADD COLUMN `name` VARCHAR(191) NOT NULL;
|
|
||||||
|
|
||||||
-- CreateIndex
|
|
||||||
CREATE UNIQUE INDEX `accounts_user_id_business_id_key` ON `accounts`(`user_id`, `business_id`);
|
|
||||||
|
|
||||||
-- CreateIndex
|
|
||||||
CREATE UNIQUE INDEX `accounts_user_id_provider_id_key` ON `accounts`(`user_id`, `provider_id`);
|
|
||||||
|
|
||||||
-- CreateIndex
|
|
||||||
CREATE UNIQUE INDEX `accounts_user_id_pos_id_key` ON `accounts`(`user_id`, `pos_id`);
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
-- DropForeignKey
|
|
||||||
ALTER TABLE `poses` DROP FOREIGN KEY `poses_device_id_fkey`;
|
|
||||||
|
|
||||||
-- DropIndex
|
|
||||||
DROP INDEX `poses_device_id_fkey` ON `poses`;
|
|
||||||
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `poses` MODIFY `pos_type` ENUM('PSP', 'MOBILE', 'WEB', 'API') NOT NULL,
|
|
||||||
MODIFY `device_id` VARCHAR(191) NULL;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `poses` ADD CONSTRAINT `poses_device_id_fkey` FOREIGN KEY (`device_id`) REFERENCES `devices`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
@@ -0,0 +1,557 @@
|
|||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `admins` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`mobile_number` VARCHAR(191) NOT NULL,
|
||||||
|
`national_code` VARCHAR(191) NULL,
|
||||||
|
`first_name` VARCHAR(191) NOT NULL,
|
||||||
|
`last_name` VARCHAR(191) NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `admins_mobile_number_key`(`mobile_number`),
|
||||||
|
UNIQUE INDEX `admins_national_code_key`(`national_code`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `admin_accounts` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`user_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `Account` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`username` VARCHAR(191) NOT NULL,
|
||||||
|
`password` VARCHAR(191) NOT NULL,
|
||||||
|
`status` ENUM('ACTIVE', 'SUSPENDED') NOT NULL,
|
||||||
|
`type` ENUM('ADMIN', 'PROVIDER', 'PARTNER', 'CONSUMER') NOT NULL,
|
||||||
|
`admin_account_id` VARCHAR(191) NULL,
|
||||||
|
`consumer_account_id` VARCHAR(191) NULL,
|
||||||
|
`provider_account_id` VARCHAR(191) NULL,
|
||||||
|
`partner_account_id` VARCHAR(191) NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `Account_username_key`(`username`),
|
||||||
|
UNIQUE INDEX `Account_password_key`(`password`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `consumers` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`mobile_number` VARCHAR(191) NOT NULL,
|
||||||
|
`first_name` VARCHAR(191) NOT NULL,
|
||||||
|
`last_name` VARCHAR(191) NOT NULL,
|
||||||
|
`status` ENUM('ACTIVE', 'SUSPENDED') NOT NULL DEFAULT 'ACTIVE',
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `consumers_mobile_number_key`(`mobile_number`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `consumer_accounts` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`role` ENUM('MANAGER', 'OPERATOR') NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`user_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `business_activities` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(191) NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`guild_id` VARCHAR(191) NOT NULL,
|
||||||
|
`user_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `complexes` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(191) NOT NULL,
|
||||||
|
`address` VARCHAR(191) NULL,
|
||||||
|
`tax_id` VARCHAR(191) NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`business_activity_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `poses` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(191) NOT NULL,
|
||||||
|
`serial` VARCHAR(191) NOT NULL,
|
||||||
|
`model` VARCHAR(191) NULL,
|
||||||
|
`status` ENUM('ACTIVE', 'DISABLED') NOT NULL DEFAULT 'ACTIVE',
|
||||||
|
`pos_type` ENUM('PSP', 'MOBILE', 'WEB', 'API') NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`complex_id` VARCHAR(191) NOT NULL,
|
||||||
|
`device_id` VARCHAR(191) NULL,
|
||||||
|
`provider_id` VARCHAR(191) NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `poses_serial_key`(`serial`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `device_brands` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(191) NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `devices` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(191) NOT NULL,
|
||||||
|
`os_version` VARCHAR(191) NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`brand_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `licenses` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`starts_at` DATETIME(3) NOT NULL,
|
||||||
|
`expires_at` DATETIME(3) NOT NULL,
|
||||||
|
`status` ENUM('ACTIVE', 'EXPIRED', 'SUSPENDED') NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`pos_id` VARCHAR(191) NOT NULL,
|
||||||
|
`partner_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `partners` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(191) NOT NULL,
|
||||||
|
`code` VARCHAR(191) NOT NULL,
|
||||||
|
`license_quota` INTEGER NULL DEFAULT 0,
|
||||||
|
`status` ENUM('ACTIVE', 'SUSPENDED') NOT NULL DEFAULT 'ACTIVE',
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
|
||||||
|
UNIQUE INDEX `partners_code_key`(`code`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `partner_accounts` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`role` ENUM('MANAGER', 'OPERATOR') NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`user_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `permission_consumers` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`account_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `permission_consumers_account_id_key`(`account_id`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `permission_poses` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`role` ENUM('MANAGER', 'OPERATOR') NOT NULL,
|
||||||
|
`pos_id` VARCHAR(191) NOT NULL,
|
||||||
|
`permission_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `permission_poses_permission_id_pos_id_key`(`permission_id`, `pos_id`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `permission_complexes` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`role` ENUM('MANAGER', 'OPERATOR') NOT NULL,
|
||||||
|
`complex_id` VARCHAR(191) NOT NULL,
|
||||||
|
`permission_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `permission_complexes_permission_id_complex_id_key`(`permission_id`, `complex_id`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `permission_business_activities` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`role` ENUM('MANAGER', 'OPERATOR') NOT NULL,
|
||||||
|
`business_id` VARCHAR(191) NOT NULL,
|
||||||
|
`permission_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `permission_business_activities_permission_id_business_id_key`(`permission_id`, `business_id`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `providers` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`code` VARCHAR(191) NOT NULL,
|
||||||
|
`status` ENUM('ACTIVE', 'SUSPENDED') NOT NULL DEFAULT 'ACTIVE',
|
||||||
|
`name` VARCHAR(191) NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `providers_code_key`(`code`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `provider_accounts` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`role` ENUM('MANAGER', 'OPERATOR') NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`user_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `trigger_logs` (
|
||||||
|
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||||
|
`message` TEXT NOT NULL,
|
||||||
|
`createdAt` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`name` TEXT NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `user_devices` (
|
||||||
|
`account_id` VARCHAR(255) NULL,
|
||||||
|
`app_version` VARCHAR(20) NOT NULL,
|
||||||
|
`build_number` VARCHAR(20) NOT NULL,
|
||||||
|
`uuid` VARCHAR(255) NOT NULL,
|
||||||
|
`platform` VARCHAR(100) NOT NULL,
|
||||||
|
`brand` VARCHAR(100) NOT NULL,
|
||||||
|
`model` VARCHAR(100) NOT NULL,
|
||||||
|
`device` VARCHAR(100) NOT NULL,
|
||||||
|
`os_version` VARCHAR(20) NOT NULL,
|
||||||
|
`sdk_version` VARCHAR(20) NOT NULL,
|
||||||
|
`release_number` VARCHAR(20) NOT NULL,
|
||||||
|
`browser_name` VARCHAR(100) NULL,
|
||||||
|
`fcm_token` VARCHAR(100) NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `user_devices_uuid_key`(`uuid`),
|
||||||
|
PRIMARY KEY (`uuid`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `customers` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`deleted_at` TIMESTAMP(0) NULL,
|
||||||
|
`type` ENUM('INDIVIDUAL', 'LEGAL', 'UNKNOWN') NOT NULL,
|
||||||
|
`complex_id` VARCHAR(191) NOT NULL,
|
||||||
|
`is_favorite` BOOLEAN NULL DEFAULT false,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `customer_individuals` (
|
||||||
|
`customer_id` VARCHAR(191) NOT NULL,
|
||||||
|
`first_name` VARCHAR(255) NOT NULL,
|
||||||
|
`last_name` VARCHAR(255) NOT NULL,
|
||||||
|
`national_id` CHAR(10) NOT NULL,
|
||||||
|
`postal_code` CHAR(10) NOT NULL,
|
||||||
|
`economic_code` CHAR(10) NULL,
|
||||||
|
`complex_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `customer_individuals_complex_id_national_id_key`(`complex_id`, `national_id`),
|
||||||
|
PRIMARY KEY (`customer_id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `customer_legal` (
|
||||||
|
`customer_id` VARCHAR(191) NOT NULL,
|
||||||
|
`company_name` VARCHAR(255) NOT NULL,
|
||||||
|
`economic_code` CHAR(10) NOT NULL,
|
||||||
|
`registration_number` CHAR(20) NOT NULL,
|
||||||
|
`postal_code` CHAR(10) NOT NULL,
|
||||||
|
`complex_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `customer_legal_complex_id_registration_number_key`(`complex_id`, `registration_number`),
|
||||||
|
PRIMARY KEY (`customer_id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `goods` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(255) NOT NULL,
|
||||||
|
`is_default_guild_good` BOOLEAN NOT NULL DEFAULT false,
|
||||||
|
`sku` VARCHAR(100) NOT NULL,
|
||||||
|
`unit_type` ENUM('COUNT', 'GRAM', 'KILOGRAM', 'MILLILITER', 'LITER', 'METER', 'HOUR') NOT NULL,
|
||||||
|
`pricing_model` ENUM('STANDARD', 'GOLD') NOT NULL,
|
||||||
|
`description` TEXT NULL,
|
||||||
|
`local_sku` VARCHAR(100) NULL,
|
||||||
|
`barcode` VARCHAR(100) NULL,
|
||||||
|
`base_sale_price` DECIMAL(15, 0) NULL DEFAULT 0.00,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`deleted_at` TIMESTAMP(0) NULL,
|
||||||
|
`complex_id` VARCHAR(191) NULL,
|
||||||
|
`category_id` VARCHAR(191) NULL,
|
||||||
|
`guild_id` VARCHAR(191) NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `goods_local_sku_key`(`local_sku`),
|
||||||
|
UNIQUE INDEX `goods_barcode_key`(`barcode`),
|
||||||
|
INDEX `goods_category_id_idx`(`category_id`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `good_categories` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(100) NOT NULL,
|
||||||
|
`description` TEXT NULL,
|
||||||
|
`image_url` VARCHAR(255) NULL,
|
||||||
|
`complex_id` VARCHAR(191) NULL,
|
||||||
|
`is_default_guild_good` BOOLEAN NOT NULL DEFAULT false,
|
||||||
|
`guild_id` VARCHAR(191) NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`deleted_at` TIMESTAMP(0) NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `guilds` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(191) NOT NULL,
|
||||||
|
`code` VARCHAR(191) NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `sales_invoices` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`code` VARCHAR(100) NOT NULL,
|
||||||
|
`total_amount` DECIMAL(15, 2) NOT NULL,
|
||||||
|
`notes` TEXT NULL,
|
||||||
|
`unknown_customer` JSON NULL,
|
||||||
|
`invoice_date` TIMESTAMP(0) NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`customer_id` VARCHAR(191) NULL,
|
||||||
|
`account_id` VARCHAR(191) NOT NULL,
|
||||||
|
`complex_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `sales_invoices_code_key`(`code`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `sales_invoice_items` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`quantity` DECIMAL(10, 0) NOT NULL,
|
||||||
|
`unit_type` ENUM('COUNT', 'GRAM', 'KILOGRAM', 'MILLILITER', 'LITER', 'METER', 'HOUR') NOT NULL,
|
||||||
|
`unit_price` DECIMAL(15, 2) NOT NULL DEFAULT 0.00,
|
||||||
|
`total_amount` DECIMAL(15, 2) NOT NULL DEFAULT 0.00,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`discount` DECIMAL(15, 2) NOT NULL DEFAULT 0.00,
|
||||||
|
`notes` TEXT NULL,
|
||||||
|
`invoice_id` VARCHAR(191) NOT NULL,
|
||||||
|
`good_id` VARCHAR(191) NULL,
|
||||||
|
`service_id` VARCHAR(191) NULL,
|
||||||
|
`payload` JSON NULL,
|
||||||
|
|
||||||
|
INDEX `sales_invoice_items_invoice_id_good_id_idx`(`invoice_id`, `good_id`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `sales_invoice_payments` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`invoice_id` VARCHAR(191) NOT NULL,
|
||||||
|
`amount` DECIMAL(15, 2) NOT NULL,
|
||||||
|
`payment_method` ENUM('TERMINAL', 'CASH', 'SET_OFF', 'CARD', 'BANK', 'CHECK', 'OTHER') NOT NULL,
|
||||||
|
`paid_at` DATETIME(3) NOT NULL,
|
||||||
|
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
||||||
|
|
||||||
|
INDEX `sales_invoice_payments_invoice_id_idx`(`invoice_id`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `services` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(255) NOT NULL,
|
||||||
|
`description` TEXT NULL,
|
||||||
|
`sku` VARCHAR(100) NOT NULL,
|
||||||
|
`local_sku` VARCHAR(100) NULL,
|
||||||
|
`barcode` VARCHAR(100) NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`deleted_at` TIMESTAMP(0) NULL,
|
||||||
|
`category_id` VARCHAR(191) NULL,
|
||||||
|
`base_sale_price` DECIMAL(15, 0) NOT NULL DEFAULT 0.00,
|
||||||
|
`account_id` VARCHAR(191) NOT NULL,
|
||||||
|
`complex_id` VARCHAR(191) NOT NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `services_sku_key`(`sku`),
|
||||||
|
UNIQUE INDEX `services_local_sku_key`(`local_sku`),
|
||||||
|
UNIQUE INDEX `services_barcode_key`(`barcode`),
|
||||||
|
INDEX `services_category_id_idx`(`category_id`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `service_categories` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`name` VARCHAR(100) NOT NULL,
|
||||||
|
`description` TEXT NULL,
|
||||||
|
`image_url` VARCHAR(255) NULL,
|
||||||
|
`account_id` VARCHAR(191) NOT NULL,
|
||||||
|
`complex_id` VARCHAR(191) NOT NULL,
|
||||||
|
`created_at` TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0),
|
||||||
|
`updated_at` TIMESTAMP(0) NOT NULL,
|
||||||
|
`deleted_at` TIMESTAMP(0) NULL,
|
||||||
|
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `admin_accounts` ADD CONSTRAINT `admin_accounts_user_id_fkey` FOREIGN KEY (`user_id`) REFERENCES `admins`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `Account` ADD CONSTRAINT `Account_admin_account_id_fkey` FOREIGN KEY (`admin_account_id`) REFERENCES `admin_accounts`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `Account` ADD CONSTRAINT `Account_consumer_account_id_fkey` FOREIGN KEY (`consumer_account_id`) REFERENCES `consumer_accounts`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `Account` ADD CONSTRAINT `Account_provider_account_id_fkey` FOREIGN KEY (`provider_account_id`) REFERENCES `provider_accounts`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `Account` ADD CONSTRAINT `Account_partner_account_id_fkey` FOREIGN KEY (`partner_account_id`) REFERENCES `partner_accounts`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `consumer_accounts` ADD CONSTRAINT `consumer_accounts_user_id_fkey` FOREIGN KEY (`user_id`) REFERENCES `consumers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `business_activities` ADD CONSTRAINT `business_activities_guild_id_fkey` FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `business_activities` ADD CONSTRAINT `business_activities_user_id_fkey` FOREIGN KEY (`user_id`) REFERENCES `consumers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `complexes` ADD CONSTRAINT `complexes_business_activity_id_fkey` FOREIGN KEY (`business_activity_id`) REFERENCES `business_activities`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `poses` ADD CONSTRAINT `poses_complex_id_fkey` FOREIGN KEY (`complex_id`) REFERENCES `complexes`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `poses` ADD CONSTRAINT `poses_device_id_fkey` FOREIGN KEY (`device_id`) REFERENCES `devices`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `poses` ADD CONSTRAINT `poses_provider_id_fkey` FOREIGN KEY (`provider_id`) REFERENCES `providers`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `devices` ADD CONSTRAINT `devices_brand_id_fkey` FOREIGN KEY (`brand_id`) REFERENCES `device_brands`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `licenses` ADD CONSTRAINT `licenses_pos_id_fkey` FOREIGN KEY (`pos_id`) REFERENCES `poses`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `licenses` ADD CONSTRAINT `licenses_partner_id_fkey` FOREIGN KEY (`partner_id`) REFERENCES `partners`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `partner_accounts` ADD CONSTRAINT `partner_accounts_user_id_fkey` FOREIGN KEY (`user_id`) REFERENCES `partners`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `permission_consumers` ADD CONSTRAINT `permission_consumers_account_id_fkey` FOREIGN KEY (`account_id`) REFERENCES `consumer_accounts`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `permission_poses` ADD CONSTRAINT `permission_poses_pos_id_fkey` FOREIGN KEY (`pos_id`) REFERENCES `poses`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `permission_poses` ADD CONSTRAINT `permission_poses_permission_id_fkey` FOREIGN KEY (`permission_id`) REFERENCES `permission_consumers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `permission_complexes` ADD CONSTRAINT `permission_complexes_complex_id_fkey` FOREIGN KEY (`complex_id`) REFERENCES `complexes`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `permission_complexes` ADD CONSTRAINT `permission_complexes_permission_id_fkey` FOREIGN KEY (`permission_id`) REFERENCES `permission_consumers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `permission_business_activities` ADD CONSTRAINT `permission_business_activities_business_id_fkey` FOREIGN KEY (`business_id`) REFERENCES `business_activities`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `permission_business_activities` ADD CONSTRAINT `permission_business_activities_permission_id_fkey` FOREIGN KEY (`permission_id`) REFERENCES `permission_consumers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `provider_accounts` ADD CONSTRAINT `provider_accounts_user_id_fkey` FOREIGN KEY (`user_id`) REFERENCES `providers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `customer_individuals` ADD CONSTRAINT `customer_individuals_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `customer_legal` ADD CONSTRAINT `customer_legal_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `goods` ADD CONSTRAINT `goods_category_id_fkey` FOREIGN KEY (`category_id`) REFERENCES `good_categories`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `goods` ADD CONSTRAINT `goods_complex_id_fkey` FOREIGN KEY (`complex_id`) REFERENCES `complexes`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `goods` ADD CONSTRAINT `goods_guild_id_fkey` FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `good_categories` ADD CONSTRAINT `good_categories_guild_id_fkey` FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `good_categories` ADD CONSTRAINT `good_categories_complex_id_fkey` FOREIGN KEY (`complex_id`) REFERENCES `complexes`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `sales_invoices` ADD CONSTRAINT `sales_invoices_customer_id_fkey` FOREIGN KEY (`customer_id`) REFERENCES `customers`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `sales_invoice_items` ADD CONSTRAINT `sales_invoice_items_invoice_id_fkey` FOREIGN KEY (`invoice_id`) REFERENCES `sales_invoices`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `sales_invoice_items` ADD CONSTRAINT `sales_invoice_items_good_id_fkey` FOREIGN KEY (`good_id`) REFERENCES `goods`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `sales_invoice_items` ADD CONSTRAINT `sales_invoice_items_service_id_fkey` FOREIGN KEY (`service_id`) REFERENCES `services`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `sales_invoice_payments` ADD CONSTRAINT `sales_invoice_payments_invoice_id_fkey` FOREIGN KEY (`invoice_id`) REFERENCES `sales_invoices`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `services` ADD CONSTRAINT `services_category_id_fkey` FOREIGN KEY (`category_id`) REFERENCES `service_categories`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the `Account` table. If the table is not empty, all the data it contains will be lost.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `Account` DROP FOREIGN KEY `Account_admin_account_id_fkey`;
|
||||||
|
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `Account` DROP FOREIGN KEY `Account_consumer_account_id_fkey`;
|
||||||
|
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `Account` DROP FOREIGN KEY `Account_partner_account_id_fkey`;
|
||||||
|
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `Account` DROP FOREIGN KEY `Account_provider_account_id_fkey`;
|
||||||
|
|
||||||
|
-- DropTable
|
||||||
|
DROP TABLE `Account`;
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE `accounts` (
|
||||||
|
`id` VARCHAR(191) NOT NULL,
|
||||||
|
`username` VARCHAR(191) NOT NULL,
|
||||||
|
`password` VARCHAR(191) NOT NULL,
|
||||||
|
`status` ENUM('ACTIVE', 'SUSPENDED') NOT NULL,
|
||||||
|
`type` ENUM('ADMIN', 'PROVIDER', 'PARTNER', 'CONSUMER') NOT NULL,
|
||||||
|
`admin_account_id` VARCHAR(191) NULL,
|
||||||
|
`consumer_account_id` VARCHAR(191) NULL,
|
||||||
|
`provider_account_id` VARCHAR(191) NULL,
|
||||||
|
`partner_account_id` VARCHAR(191) NULL,
|
||||||
|
|
||||||
|
UNIQUE INDEX `accounts_username_key`(`username`),
|
||||||
|
UNIQUE INDEX `accounts_password_key`(`password`),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `accounts` ADD CONSTRAINT `accounts_admin_account_id_fkey` FOREIGN KEY (`admin_account_id`) REFERENCES `admin_accounts`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `accounts` ADD CONSTRAINT `accounts_consumer_account_id_fkey` FOREIGN KEY (`consumer_account_id`) REFERENCES `consumer_accounts`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `accounts` ADD CONSTRAINT `accounts_provider_account_id_fkey` FOREIGN KEY (`provider_account_id`) REFERENCES `provider_accounts`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `accounts` ADD CONSTRAINT `accounts_partner_account_id_fkey` FOREIGN KEY (`partner_account_id`) REFERENCES `partner_accounts`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `admin_account_id` on the `accounts` table. All the data in the column will be lost.
|
||||||
|
- You are about to drop the column `consumer_account_id` on the `accounts` table. All the data in the column will be lost.
|
||||||
|
- You are about to drop the column `partner_account_id` on the `accounts` table. All the data in the column will be lost.
|
||||||
|
- You are about to drop the column `provider_account_id` on the `accounts` table. All the data in the column will be lost.
|
||||||
|
- A unique constraint covering the columns `[account_id]` on the table `admin_accounts` will be added. If there are existing duplicate values, this will fail.
|
||||||
|
- A unique constraint covering the columns `[account_id]` on the table `consumer_accounts` will be added. If there are existing duplicate values, this will fail.
|
||||||
|
- A unique constraint covering the columns `[account_id]` on the table `partner_accounts` will be added. If there are existing duplicate values, this will fail.
|
||||||
|
- A unique constraint covering the columns `[account_id]` on the table `provider_accounts` will be added. If there are existing duplicate values, this will fail.
|
||||||
|
- Added the required column `account_id` to the `admin_accounts` table without a default value. This is not possible if the table is not empty.
|
||||||
|
- Added the required column `account_id` to the `consumer_accounts` table without a default value. This is not possible if the table is not empty.
|
||||||
|
- Added the required column `account_id` to the `partner_accounts` table without a default value. This is not possible if the table is not empty.
|
||||||
|
- Added the required column `account_id` to the `provider_accounts` table without a default value. This is not possible if the table is not empty.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `accounts` DROP FOREIGN KEY `accounts_admin_account_id_fkey`;
|
||||||
|
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `accounts` DROP FOREIGN KEY `accounts_consumer_account_id_fkey`;
|
||||||
|
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `accounts` DROP FOREIGN KEY `accounts_partner_account_id_fkey`;
|
||||||
|
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `accounts` DROP FOREIGN KEY `accounts_provider_account_id_fkey`;
|
||||||
|
|
||||||
|
-- DropIndex
|
||||||
|
DROP INDEX `accounts_admin_account_id_fkey` ON `accounts`;
|
||||||
|
|
||||||
|
-- DropIndex
|
||||||
|
DROP INDEX `accounts_consumer_account_id_fkey` ON `accounts`;
|
||||||
|
|
||||||
|
-- DropIndex
|
||||||
|
DROP INDEX `accounts_partner_account_id_fkey` ON `accounts`;
|
||||||
|
|
||||||
|
-- DropIndex
|
||||||
|
DROP INDEX `accounts_provider_account_id_fkey` ON `accounts`;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `accounts` DROP COLUMN `admin_account_id`,
|
||||||
|
DROP COLUMN `consumer_account_id`,
|
||||||
|
DROP COLUMN `partner_account_id`,
|
||||||
|
DROP COLUMN `provider_account_id`;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `admin_accounts` ADD COLUMN `account_id` VARCHAR(191) NOT NULL;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `consumer_accounts` ADD COLUMN `account_id` VARCHAR(191) NOT NULL,
|
||||||
|
MODIFY `role` ENUM('OWNER', 'MANAGER', 'OPERATOR') NOT NULL;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `partner_accounts` ADD COLUMN `account_id` VARCHAR(191) NOT NULL,
|
||||||
|
MODIFY `role` ENUM('OWNER', 'MANAGER', 'OPERATOR') NOT NULL;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `provider_accounts` ADD COLUMN `account_id` VARCHAR(191) NOT NULL,
|
||||||
|
MODIFY `role` ENUM('OWNER', 'MANAGER', 'OPERATOR') NOT NULL;
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX `admin_accounts_account_id_key` ON `admin_accounts`(`account_id`);
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX `consumer_accounts_account_id_key` ON `consumer_accounts`(`account_id`);
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX `partner_accounts_account_id_key` ON `partner_accounts`(`account_id`);
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX `provider_accounts_account_id_key` ON `provider_accounts`(`account_id`);
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `admin_accounts` ADD CONSTRAINT `admin_accounts_account_id_fkey` FOREIGN KEY (`account_id`) REFERENCES `accounts`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `consumer_accounts` ADD CONSTRAINT `consumer_accounts_account_id_fkey` FOREIGN KEY (`account_id`) REFERENCES `accounts`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `partner_accounts` ADD CONSTRAINT `partner_accounts_account_id_fkey` FOREIGN KEY (`account_id`) REFERENCES `accounts`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE `provider_accounts` ADD CONSTRAINT `provider_accounts_account_id_fkey` FOREIGN KEY (`account_id`) REFERENCES `accounts`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `guild_id` on the `goods` table. All the data in the column will be lost.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- DropForeignKey
|
||||||
|
ALTER TABLE `goods` DROP FOREIGN KEY `goods_guild_id_fkey`;
|
||||||
|
|
||||||
|
-- DropIndex
|
||||||
|
DROP INDEX `goods_guild_id_fkey` ON `goods`;
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `goods` DROP COLUMN `guild_id`;
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
model Admin {
|
||||||
|
id String @id @default(uuid())
|
||||||
|
mobile_number String @unique()
|
||||||
|
national_code String? @unique()
|
||||||
|
first_name String
|
||||||
|
last_name String
|
||||||
|
|
||||||
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
||||||
|
|
||||||
|
accounts AdminAccount[]
|
||||||
|
|
||||||
|
@@map("admins")
|
||||||
|
}
|
||||||
|
|
||||||
|
model AdminAccount {
|
||||||
|
id String @id @default(uuid())
|
||||||
|
|
||||||
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
||||||
|
|
||||||
|
user_id String
|
||||||
|
user Admin @relation(fields: [user_id], references: [id])
|
||||||
|
|
||||||
|
account_id String @unique
|
||||||
|
account Account @relation(fields: [account_id], references: [id])
|
||||||
|
|
||||||
|
@@map("admin_accounts")
|
||||||
|
}
|
||||||
|
|
||||||
|
// model LegalProfile {
|
||||||
|
// user_id String @id
|
||||||
|
// company_name String
|
||||||
|
// register_no String @unique()
|
||||||
|
// representative_name String?
|
||||||
|
// representative_national_id String?
|
||||||
|
|
||||||
|
// // user User @relation(fields: [user_id], references: [id])
|
||||||
|
|
||||||
|
// @@map("legal_profiles")
|
||||||
|
// }
|
||||||
|
|
||||||
|
// model IndividualProfile {
|
||||||
|
// user_id String @id
|
||||||
|
// national_code String @unique()
|
||||||
|
// first_name String
|
||||||
|
// last_name String
|
||||||
|
// birth_date DateTime?
|
||||||
|
// mobile_number String
|
||||||
|
// // user User @relation(fields: [user_id], references: [id])
|
||||||
|
|
||||||
|
// @@map("individual_profiles")
|
||||||
|
// }
|
||||||
@@ -1,26 +1,44 @@
|
|||||||
model Token {
|
model Account {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
token String @unique
|
username String @unique()
|
||||||
type TokenType
|
password String @unique()
|
||||||
created_at DateTime @default(now())
|
status AccountStatus
|
||||||
expires_at DateTime
|
type AccountType
|
||||||
|
|
||||||
account_id String
|
admin_account AdminAccount?
|
||||||
account Account @relation(fields: [account_id], references: [id])
|
provider_account ProviderAccount?
|
||||||
|
partner_account PartnerAccount?
|
||||||
|
consumer_account ConsumerAccount?
|
||||||
|
|
||||||
@@unique([type, account_id])
|
// tokens Token[]
|
||||||
@@map("tokens")
|
// refresh_tokens RefreshToken[]
|
||||||
|
|
||||||
|
@@map("accounts")
|
||||||
}
|
}
|
||||||
|
|
||||||
model VerificationCode {
|
// model Token {
|
||||||
id String @id @default(uuid())
|
// id String @id @d @uniqueefault(uuid())
|
||||||
code String
|
// token String @unique
|
||||||
is_used Boolean @default(false)
|
// type TokenType
|
||||||
created_at DateTime @default(now())
|
// created_at DateTime @default(now())
|
||||||
expires_at DateTime
|
// expires_at DateTime
|
||||||
|
|
||||||
account_id String
|
// account_id String
|
||||||
account Account @relation(fields: [account_id], references: [id])
|
// account Account @relation(fields: [account_id], references: [id])
|
||||||
|
|
||||||
@@map("verification_codes")
|
// @@unique([type, account_id])
|
||||||
}
|
// @@map("tokens")
|
||||||
|
// }
|
||||||
|
|
||||||
|
// model VerificationCode {
|
||||||
|
// id String @id @default(uuid())
|
||||||
|
// code String
|
||||||
|
// is_used Boolean @default(false)
|
||||||
|
// created_at DateTime @default(now())
|
||||||
|
// expires_at DateTime
|
||||||
|
|
||||||
|
// account_id String
|
||||||
|
// account Account @relation(fields: [account_id], references: [id])
|
||||||
|
|
||||||
|
// @@map("verification_codes")
|
||||||
|
// }
|
||||||
|
|||||||
@@ -1,16 +1,35 @@
|
|||||||
model Guild {
|
model Consumer {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
name String
|
mobile_number String @unique()
|
||||||
code String?
|
first_name String
|
||||||
|
last_name String
|
||||||
|
status ConsumerStatus @default(ACTIVE)
|
||||||
|
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
||||||
|
|
||||||
business_activities BusinessActivity[]
|
accounts ConsumerAccount[]
|
||||||
goods Good[]
|
businessActivities BusinessActivity[]
|
||||||
good_categories GoodCategory[]
|
|
||||||
|
|
||||||
@@map("guilds")
|
@@map("consumers")
|
||||||
|
}
|
||||||
|
|
||||||
|
model ConsumerAccount {
|
||||||
|
id String @id @default(uuid())
|
||||||
|
role ConsumerRole
|
||||||
|
|
||||||
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
||||||
|
|
||||||
|
user_id String
|
||||||
|
user Consumer @relation(fields: [user_id], references: [id])
|
||||||
|
|
||||||
|
account_id String @unique
|
||||||
|
account Account @relation(fields: [account_id], references: [id])
|
||||||
|
|
||||||
|
permissions PermissionConsumer[]
|
||||||
|
|
||||||
|
@@map("consumer_accounts")
|
||||||
}
|
}
|
||||||
|
|
||||||
model BusinessActivity {
|
model BusinessActivity {
|
||||||
@@ -20,13 +39,13 @@ model BusinessActivity {
|
|||||||
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
||||||
|
|
||||||
guild_id String
|
guild_id String
|
||||||
owner_id String
|
user_id String
|
||||||
|
|
||||||
guild Guild @relation(fields: [guild_id], references: [id])
|
guild Guild @relation(fields: [guild_id], references: [id])
|
||||||
user User @relation(fields: [owner_id], references: [id])
|
user Consumer @relation(fields: [user_id], references: [id])
|
||||||
|
|
||||||
complexes Complex[]
|
complexes Complex[]
|
||||||
accounts Account[]
|
permissionBusinesses PermissionBusiness[]
|
||||||
|
|
||||||
@@map("business_activities")
|
@@map("business_activities")
|
||||||
}
|
}
|
||||||
@@ -44,9 +63,10 @@ model Complex {
|
|||||||
|
|
||||||
business_activity BusinessActivity @relation(fields: [business_activity_id], references: [id])
|
business_activity BusinessActivity @relation(fields: [business_activity_id], references: [id])
|
||||||
|
|
||||||
pos_list Pos[]
|
pos_list Pos[]
|
||||||
goods Good[]
|
goods Good[]
|
||||||
good_categories GoodCategory[]
|
good_categories GoodCategory[]
|
||||||
|
permissionComplexes PermissionComplex[]
|
||||||
|
|
||||||
@@map("complexes")
|
@@map("complexes")
|
||||||
}
|
}
|
||||||
@@ -61,16 +81,17 @@ model Pos {
|
|||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
||||||
|
|
||||||
complex_id String
|
complex_id String
|
||||||
device_id String?
|
complex Complex @relation(fields: [complex_id], references: [id])
|
||||||
|
|
||||||
|
device_id String?
|
||||||
|
device Device? @relation(fields: [device_id], references: [id])
|
||||||
|
|
||||||
provider_id String?
|
provider_id String?
|
||||||
|
provider Provider? @relation(fields: [provider_id], references: [id])
|
||||||
|
|
||||||
complex Complex @relation(fields: [complex_id], references: [id])
|
licenses License[]
|
||||||
device Device? @relation(fields: [device_id], references: [id])
|
permissionPos PermissionPos[]
|
||||||
provider Provider? @relation(fields: [provider_id], references: [id])
|
|
||||||
|
|
||||||
licenses License[]
|
|
||||||
accounts Account[]
|
|
||||||
|
|
||||||
@@map("poses")
|
@@map("poses")
|
||||||
}
|
}
|
||||||
@@ -1,29 +1,31 @@
|
|||||||
model Partner {
|
model Partner {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
name String
|
name String
|
||||||
code String?
|
code String @unique()
|
||||||
license_quota Int? @default(0)
|
license_quota Int? @default(0)
|
||||||
|
status PartnerStatus @default(ACTIVE)
|
||||||
|
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
updated_at DateTime @default(now()) @updatedAt @db.Timestamp(0)
|
updated_at DateTime @default(now()) @updatedAt @db.Timestamp(0)
|
||||||
|
|
||||||
licenses License[]
|
licenses License[]
|
||||||
account Account[]
|
accounts PartnerAccount[]
|
||||||
|
|
||||||
@@map("partners")
|
@@map("partners")
|
||||||
}
|
}
|
||||||
|
|
||||||
// model PartnerAccount {
|
model PartnerAccount {
|
||||||
// id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
// role PartnerRole
|
role PartnerRole
|
||||||
// status AccountStatus @default(ACTIVE)
|
|
||||||
// created_at DateTime @default(now())
|
|
||||||
// partner_id String
|
|
||||||
// account_id String @unique
|
|
||||||
|
|
||||||
// partner Partner @relation(fields: [partner_id], references: [id])
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
// account Account @relation(fields: [account_id], references: [id])
|
updated_at DateTime @default(now()) @updatedAt @db.Timestamp(0)
|
||||||
|
|
||||||
// @@unique([partner_id, account_id])
|
user_id String
|
||||||
// @@map("partner_accounts")
|
user Partner @relation(fields: [user_id], references: [id])
|
||||||
// }
|
|
||||||
|
account_id String @unique
|
||||||
|
account Account @relation(fields: [account_id], references: [id])
|
||||||
|
|
||||||
|
@@map("partner_accounts")
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
model PermissionConsumer {
|
||||||
|
id String @id @default(uuid())
|
||||||
|
|
||||||
|
account_id String @unique
|
||||||
|
|
||||||
|
account ConsumerAccount @relation(fields: [account_id], references: [id])
|
||||||
|
|
||||||
|
posPermissions PermissionPos[]
|
||||||
|
complexPermissions PermissionComplex[]
|
||||||
|
businessPermissions PermissionBusiness[]
|
||||||
|
|
||||||
|
@@map("permission_consumers")
|
||||||
|
}
|
||||||
|
|
||||||
|
model PermissionPos {
|
||||||
|
id String @id @default(uuid())
|
||||||
|
role POSRole
|
||||||
|
|
||||||
|
pos_id String
|
||||||
|
permission_id String
|
||||||
|
|
||||||
|
pos Pos @relation(fields: [pos_id], references: [id])
|
||||||
|
permission PermissionConsumer @relation(fields: [permission_id], references: [id])
|
||||||
|
|
||||||
|
@@unique([permission_id, pos_id])
|
||||||
|
@@map("permission_poses")
|
||||||
|
}
|
||||||
|
|
||||||
|
model PermissionComplex {
|
||||||
|
id String @id @default(uuid())
|
||||||
|
role ComplexRole
|
||||||
|
|
||||||
|
complex_id String
|
||||||
|
permission_id String
|
||||||
|
|
||||||
|
complex Complex @relation(fields: [complex_id], references: [id])
|
||||||
|
permission PermissionConsumer @relation(fields: [permission_id], references: [id])
|
||||||
|
|
||||||
|
@@unique([permission_id, complex_id])
|
||||||
|
@@map("permission_complexes")
|
||||||
|
}
|
||||||
|
|
||||||
|
model PermissionBusiness {
|
||||||
|
id String @id @default(uuid())
|
||||||
|
role BusinessRole
|
||||||
|
|
||||||
|
business_id String
|
||||||
|
permission_id String
|
||||||
|
|
||||||
|
business BusinessActivity @relation(fields: [business_id], references: [id])
|
||||||
|
permission PermissionConsumer @relation(fields: [permission_id], references: [id])
|
||||||
|
|
||||||
|
@@unique([permission_id, business_id])
|
||||||
|
@@map("permission_business_activities")
|
||||||
|
}
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
model User {
|
|
||||||
id String @id @default(uuid())
|
|
||||||
// user_type UserType
|
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
||||||
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
|
||||||
|
|
||||||
// individual_profile IndividualProfile?
|
|
||||||
// legal_profile LegalProfile?
|
|
||||||
mobile_number String @unique()
|
|
||||||
national_code String? @unique()
|
|
||||||
first_name String
|
|
||||||
last_name String
|
|
||||||
// username String
|
|
||||||
accounts Account[]
|
|
||||||
businessActivities BusinessActivity[]
|
|
||||||
|
|
||||||
@@map("users")
|
|
||||||
}
|
|
||||||
|
|
||||||
// model LegalProfile {
|
|
||||||
// user_id String @id
|
|
||||||
// company_name String
|
|
||||||
// register_no String @unique()
|
|
||||||
// representative_name String?
|
|
||||||
// representative_national_id String?
|
|
||||||
|
|
||||||
// // user User @relation(fields: [user_id], references: [id])
|
|
||||||
|
|
||||||
// @@map("legal_profiles")
|
|
||||||
// }
|
|
||||||
|
|
||||||
// model IndividualProfile {
|
|
||||||
// user_id String @id
|
|
||||||
// national_code String @unique()
|
|
||||||
// first_name String
|
|
||||||
// last_name String
|
|
||||||
// birth_date DateTime?
|
|
||||||
// mobile_number String
|
|
||||||
// // user User @relation(fields: [user_id], references: [id])
|
|
||||||
|
|
||||||
// @@map("individual_profiles")
|
|
||||||
// }
|
|
||||||
|
|
||||||
model Account {
|
|
||||||
id String @id @default(uuid())
|
|
||||||
username String @unique()
|
|
||||||
// first_name String
|
|
||||||
// last_name String
|
|
||||||
type AccountType
|
|
||||||
status AccountStatus
|
|
||||||
password String
|
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
||||||
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
|
||||||
|
|
||||||
user_id String
|
|
||||||
user User @relation(fields: [user_id], references: [id])
|
|
||||||
|
|
||||||
partner_id String?
|
|
||||||
partner Partner? @relation(fields: [partner_id], references: [id])
|
|
||||||
|
|
||||||
business_id String?
|
|
||||||
business BusinessActivity? @relation(fields: [business_id], references: [id])
|
|
||||||
|
|
||||||
provider_id String?
|
|
||||||
provider Provider? @relation(fields: [provider_id], references: [id])
|
|
||||||
|
|
||||||
pos_id String?
|
|
||||||
pos Pos? @relation(fields: [pos_id], references: [id])
|
|
||||||
|
|
||||||
verification_codes VerificationCode[]
|
|
||||||
tokens Token[]
|
|
||||||
|
|
||||||
@@unique([user_id, business_id])
|
|
||||||
@@unique([user_id, provider_id])
|
|
||||||
@@unique([user_id, pos_id])
|
|
||||||
@@map("accounts")
|
|
||||||
}
|
|
||||||
@@ -1,28 +1,30 @@
|
|||||||
model Provider {
|
model Provider {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
name String
|
code String @unique()
|
||||||
code String?
|
status PartnerStatus @default(ACTIVE)
|
||||||
|
name String
|
||||||
|
|
||||||
created_at DateTime @default(now()) @db.Timestamp(0)
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
updated_at DateTime @updatedAt @db.Timestamp(0)
|
updated_at DateTime @updatedAt @db.Timestamp(0)
|
||||||
|
|
||||||
pos_list Pos[]
|
pos_list Pos[]
|
||||||
accounts Account[]
|
accounts ProviderAccount[]
|
||||||
|
|
||||||
@@map("providers")
|
@@map("providers")
|
||||||
}
|
}
|
||||||
|
|
||||||
// model ProviderAccount {
|
model ProviderAccount {
|
||||||
// id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
// role ProviderRole
|
role ProviderRole
|
||||||
// status AccountStatus @default(ACTIVE)
|
|
||||||
// created_at DateTime @default(now())
|
|
||||||
// provider_id String
|
|
||||||
// account_id String @unique
|
|
||||||
|
|
||||||
// provider Provider @relation(fields: [provider_id], references: [id])
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
// account Account @relation(fields: [account_id], references: [id])
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
||||||
|
|
||||||
// @@unique([provider_id, account_id])
|
user_id String
|
||||||
// @@map("provider_accounts")
|
user Provider @relation(fields: [user_id], references: [id])
|
||||||
// }
|
|
||||||
|
account_id String @unique
|
||||||
|
account Account @relation(fields: [account_id], references: [id])
|
||||||
|
|
||||||
|
@@map("provider_accounts")
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,17 +8,6 @@ enum PaymentMethodType {
|
|||||||
OTHER
|
OTHER
|
||||||
}
|
}
|
||||||
|
|
||||||
enum PurchaseReceiptStatus {
|
|
||||||
UNPAID
|
|
||||||
PARTIALLY_PAID
|
|
||||||
PAID
|
|
||||||
}
|
|
||||||
|
|
||||||
enum SalesInvoiceType {
|
|
||||||
GOOD
|
|
||||||
SERVICE
|
|
||||||
}
|
|
||||||
|
|
||||||
enum UnitType {
|
enum UnitType {
|
||||||
COUNT
|
COUNT
|
||||||
GRAM
|
GRAM
|
||||||
@@ -40,22 +29,6 @@ enum CustomerType {
|
|||||||
UNKNOWN
|
UNKNOWN
|
||||||
}
|
}
|
||||||
|
|
||||||
enum UserStatus {
|
|
||||||
ACTIVE
|
|
||||||
INACTIVE
|
|
||||||
}
|
|
||||||
|
|
||||||
enum AccountRole {
|
|
||||||
OWNER
|
|
||||||
OPERATOR
|
|
||||||
ACCOUNTANT
|
|
||||||
}
|
|
||||||
|
|
||||||
enum AccountStatus {
|
|
||||||
ACTIVE
|
|
||||||
SUSPENDED
|
|
||||||
}
|
|
||||||
|
|
||||||
enum POSStatus {
|
enum POSStatus {
|
||||||
ACTIVE
|
ACTIVE
|
||||||
DISABLED
|
DISABLED
|
||||||
@@ -64,7 +37,16 @@ enum POSStatus {
|
|||||||
enum POSRole {
|
enum POSRole {
|
||||||
MANAGER
|
MANAGER
|
||||||
OPERATOR
|
OPERATOR
|
||||||
VIEWER
|
}
|
||||||
|
|
||||||
|
enum ComplexRole {
|
||||||
|
MANAGER
|
||||||
|
OPERATOR
|
||||||
|
}
|
||||||
|
|
||||||
|
enum BusinessRole {
|
||||||
|
MANAGER
|
||||||
|
OPERATOR
|
||||||
}
|
}
|
||||||
|
|
||||||
enum LicenseType {
|
enum LicenseType {
|
||||||
@@ -92,29 +74,61 @@ enum UserType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enum AccountType {
|
enum AccountType {
|
||||||
PARTNER
|
|
||||||
BUSINESS
|
|
||||||
SUPER_ADMIN
|
|
||||||
ADMIN
|
ADMIN
|
||||||
PROVIDER
|
PROVIDER
|
||||||
POS
|
PARTNER
|
||||||
|
CONSUMER
|
||||||
|
}
|
||||||
|
|
||||||
|
enum UserStatus {
|
||||||
|
ACTIVE
|
||||||
|
INACTIVE
|
||||||
|
}
|
||||||
|
|
||||||
|
enum AccountRole {
|
||||||
|
OWNER
|
||||||
|
OPERATOR
|
||||||
|
ACCOUNTANT
|
||||||
|
}
|
||||||
|
|
||||||
|
enum AccountStatus {
|
||||||
|
ACTIVE
|
||||||
|
SUSPENDED
|
||||||
}
|
}
|
||||||
|
|
||||||
enum PartnerRole {
|
enum PartnerRole {
|
||||||
ADMIN
|
OWNER
|
||||||
|
MANAGER
|
||||||
OPERATOR
|
OPERATOR
|
||||||
}
|
}
|
||||||
|
|
||||||
enum BusinessRole {
|
enum PartnerStatus {
|
||||||
ADMIN
|
ACTIVE
|
||||||
OPERATOR
|
SUSPENDED
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ProviderRole {
|
enum ProviderRole {
|
||||||
ADMIN
|
OWNER
|
||||||
|
MANAGER
|
||||||
OPERATOR
|
OPERATOR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum ProviderStatus {
|
||||||
|
ACTIVE
|
||||||
|
SUSPENDED
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ConsumerRole {
|
||||||
|
OWNER
|
||||||
|
MANAGER
|
||||||
|
OPERATOR
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ConsumerStatus {
|
||||||
|
ACTIVE
|
||||||
|
SUSPENDED
|
||||||
|
}
|
||||||
|
|
||||||
enum TokenType {
|
enum TokenType {
|
||||||
ACCESS
|
ACCESS
|
||||||
REFRESH
|
REFRESH
|
||||||
|
|||||||
@@ -15,11 +15,9 @@ model Good {
|
|||||||
|
|
||||||
complex_id String?
|
complex_id String?
|
||||||
category_id String?
|
category_id String?
|
||||||
guild_id String?
|
|
||||||
|
|
||||||
category GoodCategory? @relation(fields: [category_id], references: [id])
|
category GoodCategory? @relation(fields: [category_id], references: [id])
|
||||||
complex Complex? @relation(fields: [complex_id], references: [id])
|
complex Complex? @relation(fields: [complex_id], references: [id])
|
||||||
guild Guild? @relation(fields: [guild_id], references: [id])
|
|
||||||
sales_invoice_items SalesInvoiceItem[]
|
sales_invoice_items SalesInvoiceItem[]
|
||||||
|
|
||||||
@@index([category_id])
|
@@index([category_id])
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
model Guild {
|
||||||
|
id String @id @default(uuid())
|
||||||
|
name String
|
||||||
|
code String?
|
||||||
|
|
||||||
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
||||||
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
||||||
|
|
||||||
|
business_activities BusinessActivity[]
|
||||||
|
good_categories GoodCategory[]
|
||||||
|
|
||||||
|
@@map("guilds")
|
||||||
|
}
|
||||||
+52
-12
@@ -3,25 +3,65 @@ import { prisma } from '../src/lib/prisma'
|
|||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const password = await PasswordUtil.hash('123456')
|
const password = await PasswordUtil.hash('123456')
|
||||||
const adminUser = await prisma.account.upsert({
|
const adminUser = await prisma.admin.upsert({
|
||||||
where: { username: 'superAdmin' },
|
where: {
|
||||||
|
mobile_number: '09120258156',
|
||||||
|
},
|
||||||
update: {},
|
update: {},
|
||||||
create: {
|
create: {
|
||||||
username: 'superAdmin',
|
first_name: 'عباس',
|
||||||
password,
|
last_name: 'حسنی',
|
||||||
type: 'ADMIN',
|
national_code: '0016022289',
|
||||||
status: 'ACTIVE',
|
mobile_number: '09120258156',
|
||||||
updated_at: new Date(),
|
accounts: {
|
||||||
user: {
|
|
||||||
create: {
|
create: {
|
||||||
first_name: 'عباس',
|
account: {
|
||||||
last_name: 'حسنی',
|
create: {
|
||||||
national_code: '0016022289',
|
username: 'superAdmin',
|
||||||
mobile_number: '09120258156',
|
password,
|
||||||
|
type: 'ADMIN',
|
||||||
|
status: 'ACTIVE',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const guildsCount = prisma.guild.count()
|
||||||
|
if (!guildsCount) {
|
||||||
|
const guilds = await prisma.guild.createMany({
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
name: 'طلا',
|
||||||
|
code: 'Gold',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'میوه و ترهبار',
|
||||||
|
code: 'Fruit',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
})
|
||||||
|
|
||||||
|
const goldGuildId = guilds[0].id
|
||||||
|
|
||||||
|
const categoryFactory = (name: string) => ({
|
||||||
|
name,
|
||||||
|
guild_id: goldGuildId,
|
||||||
|
is_default_guild_good: true,
|
||||||
|
})
|
||||||
|
|
||||||
|
await prisma.goodCategory.createMany({
|
||||||
|
data: [
|
||||||
|
categoryFactory('زیورآلات'),
|
||||||
|
categoryFactory('طلا'),
|
||||||
|
categoryFactory('سایر'),
|
||||||
|
categoryFactory('سکه'),
|
||||||
|
categoryFactory('شمش'),
|
||||||
|
categoryFactory('شمش'),
|
||||||
|
],
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|||||||
@@ -18,20 +18,30 @@ export { Prisma }
|
|||||||
export * as $Enums from './enums.js'
|
export * as $Enums from './enums.js'
|
||||||
export * from './enums.js';
|
export * from './enums.js';
|
||||||
/**
|
/**
|
||||||
* Model Token
|
* Model Admin
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Token = Prisma.TokenModel
|
export type Admin = Prisma.AdminModel
|
||||||
/**
|
/**
|
||||||
* Model VerificationCode
|
* Model AdminAccount
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type VerificationCode = Prisma.VerificationCodeModel
|
export type AdminAccount = Prisma.AdminAccountModel
|
||||||
/**
|
/**
|
||||||
* Model Guild
|
* Model Account
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Guild = Prisma.GuildModel
|
export type Account = Prisma.AccountModel
|
||||||
|
/**
|
||||||
|
* Model Consumer
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Consumer = Prisma.ConsumerModel
|
||||||
|
/**
|
||||||
|
* Model ConsumerAccount
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ConsumerAccount = Prisma.ConsumerAccountModel
|
||||||
/**
|
/**
|
||||||
* Model BusinessActivity
|
* Model BusinessActivity
|
||||||
*
|
*
|
||||||
@@ -68,20 +78,40 @@ export type License = Prisma.LicenseModel
|
|||||||
*/
|
*/
|
||||||
export type Partner = Prisma.PartnerModel
|
export type Partner = Prisma.PartnerModel
|
||||||
/**
|
/**
|
||||||
* Model User
|
* Model PartnerAccount
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type User = Prisma.UserModel
|
export type PartnerAccount = Prisma.PartnerAccountModel
|
||||||
/**
|
/**
|
||||||
* Model Account
|
* Model PermissionConsumer
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Account = Prisma.AccountModel
|
export type PermissionConsumer = Prisma.PermissionConsumerModel
|
||||||
|
/**
|
||||||
|
* Model PermissionPos
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type PermissionPos = Prisma.PermissionPosModel
|
||||||
|
/**
|
||||||
|
* Model PermissionComplex
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type PermissionComplex = Prisma.PermissionComplexModel
|
||||||
|
/**
|
||||||
|
* Model PermissionBusiness
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type PermissionBusiness = Prisma.PermissionBusinessModel
|
||||||
/**
|
/**
|
||||||
* Model Provider
|
* Model Provider
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Provider = Prisma.ProviderModel
|
export type Provider = Prisma.ProviderModel
|
||||||
|
/**
|
||||||
|
* Model ProviderAccount
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ProviderAccount = Prisma.ProviderAccountModel
|
||||||
/**
|
/**
|
||||||
* Model TriggerLog
|
* Model TriggerLog
|
||||||
*
|
*
|
||||||
@@ -117,6 +147,11 @@ export type Good = Prisma.GoodModel
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type GoodCategory = Prisma.GoodCategoryModel
|
export type GoodCategory = Prisma.GoodCategoryModel
|
||||||
|
/**
|
||||||
|
* Model Guild
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Guild = Prisma.GuildModel
|
||||||
/**
|
/**
|
||||||
* Model SalesInvoice
|
* Model SalesInvoice
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ export * from "./enums.js"
|
|||||||
* @example
|
* @example
|
||||||
* ```
|
* ```
|
||||||
* const prisma = new PrismaClient()
|
* const prisma = new PrismaClient()
|
||||||
* // Fetch zero or more Tokens
|
* // Fetch zero or more Admins
|
||||||
* const tokens = await prisma.token.findMany()
|
* const admins = await prisma.admin.findMany()
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* Read more in our [docs](https://pris.ly/d/client).
|
* Read more in our [docs](https://pris.ly/d/client).
|
||||||
@@ -38,20 +38,30 @@ export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts exten
|
|||||||
export { Prisma }
|
export { Prisma }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model Token
|
* Model Admin
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Token = Prisma.TokenModel
|
export type Admin = Prisma.AdminModel
|
||||||
/**
|
/**
|
||||||
* Model VerificationCode
|
* Model AdminAccount
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type VerificationCode = Prisma.VerificationCodeModel
|
export type AdminAccount = Prisma.AdminAccountModel
|
||||||
/**
|
/**
|
||||||
* Model Guild
|
* Model Account
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Guild = Prisma.GuildModel
|
export type Account = Prisma.AccountModel
|
||||||
|
/**
|
||||||
|
* Model Consumer
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Consumer = Prisma.ConsumerModel
|
||||||
|
/**
|
||||||
|
* Model ConsumerAccount
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ConsumerAccount = Prisma.ConsumerAccountModel
|
||||||
/**
|
/**
|
||||||
* Model BusinessActivity
|
* Model BusinessActivity
|
||||||
*
|
*
|
||||||
@@ -88,20 +98,40 @@ export type License = Prisma.LicenseModel
|
|||||||
*/
|
*/
|
||||||
export type Partner = Prisma.PartnerModel
|
export type Partner = Prisma.PartnerModel
|
||||||
/**
|
/**
|
||||||
* Model User
|
* Model PartnerAccount
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type User = Prisma.UserModel
|
export type PartnerAccount = Prisma.PartnerAccountModel
|
||||||
/**
|
/**
|
||||||
* Model Account
|
* Model PermissionConsumer
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Account = Prisma.AccountModel
|
export type PermissionConsumer = Prisma.PermissionConsumerModel
|
||||||
|
/**
|
||||||
|
* Model PermissionPos
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type PermissionPos = Prisma.PermissionPosModel
|
||||||
|
/**
|
||||||
|
* Model PermissionComplex
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type PermissionComplex = Prisma.PermissionComplexModel
|
||||||
|
/**
|
||||||
|
* Model PermissionBusiness
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type PermissionBusiness = Prisma.PermissionBusinessModel
|
||||||
/**
|
/**
|
||||||
* Model Provider
|
* Model Provider
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type Provider = Prisma.ProviderModel
|
export type Provider = Prisma.ProviderModel
|
||||||
|
/**
|
||||||
|
* Model ProviderAccount
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type ProviderAccount = Prisma.ProviderAccountModel
|
||||||
/**
|
/**
|
||||||
* Model TriggerLog
|
* Model TriggerLog
|
||||||
*
|
*
|
||||||
@@ -137,6 +167,11 @@ export type Good = Prisma.GoodModel
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type GoodCategory = Prisma.GoodCategoryModel
|
export type GoodCategory = Prisma.GoodCategoryModel
|
||||||
|
/**
|
||||||
|
* Model Guild
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export type Guild = Prisma.GuildModel
|
||||||
/**
|
/**
|
||||||
* Model SalesInvoice
|
* Model SalesInvoice
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -29,11 +29,19 @@ export type StringFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EnumTokenTypeFilter<$PrismaModel = never> = {
|
export type StringNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.TokenType | Prisma.EnumTokenTypeFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
in?: $Enums.TokenType[]
|
in?: string[] | null
|
||||||
notIn?: $Enums.TokenType[]
|
notIn?: string[] | null
|
||||||
not?: Prisma.NestedEnumTokenTypeFilter<$PrismaModel> | $Enums.TokenType
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
search?: string
|
||||||
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DateTimeFilter<$PrismaModel = never> = {
|
export type DateTimeFilter<$PrismaModel = never> = {
|
||||||
@@ -47,6 +55,11 @@ export type DateTimeFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type SortOrderInput = {
|
||||||
|
sort: Prisma.SortOrder
|
||||||
|
nulls?: Prisma.NullsOrder
|
||||||
|
}
|
||||||
|
|
||||||
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
in?: string[]
|
in?: string[]
|
||||||
@@ -65,63 +78,6 @@ export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EnumTokenTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.TokenType | Prisma.EnumTokenTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.TokenType[]
|
|
||||||
notIn?: $Enums.TokenType[]
|
|
||||||
not?: Prisma.NestedEnumTokenTypeWithAggregatesFilter<$PrismaModel> | $Enums.TokenType
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumTokenTypeFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumTokenTypeFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
in?: Date[] | string[]
|
|
||||||
notIn?: Date[] | string[]
|
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BoolFilter<$PrismaModel = never> = {
|
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type StringNullableFilter<$PrismaModel = never> = {
|
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: string[] | null
|
|
||||||
notIn?: string[] | null
|
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
search?: string
|
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SortOrderInput = {
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
nulls?: Prisma.NullsOrder
|
|
||||||
}
|
|
||||||
|
|
||||||
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
in?: string[] | null
|
in?: string[] | null
|
||||||
@@ -140,6 +96,88 @@ export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
in?: Date[] | string[]
|
||||||
|
notIn?: Date[] | string[]
|
||||||
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumAccountStatusFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.AccountStatus | Prisma.EnumAccountStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.AccountStatus[]
|
||||||
|
notIn?: $Enums.AccountStatus[]
|
||||||
|
not?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel> | $Enums.AccountStatus
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumAccountTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.AccountType | Prisma.EnumAccountTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.AccountType[]
|
||||||
|
notIn?: $Enums.AccountType[]
|
||||||
|
not?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel> | $Enums.AccountType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumAccountStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.AccountStatus | Prisma.EnumAccountStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.AccountStatus[]
|
||||||
|
notIn?: $Enums.AccountStatus[]
|
||||||
|
not?: Prisma.NestedEnumAccountStatusWithAggregatesFilter<$PrismaModel> | $Enums.AccountStatus
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumAccountTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.AccountType | Prisma.EnumAccountTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.AccountType[]
|
||||||
|
notIn?: $Enums.AccountType[]
|
||||||
|
not?: Prisma.NestedEnumAccountTypeWithAggregatesFilter<$PrismaModel> | $Enums.AccountType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumConsumerStatusFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerStatus[]
|
||||||
|
notIn?: $Enums.ConsumerStatus[]
|
||||||
|
not?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel> | $Enums.ConsumerStatus
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumConsumerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerStatus[]
|
||||||
|
notIn?: $Enums.ConsumerStatus[]
|
||||||
|
not?: Prisma.NestedEnumConsumerStatusWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerStatus
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumConsumerRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerRole[]
|
||||||
|
notIn?: $Enums.ConsumerRole[]
|
||||||
|
not?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel> | $Enums.ConsumerRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumConsumerRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerRole[]
|
||||||
|
notIn?: $Enums.ConsumerRole[]
|
||||||
|
not?: Prisma.NestedEnumConsumerRoleWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type EnumPOSStatusFilter<$PrismaModel = never> = {
|
export type EnumPOSStatusFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.POSStatus[]
|
in?: $Enums.POSStatus[]
|
||||||
@@ -202,6 +240,13 @@ export type IntNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EnumPartnerStatusFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.PartnerStatus | Prisma.EnumPartnerStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.PartnerStatus[]
|
||||||
|
notIn?: $Enums.PartnerStatus[]
|
||||||
|
not?: Prisma.NestedEnumPartnerStatusFilter<$PrismaModel> | $Enums.PartnerStatus
|
||||||
|
}
|
||||||
|
|
||||||
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | null
|
||||||
@@ -218,38 +263,99 @@ export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EnumAccountTypeFilter<$PrismaModel = never> = {
|
export type EnumPartnerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.AccountType | Prisma.EnumAccountTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.PartnerStatus | Prisma.EnumPartnerStatusFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.AccountType[]
|
in?: $Enums.PartnerStatus[]
|
||||||
notIn?: $Enums.AccountType[]
|
notIn?: $Enums.PartnerStatus[]
|
||||||
not?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel> | $Enums.AccountType
|
not?: Prisma.NestedEnumPartnerStatusWithAggregatesFilter<$PrismaModel> | $Enums.PartnerStatus
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumAccountStatusFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.AccountStatus | Prisma.EnumAccountStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.AccountStatus[]
|
|
||||||
notIn?: $Enums.AccountStatus[]
|
|
||||||
not?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel> | $Enums.AccountStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EnumAccountTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.AccountType | Prisma.EnumAccountTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.AccountType[]
|
|
||||||
notIn?: $Enums.AccountType[]
|
|
||||||
not?: Prisma.NestedEnumAccountTypeWithAggregatesFilter<$PrismaModel> | $Enums.AccountType
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
_min?: Prisma.NestedEnumPartnerStatusFilter<$PrismaModel>
|
||||||
_max?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumPartnerStatusFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EnumAccountStatusWithAggregatesFilter<$PrismaModel = never> = {
|
export type EnumPartnerRoleFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.AccountStatus | Prisma.EnumAccountStatusFieldRefInput<$PrismaModel>
|
equals?: $Enums.PartnerRole | Prisma.EnumPartnerRoleFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.AccountStatus[]
|
in?: $Enums.PartnerRole[]
|
||||||
notIn?: $Enums.AccountStatus[]
|
notIn?: $Enums.PartnerRole[]
|
||||||
not?: Prisma.NestedEnumAccountStatusWithAggregatesFilter<$PrismaModel> | $Enums.AccountStatus
|
not?: Prisma.NestedEnumPartnerRoleFilter<$PrismaModel> | $Enums.PartnerRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPartnerRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.PartnerRole | Prisma.EnumPartnerRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.PartnerRole[]
|
||||||
|
notIn?: $Enums.PartnerRole[]
|
||||||
|
not?: Prisma.NestedEnumPartnerRoleWithAggregatesFilter<$PrismaModel> | $Enums.PartnerRole
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel>
|
_min?: Prisma.NestedEnumPartnerRoleFilter<$PrismaModel>
|
||||||
_max?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumPartnerRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPOSRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSRole | Prisma.EnumPOSRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSRole[]
|
||||||
|
notIn?: $Enums.POSRole[]
|
||||||
|
not?: Prisma.NestedEnumPOSRoleFilter<$PrismaModel> | $Enums.POSRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumPOSRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSRole | Prisma.EnumPOSRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSRole[]
|
||||||
|
notIn?: $Enums.POSRole[]
|
||||||
|
not?: Prisma.NestedEnumPOSRoleWithAggregatesFilter<$PrismaModel> | $Enums.POSRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumPOSRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumPOSRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumComplexRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ComplexRole | Prisma.EnumComplexRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ComplexRole[]
|
||||||
|
notIn?: $Enums.ComplexRole[]
|
||||||
|
not?: Prisma.NestedEnumComplexRoleFilter<$PrismaModel> | $Enums.ComplexRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumComplexRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ComplexRole | Prisma.EnumComplexRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ComplexRole[]
|
||||||
|
notIn?: $Enums.ComplexRole[]
|
||||||
|
not?: Prisma.NestedEnumComplexRoleWithAggregatesFilter<$PrismaModel> | $Enums.ComplexRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumComplexRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumComplexRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumBusinessRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.BusinessRole | Prisma.EnumBusinessRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.BusinessRole[]
|
||||||
|
notIn?: $Enums.BusinessRole[]
|
||||||
|
not?: Prisma.NestedEnumBusinessRoleFilter<$PrismaModel> | $Enums.BusinessRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumBusinessRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.BusinessRole | Prisma.EnumBusinessRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.BusinessRole[]
|
||||||
|
notIn?: $Enums.BusinessRole[]
|
||||||
|
not?: Prisma.NestedEnumBusinessRoleWithAggregatesFilter<$PrismaModel> | $Enums.BusinessRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumBusinessRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumBusinessRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumProviderRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ProviderRole | Prisma.EnumProviderRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ProviderRole[]
|
||||||
|
notIn?: $Enums.ProviderRole[]
|
||||||
|
not?: Prisma.NestedEnumProviderRoleFilter<$PrismaModel> | $Enums.ProviderRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EnumProviderRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ProviderRole | Prisma.EnumProviderRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ProviderRole[]
|
||||||
|
notIn?: $Enums.ProviderRole[]
|
||||||
|
not?: Prisma.NestedEnumProviderRoleWithAggregatesFilter<$PrismaModel> | $Enums.ProviderRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumProviderRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumProviderRoleFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IntFilter<$PrismaModel = never> = {
|
export type IntFilter<$PrismaModel = never> = {
|
||||||
@@ -334,6 +440,11 @@ export type BoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedBoolNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedBoolNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type BoolFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||||
|
}
|
||||||
|
|
||||||
export type EnumUnitTypeFilter<$PrismaModel = never> = {
|
export type EnumUnitTypeFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.UnitType[]
|
in?: $Enums.UnitType[]
|
||||||
@@ -359,6 +470,14 @@ export type DecimalNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type EnumUnitTypeWithAggregatesFilter<$PrismaModel = never> = {
|
export type EnumUnitTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.UnitType[]
|
in?: $Enums.UnitType[]
|
||||||
@@ -505,11 +624,19 @@ export type NestedStringFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedEnumTokenTypeFilter<$PrismaModel = never> = {
|
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.TokenType | Prisma.EnumTokenTypeFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
in?: $Enums.TokenType[]
|
in?: string[] | null
|
||||||
notIn?: $Enums.TokenType[]
|
notIn?: string[] | null
|
||||||
not?: Prisma.NestedEnumTokenTypeFilter<$PrismaModel> | $Enums.TokenType
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
|
search?: string
|
||||||
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
||||||
@@ -552,58 +679,6 @@ export type NestedIntFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedEnumTokenTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.TokenType | Prisma.EnumTokenTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.TokenType[]
|
|
||||||
notIn?: $Enums.TokenType[]
|
|
||||||
not?: Prisma.NestedEnumTokenTypeWithAggregatesFilter<$PrismaModel> | $Enums.TokenType
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedEnumTokenTypeFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedEnumTokenTypeFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
in?: Date[] | string[]
|
|
||||||
notIn?: Date[] | string[]
|
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedBoolFilter<$PrismaModel = never> = {
|
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
|
||||||
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
||||||
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
|
||||||
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
|
||||||
in?: string[] | null
|
|
||||||
notIn?: string[] | null
|
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
||||||
search?: string
|
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
in?: string[] | null
|
in?: string[] | null
|
||||||
@@ -633,6 +708,88 @@ export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
in?: Date[] | string[]
|
||||||
|
notIn?: Date[] | string[]
|
||||||
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumAccountStatusFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.AccountStatus | Prisma.EnumAccountStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.AccountStatus[]
|
||||||
|
notIn?: $Enums.AccountStatus[]
|
||||||
|
not?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel> | $Enums.AccountStatus
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumAccountTypeFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.AccountType | Prisma.EnumAccountTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.AccountType[]
|
||||||
|
notIn?: $Enums.AccountType[]
|
||||||
|
not?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel> | $Enums.AccountType
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumAccountStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.AccountStatus | Prisma.EnumAccountStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.AccountStatus[]
|
||||||
|
notIn?: $Enums.AccountStatus[]
|
||||||
|
not?: Prisma.NestedEnumAccountStatusWithAggregatesFilter<$PrismaModel> | $Enums.AccountStatus
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumAccountTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.AccountType | Prisma.EnumAccountTypeFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.AccountType[]
|
||||||
|
notIn?: $Enums.AccountType[]
|
||||||
|
not?: Prisma.NestedEnumAccountTypeWithAggregatesFilter<$PrismaModel> | $Enums.AccountType
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumConsumerStatusFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerStatus[]
|
||||||
|
notIn?: $Enums.ConsumerStatus[]
|
||||||
|
not?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel> | $Enums.ConsumerStatus
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumConsumerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerStatus | Prisma.EnumConsumerStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerStatus[]
|
||||||
|
notIn?: $Enums.ConsumerStatus[]
|
||||||
|
not?: Prisma.NestedEnumConsumerStatusWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerStatus
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumConsumerStatusFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumConsumerRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerRole[]
|
||||||
|
notIn?: $Enums.ConsumerRole[]
|
||||||
|
not?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel> | $Enums.ConsumerRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumConsumerRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ConsumerRole | Prisma.EnumConsumerRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ConsumerRole[]
|
||||||
|
notIn?: $Enums.ConsumerRole[]
|
||||||
|
not?: Prisma.NestedEnumConsumerRoleWithAggregatesFilter<$PrismaModel> | $Enums.ConsumerRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumConsumerRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedEnumPOSStatusFilter<$PrismaModel = never> = {
|
export type NestedEnumPOSStatusFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
equals?: $Enums.POSStatus | Prisma.EnumPOSStatusFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.POSStatus[]
|
in?: $Enums.POSStatus[]
|
||||||
@@ -684,6 +841,13 @@ export type NestedEnumLicenseStatusWithAggregatesFilter<$PrismaModel = never> =
|
|||||||
_max?: Prisma.NestedEnumLicenseStatusFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumLicenseStatusFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedEnumPartnerStatusFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.PartnerStatus | Prisma.EnumPartnerStatusFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.PartnerStatus[]
|
||||||
|
notIn?: $Enums.PartnerStatus[]
|
||||||
|
not?: Prisma.NestedEnumPartnerStatusFilter<$PrismaModel> | $Enums.PartnerStatus
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | null
|
||||||
@@ -711,38 +875,99 @@ export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
|
not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedEnumAccountTypeFilter<$PrismaModel = never> = {
|
export type NestedEnumPartnerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.AccountType | Prisma.EnumAccountTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.PartnerStatus | Prisma.EnumPartnerStatusFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.AccountType[]
|
in?: $Enums.PartnerStatus[]
|
||||||
notIn?: $Enums.AccountType[]
|
notIn?: $Enums.PartnerStatus[]
|
||||||
not?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel> | $Enums.AccountType
|
not?: Prisma.NestedEnumPartnerStatusWithAggregatesFilter<$PrismaModel> | $Enums.PartnerStatus
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumAccountStatusFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.AccountStatus | Prisma.EnumAccountStatusFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.AccountStatus[]
|
|
||||||
notIn?: $Enums.AccountStatus[]
|
|
||||||
not?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel> | $Enums.AccountStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NestedEnumAccountTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
||||||
equals?: $Enums.AccountType | Prisma.EnumAccountTypeFieldRefInput<$PrismaModel>
|
|
||||||
in?: $Enums.AccountType[]
|
|
||||||
notIn?: $Enums.AccountType[]
|
|
||||||
not?: Prisma.NestedEnumAccountTypeWithAggregatesFilter<$PrismaModel> | $Enums.AccountType
|
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
_min?: Prisma.NestedEnumPartnerStatusFilter<$PrismaModel>
|
||||||
_max?: Prisma.NestedEnumAccountTypeFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumPartnerStatusFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedEnumAccountStatusWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedEnumPartnerRoleFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.AccountStatus | Prisma.EnumAccountStatusFieldRefInput<$PrismaModel>
|
equals?: $Enums.PartnerRole | Prisma.EnumPartnerRoleFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.AccountStatus[]
|
in?: $Enums.PartnerRole[]
|
||||||
notIn?: $Enums.AccountStatus[]
|
notIn?: $Enums.PartnerRole[]
|
||||||
not?: Prisma.NestedEnumAccountStatusWithAggregatesFilter<$PrismaModel> | $Enums.AccountStatus
|
not?: Prisma.NestedEnumPartnerRoleFilter<$PrismaModel> | $Enums.PartnerRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumPartnerRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.PartnerRole | Prisma.EnumPartnerRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.PartnerRole[]
|
||||||
|
notIn?: $Enums.PartnerRole[]
|
||||||
|
not?: Prisma.NestedEnumPartnerRoleWithAggregatesFilter<$PrismaModel> | $Enums.PartnerRole
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel>
|
_min?: Prisma.NestedEnumPartnerRoleFilter<$PrismaModel>
|
||||||
_max?: Prisma.NestedEnumAccountStatusFilter<$PrismaModel>
|
_max?: Prisma.NestedEnumPartnerRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumPOSRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSRole | Prisma.EnumPOSRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSRole[]
|
||||||
|
notIn?: $Enums.POSRole[]
|
||||||
|
not?: Prisma.NestedEnumPOSRoleFilter<$PrismaModel> | $Enums.POSRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumPOSRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.POSRole | Prisma.EnumPOSRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.POSRole[]
|
||||||
|
notIn?: $Enums.POSRole[]
|
||||||
|
not?: Prisma.NestedEnumPOSRoleWithAggregatesFilter<$PrismaModel> | $Enums.POSRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumPOSRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumPOSRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumComplexRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ComplexRole | Prisma.EnumComplexRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ComplexRole[]
|
||||||
|
notIn?: $Enums.ComplexRole[]
|
||||||
|
not?: Prisma.NestedEnumComplexRoleFilter<$PrismaModel> | $Enums.ComplexRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumComplexRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ComplexRole | Prisma.EnumComplexRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ComplexRole[]
|
||||||
|
notIn?: $Enums.ComplexRole[]
|
||||||
|
not?: Prisma.NestedEnumComplexRoleWithAggregatesFilter<$PrismaModel> | $Enums.ComplexRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumComplexRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumComplexRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumBusinessRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.BusinessRole | Prisma.EnumBusinessRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.BusinessRole[]
|
||||||
|
notIn?: $Enums.BusinessRole[]
|
||||||
|
not?: Prisma.NestedEnumBusinessRoleFilter<$PrismaModel> | $Enums.BusinessRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumBusinessRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.BusinessRole | Prisma.EnumBusinessRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.BusinessRole[]
|
||||||
|
notIn?: $Enums.BusinessRole[]
|
||||||
|
not?: Prisma.NestedEnumBusinessRoleWithAggregatesFilter<$PrismaModel> | $Enums.BusinessRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumBusinessRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumBusinessRoleFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumProviderRoleFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ProviderRole | Prisma.EnumProviderRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ProviderRole[]
|
||||||
|
notIn?: $Enums.ProviderRole[]
|
||||||
|
not?: Prisma.NestedEnumProviderRoleFilter<$PrismaModel> | $Enums.ProviderRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export type NestedEnumProviderRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: $Enums.ProviderRole | Prisma.EnumProviderRoleFieldRefInput<$PrismaModel>
|
||||||
|
in?: $Enums.ProviderRole[]
|
||||||
|
notIn?: $Enums.ProviderRole[]
|
||||||
|
not?: Prisma.NestedEnumProviderRoleWithAggregatesFilter<$PrismaModel> | $Enums.ProviderRole
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedEnumProviderRoleFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedEnumProviderRoleFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
@@ -827,6 +1052,11 @@ export type NestedBoolNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
_max?: Prisma.NestedBoolNullableFilter<$PrismaModel>
|
_max?: Prisma.NestedBoolNullableFilter<$PrismaModel>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedBoolFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedEnumUnitTypeFilter<$PrismaModel = never> = {
|
export type NestedEnumUnitTypeFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.UnitType[]
|
in?: $Enums.UnitType[]
|
||||||
@@ -852,6 +1082,14 @@ export type NestedDecimalNullableFilter<$PrismaModel = never> = {
|
|||||||
not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
not?: Prisma.NestedDecimalNullableFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
|
equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
|
||||||
|
not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
|
||||||
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
|
_min?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||||
|
_max?: Prisma.NestedBoolFilter<$PrismaModel>
|
||||||
|
}
|
||||||
|
|
||||||
export type NestedEnumUnitTypeWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedEnumUnitTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
equals?: $Enums.UnitType | Prisma.EnumUnitTypeFieldRefInput<$PrismaModel>
|
||||||
in?: $Enums.UnitType[]
|
in?: $Enums.UnitType[]
|
||||||
|
|||||||
@@ -22,23 +22,6 @@ export const PaymentMethodType = {
|
|||||||
export type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType]
|
export type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType]
|
||||||
|
|
||||||
|
|
||||||
export const PurchaseReceiptStatus = {
|
|
||||||
UNPAID: 'UNPAID',
|
|
||||||
PARTIALLY_PAID: 'PARTIALLY_PAID',
|
|
||||||
PAID: 'PAID'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type PurchaseReceiptStatus = (typeof PurchaseReceiptStatus)[keyof typeof PurchaseReceiptStatus]
|
|
||||||
|
|
||||||
|
|
||||||
export const SalesInvoiceType = {
|
|
||||||
GOOD: 'GOOD',
|
|
||||||
SERVICE: 'SERVICE'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type SalesInvoiceType = (typeof SalesInvoiceType)[keyof typeof SalesInvoiceType]
|
|
||||||
|
|
||||||
|
|
||||||
export const UnitType = {
|
export const UnitType = {
|
||||||
COUNT: 'COUNT',
|
COUNT: 'COUNT',
|
||||||
GRAM: 'GRAM',
|
GRAM: 'GRAM',
|
||||||
@@ -69,31 +52,6 @@ export const CustomerType = {
|
|||||||
export type CustomerType = (typeof CustomerType)[keyof typeof CustomerType]
|
export type CustomerType = (typeof CustomerType)[keyof typeof CustomerType]
|
||||||
|
|
||||||
|
|
||||||
export const UserStatus = {
|
|
||||||
ACTIVE: 'ACTIVE',
|
|
||||||
INACTIVE: 'INACTIVE'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type UserStatus = (typeof UserStatus)[keyof typeof UserStatus]
|
|
||||||
|
|
||||||
|
|
||||||
export const AccountRole = {
|
|
||||||
OWNER: 'OWNER',
|
|
||||||
OPERATOR: 'OPERATOR',
|
|
||||||
ACCOUNTANT: 'ACCOUNTANT'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type AccountRole = (typeof AccountRole)[keyof typeof AccountRole]
|
|
||||||
|
|
||||||
|
|
||||||
export const AccountStatus = {
|
|
||||||
ACTIVE: 'ACTIVE',
|
|
||||||
SUSPENDED: 'SUSPENDED'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type AccountStatus = (typeof AccountStatus)[keyof typeof AccountStatus]
|
|
||||||
|
|
||||||
|
|
||||||
export const POSStatus = {
|
export const POSStatus = {
|
||||||
ACTIVE: 'ACTIVE',
|
ACTIVE: 'ACTIVE',
|
||||||
DISABLED: 'DISABLED'
|
DISABLED: 'DISABLED'
|
||||||
@@ -104,13 +62,28 @@ export type POSStatus = (typeof POSStatus)[keyof typeof POSStatus]
|
|||||||
|
|
||||||
export const POSRole = {
|
export const POSRole = {
|
||||||
MANAGER: 'MANAGER',
|
MANAGER: 'MANAGER',
|
||||||
OPERATOR: 'OPERATOR',
|
OPERATOR: 'OPERATOR'
|
||||||
VIEWER: 'VIEWER'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type POSRole = (typeof POSRole)[keyof typeof POSRole]
|
export type POSRole = (typeof POSRole)[keyof typeof POSRole]
|
||||||
|
|
||||||
|
|
||||||
|
export const ComplexRole = {
|
||||||
|
MANAGER: 'MANAGER',
|
||||||
|
OPERATOR: 'OPERATOR'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ComplexRole = (typeof ComplexRole)[keyof typeof ComplexRole]
|
||||||
|
|
||||||
|
|
||||||
|
export const BusinessRole = {
|
||||||
|
MANAGER: 'MANAGER',
|
||||||
|
OPERATOR: 'OPERATOR'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type BusinessRole = (typeof BusinessRole)[keyof typeof BusinessRole]
|
||||||
|
|
||||||
|
|
||||||
export const LicenseType = {
|
export const LicenseType = {
|
||||||
BASIC: 'BASIC',
|
BASIC: 'BASIC',
|
||||||
PRO: 'PRO',
|
PRO: 'PRO',
|
||||||
@@ -148,41 +121,91 @@ export type UserType = (typeof UserType)[keyof typeof UserType]
|
|||||||
|
|
||||||
|
|
||||||
export const AccountType = {
|
export const AccountType = {
|
||||||
PARTNER: 'PARTNER',
|
|
||||||
BUSINESS: 'BUSINESS',
|
|
||||||
SUPER_ADMIN: 'SUPER_ADMIN',
|
|
||||||
ADMIN: 'ADMIN',
|
ADMIN: 'ADMIN',
|
||||||
PROVIDER: 'PROVIDER',
|
PROVIDER: 'PROVIDER',
|
||||||
POS: 'POS'
|
PARTNER: 'PARTNER',
|
||||||
|
CONSUMER: 'CONSUMER'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type AccountType = (typeof AccountType)[keyof typeof AccountType]
|
export type AccountType = (typeof AccountType)[keyof typeof AccountType]
|
||||||
|
|
||||||
|
|
||||||
|
export const UserStatus = {
|
||||||
|
ACTIVE: 'ACTIVE',
|
||||||
|
INACTIVE: 'INACTIVE'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type UserStatus = (typeof UserStatus)[keyof typeof UserStatus]
|
||||||
|
|
||||||
|
|
||||||
|
export const AccountRole = {
|
||||||
|
OWNER: 'OWNER',
|
||||||
|
OPERATOR: 'OPERATOR',
|
||||||
|
ACCOUNTANT: 'ACCOUNTANT'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type AccountRole = (typeof AccountRole)[keyof typeof AccountRole]
|
||||||
|
|
||||||
|
|
||||||
|
export const AccountStatus = {
|
||||||
|
ACTIVE: 'ACTIVE',
|
||||||
|
SUSPENDED: 'SUSPENDED'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type AccountStatus = (typeof AccountStatus)[keyof typeof AccountStatus]
|
||||||
|
|
||||||
|
|
||||||
export const PartnerRole = {
|
export const PartnerRole = {
|
||||||
ADMIN: 'ADMIN',
|
OWNER: 'OWNER',
|
||||||
|
MANAGER: 'MANAGER',
|
||||||
OPERATOR: 'OPERATOR'
|
OPERATOR: 'OPERATOR'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type PartnerRole = (typeof PartnerRole)[keyof typeof PartnerRole]
|
export type PartnerRole = (typeof PartnerRole)[keyof typeof PartnerRole]
|
||||||
|
|
||||||
|
|
||||||
export const BusinessRole = {
|
export const PartnerStatus = {
|
||||||
ADMIN: 'ADMIN',
|
ACTIVE: 'ACTIVE',
|
||||||
OPERATOR: 'OPERATOR'
|
SUSPENDED: 'SUSPENDED'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type BusinessRole = (typeof BusinessRole)[keyof typeof BusinessRole]
|
export type PartnerStatus = (typeof PartnerStatus)[keyof typeof PartnerStatus]
|
||||||
|
|
||||||
|
|
||||||
export const ProviderRole = {
|
export const ProviderRole = {
|
||||||
ADMIN: 'ADMIN',
|
OWNER: 'OWNER',
|
||||||
|
MANAGER: 'MANAGER',
|
||||||
OPERATOR: 'OPERATOR'
|
OPERATOR: 'OPERATOR'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type ProviderRole = (typeof ProviderRole)[keyof typeof ProviderRole]
|
export type ProviderRole = (typeof ProviderRole)[keyof typeof ProviderRole]
|
||||||
|
|
||||||
|
|
||||||
|
export const ProviderStatus = {
|
||||||
|
ACTIVE: 'ACTIVE',
|
||||||
|
SUSPENDED: 'SUSPENDED'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ProviderStatus = (typeof ProviderStatus)[keyof typeof ProviderStatus]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerRole = {
|
||||||
|
OWNER: 'OWNER',
|
||||||
|
MANAGER: 'MANAGER',
|
||||||
|
OPERATOR: 'OPERATOR'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerRole = (typeof ConsumerRole)[keyof typeof ConsumerRole]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerStatus = {
|
||||||
|
ACTIVE: 'ACTIVE',
|
||||||
|
SUSPENDED: 'SUSPENDED'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerStatus = (typeof ConsumerStatus)[keyof typeof ConsumerStatus]
|
||||||
|
|
||||||
|
|
||||||
export const TokenType = {
|
export const TokenType = {
|
||||||
ACCESS: 'ACCESS',
|
ACCESS: 'ACCESS',
|
||||||
REFRESH: 'REFRESH'
|
REFRESH: 'REFRESH'
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -51,9 +51,11 @@ export const AnyNull = runtime.AnyNull
|
|||||||
|
|
||||||
|
|
||||||
export const ModelName = {
|
export const ModelName = {
|
||||||
Token: 'Token',
|
Admin: 'Admin',
|
||||||
VerificationCode: 'VerificationCode',
|
AdminAccount: 'AdminAccount',
|
||||||
Guild: 'Guild',
|
Account: 'Account',
|
||||||
|
Consumer: 'Consumer',
|
||||||
|
ConsumerAccount: 'ConsumerAccount',
|
||||||
BusinessActivity: 'BusinessActivity',
|
BusinessActivity: 'BusinessActivity',
|
||||||
Complex: 'Complex',
|
Complex: 'Complex',
|
||||||
Pos: 'Pos',
|
Pos: 'Pos',
|
||||||
@@ -61,9 +63,13 @@ export const ModelName = {
|
|||||||
Device: 'Device',
|
Device: 'Device',
|
||||||
License: 'License',
|
License: 'License',
|
||||||
Partner: 'Partner',
|
Partner: 'Partner',
|
||||||
User: 'User',
|
PartnerAccount: 'PartnerAccount',
|
||||||
Account: 'Account',
|
PermissionConsumer: 'PermissionConsumer',
|
||||||
|
PermissionPos: 'PermissionPos',
|
||||||
|
PermissionComplex: 'PermissionComplex',
|
||||||
|
PermissionBusiness: 'PermissionBusiness',
|
||||||
Provider: 'Provider',
|
Provider: 'Provider',
|
||||||
|
ProviderAccount: 'ProviderAccount',
|
||||||
TriggerLog: 'TriggerLog',
|
TriggerLog: 'TriggerLog',
|
||||||
UserDevices: 'UserDevices',
|
UserDevices: 'UserDevices',
|
||||||
Customer: 'Customer',
|
Customer: 'Customer',
|
||||||
@@ -71,6 +77,7 @@ export const ModelName = {
|
|||||||
CustomerLegal: 'CustomerLegal',
|
CustomerLegal: 'CustomerLegal',
|
||||||
Good: 'Good',
|
Good: 'Good',
|
||||||
GoodCategory: 'GoodCategory',
|
GoodCategory: 'GoodCategory',
|
||||||
|
Guild: 'Guild',
|
||||||
SalesInvoice: 'SalesInvoice',
|
SalesInvoice: 'SalesInvoice',
|
||||||
SalesInvoiceItem: 'SalesInvoiceItem',
|
SalesInvoiceItem: 'SalesInvoiceItem',
|
||||||
SalesInvoicePayment: 'SalesInvoicePayment',
|
SalesInvoicePayment: 'SalesInvoicePayment',
|
||||||
@@ -94,39 +101,64 @@ export const TransactionIsolationLevel = {
|
|||||||
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
||||||
|
|
||||||
|
|
||||||
export const TokenScalarFieldEnum = {
|
export const AdminScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
token: 'token',
|
mobile_number: 'mobile_number',
|
||||||
type: 'type',
|
national_code: 'national_code',
|
||||||
created_at: 'created_at',
|
first_name: 'first_name',
|
||||||
expires_at: 'expires_at',
|
last_name: 'last_name',
|
||||||
account_id: 'account_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const VerificationCodeScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
code: 'code',
|
|
||||||
is_used: 'is_used',
|
|
||||||
created_at: 'created_at',
|
|
||||||
expires_at: 'expires_at',
|
|
||||||
account_id: 'account_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type VerificationCodeScalarFieldEnum = (typeof VerificationCodeScalarFieldEnum)[keyof typeof VerificationCodeScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const GuildScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
name: 'name',
|
|
||||||
code: 'code',
|
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at'
|
updated_at: 'updated_at'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type GuildScalarFieldEnum = (typeof GuildScalarFieldEnum)[keyof typeof GuildScalarFieldEnum]
|
export type AdminScalarFieldEnum = (typeof AdminScalarFieldEnum)[keyof typeof AdminScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const AdminAccountScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at',
|
||||||
|
user_id: 'user_id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type AdminAccountScalarFieldEnum = (typeof AdminAccountScalarFieldEnum)[keyof typeof AdminAccountScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const AccountScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
username: 'username',
|
||||||
|
password: 'password',
|
||||||
|
status: 'status',
|
||||||
|
type: 'type'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
mobile_number: 'mobile_number',
|
||||||
|
first_name: 'first_name',
|
||||||
|
last_name: 'last_name',
|
||||||
|
status: 'status',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerScalarFieldEnum = (typeof ConsumerScalarFieldEnum)[keyof typeof ConsumerScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerAccountScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
role: 'role',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at',
|
||||||
|
user_id: 'user_id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerAccountScalarFieldEnum = (typeof ConsumerAccountScalarFieldEnum)[keyof typeof ConsumerAccountScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const BusinessActivityScalarFieldEnum = {
|
export const BusinessActivityScalarFieldEnum = {
|
||||||
@@ -135,7 +167,7 @@ export const BusinessActivityScalarFieldEnum = {
|
|||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
guild_id: 'guild_id',
|
guild_id: 'guild_id',
|
||||||
owner_id: 'owner_id'
|
user_id: 'user_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type BusinessActivityScalarFieldEnum = (typeof BusinessActivityScalarFieldEnum)[keyof typeof BusinessActivityScalarFieldEnum]
|
export type BusinessActivityScalarFieldEnum = (typeof BusinessActivityScalarFieldEnum)[keyof typeof BusinessActivityScalarFieldEnum]
|
||||||
@@ -212,6 +244,7 @@ export const PartnerScalarFieldEnum = {
|
|||||||
name: 'name',
|
name: 'name',
|
||||||
code: 'code',
|
code: 'code',
|
||||||
license_quota: 'license_quota',
|
license_quota: 'license_quota',
|
||||||
|
status: 'status',
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at'
|
updated_at: 'updated_at'
|
||||||
} as const
|
} as const
|
||||||
@@ -219,41 +252,61 @@ export const PartnerScalarFieldEnum = {
|
|||||||
export type PartnerScalarFieldEnum = (typeof PartnerScalarFieldEnum)[keyof typeof PartnerScalarFieldEnum]
|
export type PartnerScalarFieldEnum = (typeof PartnerScalarFieldEnum)[keyof typeof PartnerScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const UserScalarFieldEnum = {
|
export const PartnerAccountScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
created_at: 'created_at',
|
role: 'role',
|
||||||
updated_at: 'updated_at',
|
|
||||||
mobile_number: 'mobile_number',
|
|
||||||
national_code: 'national_code',
|
|
||||||
first_name: 'first_name',
|
|
||||||
last_name: 'last_name'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const AccountScalarFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
username: 'username',
|
|
||||||
type: 'type',
|
|
||||||
status: 'status',
|
|
||||||
password: 'password',
|
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
user_id: 'user_id',
|
user_id: 'user_id',
|
||||||
partner_id: 'partner_id',
|
account_id: 'account_id'
|
||||||
business_id: 'business_id',
|
|
||||||
provider_id: 'provider_id',
|
|
||||||
pos_id: 'pos_id'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
|
export type PartnerAccountScalarFieldEnum = (typeof PartnerAccountScalarFieldEnum)[keyof typeof PartnerAccountScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const PermissionConsumerScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PermissionConsumerScalarFieldEnum = (typeof PermissionConsumerScalarFieldEnum)[keyof typeof PermissionConsumerScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const PermissionPosScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
role: 'role',
|
||||||
|
pos_id: 'pos_id',
|
||||||
|
permission_id: 'permission_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PermissionPosScalarFieldEnum = (typeof PermissionPosScalarFieldEnum)[keyof typeof PermissionPosScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const PermissionComplexScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
role: 'role',
|
||||||
|
complex_id: 'complex_id',
|
||||||
|
permission_id: 'permission_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PermissionComplexScalarFieldEnum = (typeof PermissionComplexScalarFieldEnum)[keyof typeof PermissionComplexScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const PermissionBusinessScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
role: 'role',
|
||||||
|
business_id: 'business_id',
|
||||||
|
permission_id: 'permission_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PermissionBusinessScalarFieldEnum = (typeof PermissionBusinessScalarFieldEnum)[keyof typeof PermissionBusinessScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const ProviderScalarFieldEnum = {
|
export const ProviderScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'name',
|
|
||||||
code: 'code',
|
code: 'code',
|
||||||
|
status: 'status',
|
||||||
|
name: 'name',
|
||||||
created_at: 'created_at',
|
created_at: 'created_at',
|
||||||
updated_at: 'updated_at'
|
updated_at: 'updated_at'
|
||||||
} as const
|
} as const
|
||||||
@@ -261,6 +314,18 @@ export const ProviderScalarFieldEnum = {
|
|||||||
export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
|
export type ProviderScalarFieldEnum = (typeof ProviderScalarFieldEnum)[keyof typeof ProviderScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ProviderAccountScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
role: 'role',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at',
|
||||||
|
user_id: 'user_id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ProviderAccountScalarFieldEnum = (typeof ProviderAccountScalarFieldEnum)[keyof typeof ProviderAccountScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const TriggerLogScalarFieldEnum = {
|
export const TriggerLogScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
message: 'message',
|
message: 'message',
|
||||||
@@ -343,8 +408,7 @@ export const GoodScalarFieldEnum = {
|
|||||||
updated_at: 'updated_at',
|
updated_at: 'updated_at',
|
||||||
deleted_at: 'deleted_at',
|
deleted_at: 'deleted_at',
|
||||||
complex_id: 'complex_id',
|
complex_id: 'complex_id',
|
||||||
category_id: 'category_id',
|
category_id: 'category_id'
|
||||||
guild_id: 'guild_id'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type GoodScalarFieldEnum = (typeof GoodScalarFieldEnum)[keyof typeof GoodScalarFieldEnum]
|
export type GoodScalarFieldEnum = (typeof GoodScalarFieldEnum)[keyof typeof GoodScalarFieldEnum]
|
||||||
@@ -366,6 +430,17 @@ export const GoodCategoryScalarFieldEnum = {
|
|||||||
export type GoodCategoryScalarFieldEnum = (typeof GoodCategoryScalarFieldEnum)[keyof typeof GoodCategoryScalarFieldEnum]
|
export type GoodCategoryScalarFieldEnum = (typeof GoodCategoryScalarFieldEnum)[keyof typeof GoodCategoryScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const GuildScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
name: 'name',
|
||||||
|
code: 'code',
|
||||||
|
created_at: 'created_at',
|
||||||
|
updated_at: 'updated_at'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type GuildScalarFieldEnum = (typeof GuildScalarFieldEnum)[keyof typeof GuildScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const SalesInvoiceScalarFieldEnum = {
|
export const SalesInvoiceScalarFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
code: 'code',
|
code: 'code',
|
||||||
@@ -463,24 +538,6 @@ export const NullableJsonNullValueInput = {
|
|||||||
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
||||||
|
|
||||||
|
|
||||||
export const TokenOrderByRelevanceFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
token: 'token',
|
|
||||||
account_id: 'account_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type TokenOrderByRelevanceFieldEnum = (typeof TokenOrderByRelevanceFieldEnum)[keyof typeof TokenOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const VerificationCodeOrderByRelevanceFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
code: 'code',
|
|
||||||
account_id: 'account_id'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type VerificationCodeOrderByRelevanceFieldEnum = (typeof VerificationCodeOrderByRelevanceFieldEnum)[keyof typeof VerificationCodeOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const NullsOrder = {
|
export const NullsOrder = {
|
||||||
first: 'first',
|
first: 'first',
|
||||||
last: 'last'
|
last: 'last'
|
||||||
@@ -489,20 +546,59 @@ export const NullsOrder = {
|
|||||||
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
||||||
|
|
||||||
|
|
||||||
export const GuildOrderByRelevanceFieldEnum = {
|
export const AdminOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'name',
|
mobile_number: 'mobile_number',
|
||||||
code: 'code'
|
national_code: 'national_code',
|
||||||
|
first_name: 'first_name',
|
||||||
|
last_name: 'last_name'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type GuildOrderByRelevanceFieldEnum = (typeof GuildOrderByRelevanceFieldEnum)[keyof typeof GuildOrderByRelevanceFieldEnum]
|
export type AdminOrderByRelevanceFieldEnum = (typeof AdminOrderByRelevanceFieldEnum)[keyof typeof AdminOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const AdminAccountOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
user_id: 'user_id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type AdminAccountOrderByRelevanceFieldEnum = (typeof AdminAccountOrderByRelevanceFieldEnum)[keyof typeof AdminAccountOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const AccountOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
username: 'username',
|
||||||
|
password: 'password'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type AccountOrderByRelevanceFieldEnum = (typeof AccountOrderByRelevanceFieldEnum)[keyof typeof AccountOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
mobile_number: 'mobile_number',
|
||||||
|
first_name: 'first_name',
|
||||||
|
last_name: 'last_name'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerOrderByRelevanceFieldEnum = (typeof ConsumerOrderByRelevanceFieldEnum)[keyof typeof ConsumerOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ConsumerAccountOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
user_id: 'user_id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ConsumerAccountOrderByRelevanceFieldEnum = (typeof ConsumerAccountOrderByRelevanceFieldEnum)[keyof typeof ConsumerAccountOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const BusinessActivityOrderByRelevanceFieldEnum = {
|
export const BusinessActivityOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
guild_id: 'guild_id',
|
guild_id: 'guild_id',
|
||||||
owner_id: 'owner_id'
|
user_id: 'user_id'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type BusinessActivityOrderByRelevanceFieldEnum = (typeof BusinessActivityOrderByRelevanceFieldEnum)[keyof typeof BusinessActivityOrderByRelevanceFieldEnum]
|
export type BusinessActivityOrderByRelevanceFieldEnum = (typeof BusinessActivityOrderByRelevanceFieldEnum)[keyof typeof BusinessActivityOrderByRelevanceFieldEnum]
|
||||||
@@ -568,40 +664,68 @@ export const PartnerOrderByRelevanceFieldEnum = {
|
|||||||
export type PartnerOrderByRelevanceFieldEnum = (typeof PartnerOrderByRelevanceFieldEnum)[keyof typeof PartnerOrderByRelevanceFieldEnum]
|
export type PartnerOrderByRelevanceFieldEnum = (typeof PartnerOrderByRelevanceFieldEnum)[keyof typeof PartnerOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const UserOrderByRelevanceFieldEnum = {
|
export const PartnerAccountOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
mobile_number: 'mobile_number',
|
|
||||||
national_code: 'national_code',
|
|
||||||
first_name: 'first_name',
|
|
||||||
last_name: 'last_name'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type UserOrderByRelevanceFieldEnum = (typeof UserOrderByRelevanceFieldEnum)[keyof typeof UserOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const AccountOrderByRelevanceFieldEnum = {
|
|
||||||
id: 'id',
|
|
||||||
username: 'username',
|
|
||||||
password: 'password',
|
|
||||||
user_id: 'user_id',
|
user_id: 'user_id',
|
||||||
partner_id: 'partner_id',
|
account_id: 'account_id'
|
||||||
business_id: 'business_id',
|
|
||||||
provider_id: 'provider_id',
|
|
||||||
pos_id: 'pos_id'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type AccountOrderByRelevanceFieldEnum = (typeof AccountOrderByRelevanceFieldEnum)[keyof typeof AccountOrderByRelevanceFieldEnum]
|
export type PartnerAccountOrderByRelevanceFieldEnum = (typeof PartnerAccountOrderByRelevanceFieldEnum)[keyof typeof PartnerAccountOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const PermissionConsumerOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PermissionConsumerOrderByRelevanceFieldEnum = (typeof PermissionConsumerOrderByRelevanceFieldEnum)[keyof typeof PermissionConsumerOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const PermissionPosOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
pos_id: 'pos_id',
|
||||||
|
permission_id: 'permission_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PermissionPosOrderByRelevanceFieldEnum = (typeof PermissionPosOrderByRelevanceFieldEnum)[keyof typeof PermissionPosOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const PermissionComplexOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
complex_id: 'complex_id',
|
||||||
|
permission_id: 'permission_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PermissionComplexOrderByRelevanceFieldEnum = (typeof PermissionComplexOrderByRelevanceFieldEnum)[keyof typeof PermissionComplexOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const PermissionBusinessOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
business_id: 'business_id',
|
||||||
|
permission_id: 'permission_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type PermissionBusinessOrderByRelevanceFieldEnum = (typeof PermissionBusinessOrderByRelevanceFieldEnum)[keyof typeof PermissionBusinessOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const ProviderOrderByRelevanceFieldEnum = {
|
export const ProviderOrderByRelevanceFieldEnum = {
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'name',
|
code: 'code',
|
||||||
code: 'code'
|
name: 'name'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type ProviderOrderByRelevanceFieldEnum = (typeof ProviderOrderByRelevanceFieldEnum)[keyof typeof ProviderOrderByRelevanceFieldEnum]
|
export type ProviderOrderByRelevanceFieldEnum = (typeof ProviderOrderByRelevanceFieldEnum)[keyof typeof ProviderOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ProviderAccountOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
user_id: 'user_id',
|
||||||
|
account_id: 'account_id'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ProviderAccountOrderByRelevanceFieldEnum = (typeof ProviderAccountOrderByRelevanceFieldEnum)[keyof typeof ProviderAccountOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const TriggerLogOrderByRelevanceFieldEnum = {
|
export const TriggerLogOrderByRelevanceFieldEnum = {
|
||||||
message: 'message',
|
message: 'message',
|
||||||
name: 'name'
|
name: 'name'
|
||||||
@@ -670,8 +794,7 @@ export const GoodOrderByRelevanceFieldEnum = {
|
|||||||
local_sku: 'local_sku',
|
local_sku: 'local_sku',
|
||||||
barcode: 'barcode',
|
barcode: 'barcode',
|
||||||
complex_id: 'complex_id',
|
complex_id: 'complex_id',
|
||||||
category_id: 'category_id',
|
category_id: 'category_id'
|
||||||
guild_id: 'guild_id'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type GoodOrderByRelevanceFieldEnum = (typeof GoodOrderByRelevanceFieldEnum)[keyof typeof GoodOrderByRelevanceFieldEnum]
|
export type GoodOrderByRelevanceFieldEnum = (typeof GoodOrderByRelevanceFieldEnum)[keyof typeof GoodOrderByRelevanceFieldEnum]
|
||||||
@@ -689,6 +812,15 @@ export const GoodCategoryOrderByRelevanceFieldEnum = {
|
|||||||
export type GoodCategoryOrderByRelevanceFieldEnum = (typeof GoodCategoryOrderByRelevanceFieldEnum)[keyof typeof GoodCategoryOrderByRelevanceFieldEnum]
|
export type GoodCategoryOrderByRelevanceFieldEnum = (typeof GoodCategoryOrderByRelevanceFieldEnum)[keyof typeof GoodCategoryOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const GuildOrderByRelevanceFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
name: 'name',
|
||||||
|
code: 'code'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type GuildOrderByRelevanceFieldEnum = (typeof GuildOrderByRelevanceFieldEnum)[keyof typeof GuildOrderByRelevanceFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const JsonNullValueFilter = {
|
export const JsonNullValueFilter = {
|
||||||
DbNull: 'DbNull',
|
DbNull: 'DbNull',
|
||||||
JsonNull: 'JsonNull',
|
JsonNull: 'JsonNull',
|
||||||
|
|||||||
@@ -8,9 +8,11 @@
|
|||||||
*
|
*
|
||||||
* 🟢 You can import this file directly.
|
* 🟢 You can import this file directly.
|
||||||
*/
|
*/
|
||||||
export type * from './models/Token.js'
|
export type * from './models/Admin.js'
|
||||||
export type * from './models/VerificationCode.js'
|
export type * from './models/AdminAccount.js'
|
||||||
export type * from './models/Guild.js'
|
export type * from './models/Account.js'
|
||||||
|
export type * from './models/Consumer.js'
|
||||||
|
export type * from './models/ConsumerAccount.js'
|
||||||
export type * from './models/BusinessActivity.js'
|
export type * from './models/BusinessActivity.js'
|
||||||
export type * from './models/Complex.js'
|
export type * from './models/Complex.js'
|
||||||
export type * from './models/Pos.js'
|
export type * from './models/Pos.js'
|
||||||
@@ -18,9 +20,13 @@ export type * from './models/DeviceBrand.js'
|
|||||||
export type * from './models/Device.js'
|
export type * from './models/Device.js'
|
||||||
export type * from './models/License.js'
|
export type * from './models/License.js'
|
||||||
export type * from './models/Partner.js'
|
export type * from './models/Partner.js'
|
||||||
export type * from './models/User.js'
|
export type * from './models/PartnerAccount.js'
|
||||||
export type * from './models/Account.js'
|
export type * from './models/PermissionConsumer.js'
|
||||||
|
export type * from './models/PermissionPos.js'
|
||||||
|
export type * from './models/PermissionComplex.js'
|
||||||
|
export type * from './models/PermissionBusiness.js'
|
||||||
export type * from './models/Provider.js'
|
export type * from './models/Provider.js'
|
||||||
|
export type * from './models/ProviderAccount.js'
|
||||||
export type * from './models/TriggerLog.js'
|
export type * from './models/TriggerLog.js'
|
||||||
export type * from './models/UserDevices.js'
|
export type * from './models/UserDevices.js'
|
||||||
export type * from './models/Customer.js'
|
export type * from './models/Customer.js'
|
||||||
@@ -28,6 +34,7 @@ export type * from './models/CustomerIndividual.js'
|
|||||||
export type * from './models/CustomerLegal.js'
|
export type * from './models/CustomerLegal.js'
|
||||||
export type * from './models/Good.js'
|
export type * from './models/Good.js'
|
||||||
export type * from './models/GoodCategory.js'
|
export type * from './models/GoodCategory.js'
|
||||||
|
export type * from './models/Guild.js'
|
||||||
export type * from './models/SalesInvoice.js'
|
export type * from './models/SalesInvoice.js'
|
||||||
export type * from './models/SalesInvoiceItem.js'
|
export type * from './models/SalesInvoiceItem.js'
|
||||||
export type * from './models/SalesInvoicePayment.js'
|
export type * from './models/SalesInvoicePayment.js'
|
||||||
|
|||||||
+306
-1322
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -30,7 +30,7 @@ export type BusinessActivityMinAggregateOutputType = {
|
|||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
guild_id: string | null
|
guild_id: string | null
|
||||||
owner_id: string | null
|
user_id: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityMaxAggregateOutputType = {
|
export type BusinessActivityMaxAggregateOutputType = {
|
||||||
@@ -39,7 +39,7 @@ export type BusinessActivityMaxAggregateOutputType = {
|
|||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
guild_id: string | null
|
guild_id: string | null
|
||||||
owner_id: string | null
|
user_id: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCountAggregateOutputType = {
|
export type BusinessActivityCountAggregateOutputType = {
|
||||||
@@ -48,7 +48,7 @@ export type BusinessActivityCountAggregateOutputType = {
|
|||||||
created_at: number
|
created_at: number
|
||||||
updated_at: number
|
updated_at: number
|
||||||
guild_id: number
|
guild_id: number
|
||||||
owner_id: number
|
user_id: number
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ export type BusinessActivityMinAggregateInputType = {
|
|||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
guild_id?: true
|
guild_id?: true
|
||||||
owner_id?: true
|
user_id?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityMaxAggregateInputType = {
|
export type BusinessActivityMaxAggregateInputType = {
|
||||||
@@ -68,7 +68,7 @@ export type BusinessActivityMaxAggregateInputType = {
|
|||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
guild_id?: true
|
guild_id?: true
|
||||||
owner_id?: true
|
user_id?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCountAggregateInputType = {
|
export type BusinessActivityCountAggregateInputType = {
|
||||||
@@ -77,7 +77,7 @@ export type BusinessActivityCountAggregateInputType = {
|
|||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
guild_id?: true
|
guild_id?: true
|
||||||
owner_id?: true
|
user_id?: true
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,7 +159,7 @@ export type BusinessActivityGroupByOutputType = {
|
|||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
guild_id: string
|
guild_id: string
|
||||||
owner_id: string
|
user_id: string
|
||||||
_count: BusinessActivityCountAggregateOutputType | null
|
_count: BusinessActivityCountAggregateOutputType | null
|
||||||
_min: BusinessActivityMinAggregateOutputType | null
|
_min: BusinessActivityMinAggregateOutputType | null
|
||||||
_max: BusinessActivityMaxAggregateOutputType | null
|
_max: BusinessActivityMaxAggregateOutputType | null
|
||||||
@@ -189,11 +189,11 @@ export type BusinessActivityWhereInput = {
|
|||||||
created_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
||||||
guild_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
guild_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
||||||
owner_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
user_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
||||||
guild?: Prisma.XOR<Prisma.GuildScalarRelationFilter, Prisma.GuildWhereInput>
|
guild?: Prisma.XOR<Prisma.GuildScalarRelationFilter, Prisma.GuildWhereInput>
|
||||||
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
user?: Prisma.XOR<Prisma.ConsumerScalarRelationFilter, Prisma.ConsumerWhereInput>
|
||||||
complexes?: Prisma.ComplexListRelationFilter
|
complexes?: Prisma.ComplexListRelationFilter
|
||||||
accounts?: Prisma.AccountListRelationFilter
|
permissionBusinesses?: Prisma.PermissionBusinessListRelationFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityOrderByWithRelationInput = {
|
export type BusinessActivityOrderByWithRelationInput = {
|
||||||
@@ -202,11 +202,11 @@ export type BusinessActivityOrderByWithRelationInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
guild_id?: Prisma.SortOrder
|
guild_id?: Prisma.SortOrder
|
||||||
owner_id?: Prisma.SortOrder
|
user_id?: Prisma.SortOrder
|
||||||
guild?: Prisma.GuildOrderByWithRelationInput
|
guild?: Prisma.GuildOrderByWithRelationInput
|
||||||
user?: Prisma.UserOrderByWithRelationInput
|
user?: Prisma.ConsumerOrderByWithRelationInput
|
||||||
complexes?: Prisma.ComplexOrderByRelationAggregateInput
|
complexes?: Prisma.ComplexOrderByRelationAggregateInput
|
||||||
accounts?: Prisma.AccountOrderByRelationAggregateInput
|
permissionBusinesses?: Prisma.PermissionBusinessOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.BusinessActivityOrderByRelevanceInput
|
_relevance?: Prisma.BusinessActivityOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -219,11 +219,11 @@ export type BusinessActivityWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
created_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
||||||
guild_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
guild_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
||||||
owner_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
user_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
||||||
guild?: Prisma.XOR<Prisma.GuildScalarRelationFilter, Prisma.GuildWhereInput>
|
guild?: Prisma.XOR<Prisma.GuildScalarRelationFilter, Prisma.GuildWhereInput>
|
||||||
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
user?: Prisma.XOR<Prisma.ConsumerScalarRelationFilter, Prisma.ConsumerWhereInput>
|
||||||
complexes?: Prisma.ComplexListRelationFilter
|
complexes?: Prisma.ComplexListRelationFilter
|
||||||
accounts?: Prisma.AccountListRelationFilter
|
permissionBusinesses?: Prisma.PermissionBusinessListRelationFilter
|
||||||
}, "id">
|
}, "id">
|
||||||
|
|
||||||
export type BusinessActivityOrderByWithAggregationInput = {
|
export type BusinessActivityOrderByWithAggregationInput = {
|
||||||
@@ -232,7 +232,7 @@ export type BusinessActivityOrderByWithAggregationInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
guild_id?: Prisma.SortOrder
|
guild_id?: Prisma.SortOrder
|
||||||
owner_id?: Prisma.SortOrder
|
user_id?: Prisma.SortOrder
|
||||||
_count?: Prisma.BusinessActivityCountOrderByAggregateInput
|
_count?: Prisma.BusinessActivityCountOrderByAggregateInput
|
||||||
_max?: Prisma.BusinessActivityMaxOrderByAggregateInput
|
_max?: Prisma.BusinessActivityMaxOrderByAggregateInput
|
||||||
_min?: Prisma.BusinessActivityMinOrderByAggregateInput
|
_min?: Prisma.BusinessActivityMinOrderByAggregateInput
|
||||||
@@ -247,7 +247,7 @@ export type BusinessActivityScalarWhereWithAggregatesInput = {
|
|||||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"BusinessActivity"> | Date | string
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"BusinessActivity"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"BusinessActivity"> | Date | string
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"BusinessActivity"> | Date | string
|
||||||
guild_id?: Prisma.StringWithAggregatesFilter<"BusinessActivity"> | string
|
guild_id?: Prisma.StringWithAggregatesFilter<"BusinessActivity"> | string
|
||||||
owner_id?: Prisma.StringWithAggregatesFilter<"BusinessActivity"> | string
|
user_id?: Prisma.StringWithAggregatesFilter<"BusinessActivity"> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateInput = {
|
export type BusinessActivityCreateInput = {
|
||||||
@@ -256,9 +256,9 @@ export type BusinessActivityCreateInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
guild: Prisma.GuildCreateNestedOneWithoutBusiness_activitiesInput
|
guild: Prisma.GuildCreateNestedOneWithoutBusiness_activitiesInput
|
||||||
user: Prisma.UserCreateNestedOneWithoutBusinessActivitiesInput
|
user: Prisma.ConsumerCreateNestedOneWithoutBusinessActivitiesInput
|
||||||
complexes?: Prisma.ComplexCreateNestedManyWithoutBusiness_activityInput
|
complexes?: Prisma.ComplexCreateNestedManyWithoutBusiness_activityInput
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutBusinessInput
|
permissionBusinesses?: Prisma.PermissionBusinessCreateNestedManyWithoutBusinessInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUncheckedCreateInput = {
|
export type BusinessActivityUncheckedCreateInput = {
|
||||||
@@ -267,9 +267,9 @@ export type BusinessActivityUncheckedCreateInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
guild_id: string
|
guild_id: string
|
||||||
owner_id: string
|
user_id: string
|
||||||
complexes?: Prisma.ComplexUncheckedCreateNestedManyWithoutBusiness_activityInput
|
complexes?: Prisma.ComplexUncheckedCreateNestedManyWithoutBusiness_activityInput
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutBusinessInput
|
permissionBusinesses?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutBusinessInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUpdateInput = {
|
export type BusinessActivityUpdateInput = {
|
||||||
@@ -278,9 +278,9 @@ export type BusinessActivityUpdateInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
guild?: Prisma.GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput
|
guild?: Prisma.GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput
|
||||||
user?: Prisma.UserUpdateOneRequiredWithoutBusinessActivitiesNestedInput
|
user?: Prisma.ConsumerUpdateOneRequiredWithoutBusinessActivitiesNestedInput
|
||||||
complexes?: Prisma.ComplexUpdateManyWithoutBusiness_activityNestedInput
|
complexes?: Prisma.ComplexUpdateManyWithoutBusiness_activityNestedInput
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutBusinessNestedInput
|
permissionBusinesses?: Prisma.PermissionBusinessUpdateManyWithoutBusinessNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUncheckedUpdateInput = {
|
export type BusinessActivityUncheckedUpdateInput = {
|
||||||
@@ -289,9 +289,9 @@ export type BusinessActivityUncheckedUpdateInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
owner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
user_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
complexes?: Prisma.ComplexUncheckedUpdateManyWithoutBusiness_activityNestedInput
|
complexes?: Prisma.ComplexUncheckedUpdateManyWithoutBusiness_activityNestedInput
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutBusinessNestedInput
|
permissionBusinesses?: Prisma.PermissionBusinessUncheckedUpdateManyWithoutBusinessNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateManyInput = {
|
export type BusinessActivityCreateManyInput = {
|
||||||
@@ -300,7 +300,7 @@ export type BusinessActivityCreateManyInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
guild_id: string
|
guild_id: string
|
||||||
owner_id: string
|
user_id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUpdateManyMutationInput = {
|
export type BusinessActivityUpdateManyMutationInput = {
|
||||||
@@ -316,7 +316,7 @@ export type BusinessActivityUncheckedUpdateManyInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
owner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
user_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityListRelationFilter = {
|
export type BusinessActivityListRelationFilter = {
|
||||||
@@ -341,7 +341,7 @@ export type BusinessActivityCountOrderByAggregateInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
guild_id?: Prisma.SortOrder
|
guild_id?: Prisma.SortOrder
|
||||||
owner_id?: Prisma.SortOrder
|
user_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityMaxOrderByAggregateInput = {
|
export type BusinessActivityMaxOrderByAggregateInput = {
|
||||||
@@ -350,7 +350,7 @@ export type BusinessActivityMaxOrderByAggregateInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
guild_id?: Prisma.SortOrder
|
guild_id?: Prisma.SortOrder
|
||||||
owner_id?: Prisma.SortOrder
|
user_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityMinOrderByAggregateInput = {
|
export type BusinessActivityMinOrderByAggregateInput = {
|
||||||
@@ -359,7 +359,7 @@ export type BusinessActivityMinOrderByAggregateInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
guild_id?: Prisma.SortOrder
|
guild_id?: Prisma.SortOrder
|
||||||
owner_id?: Prisma.SortOrder
|
user_id?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityScalarRelationFilter = {
|
export type BusinessActivityScalarRelationFilter = {
|
||||||
@@ -367,67 +367,6 @@ export type BusinessActivityScalarRelationFilter = {
|
|||||||
isNot?: Prisma.BusinessActivityWhereInput
|
isNot?: Prisma.BusinessActivityWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityNullableScalarRelationFilter = {
|
|
||||||
is?: Prisma.BusinessActivityWhereInput | null
|
|
||||||
isNot?: Prisma.BusinessActivityWhereInput | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityCreateNestedManyWithoutGuildInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput> | Prisma.BusinessActivityCreateWithoutGuildInput[] | Prisma.BusinessActivityUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutGuildInput | Prisma.BusinessActivityCreateOrConnectWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.BusinessActivityCreateManyGuildInputEnvelope
|
|
||||||
connect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityUncheckedCreateNestedManyWithoutGuildInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput> | Prisma.BusinessActivityCreateWithoutGuildInput[] | Prisma.BusinessActivityUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutGuildInput | Prisma.BusinessActivityCreateOrConnectWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.BusinessActivityCreateManyGuildInputEnvelope
|
|
||||||
connect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityUpdateManyWithoutGuildNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput> | Prisma.BusinessActivityCreateWithoutGuildInput[] | Prisma.BusinessActivityUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutGuildInput | Prisma.BusinessActivityCreateOrConnectWithoutGuildInput[]
|
|
||||||
upsert?: Prisma.BusinessActivityUpsertWithWhereUniqueWithoutGuildInput | Prisma.BusinessActivityUpsertWithWhereUniqueWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.BusinessActivityCreateManyGuildInputEnvelope
|
|
||||||
set?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
|
||||||
delete?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
|
||||||
connect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
|
||||||
update?: Prisma.BusinessActivityUpdateWithWhereUniqueWithoutGuildInput | Prisma.BusinessActivityUpdateWithWhereUniqueWithoutGuildInput[]
|
|
||||||
updateMany?: Prisma.BusinessActivityUpdateManyWithWhereWithoutGuildInput | Prisma.BusinessActivityUpdateManyWithWhereWithoutGuildInput[]
|
|
||||||
deleteMany?: Prisma.BusinessActivityScalarWhereInput | Prisma.BusinessActivityScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput> | Prisma.BusinessActivityCreateWithoutGuildInput[] | Prisma.BusinessActivityUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutGuildInput | Prisma.BusinessActivityCreateOrConnectWithoutGuildInput[]
|
|
||||||
upsert?: Prisma.BusinessActivityUpsertWithWhereUniqueWithoutGuildInput | Prisma.BusinessActivityUpsertWithWhereUniqueWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.BusinessActivityCreateManyGuildInputEnvelope
|
|
||||||
set?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
|
||||||
delete?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
|
||||||
connect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
|
||||||
update?: Prisma.BusinessActivityUpdateWithWhereUniqueWithoutGuildInput | Prisma.BusinessActivityUpdateWithWhereUniqueWithoutGuildInput[]
|
|
||||||
updateMany?: Prisma.BusinessActivityUpdateManyWithWhereWithoutGuildInput | Prisma.BusinessActivityUpdateManyWithWhereWithoutGuildInput[]
|
|
||||||
deleteMany?: Prisma.BusinessActivityScalarWhereInput | Prisma.BusinessActivityScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityCreateNestedOneWithoutComplexesInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutComplexesInput, Prisma.BusinessActivityUncheckedCreateWithoutComplexesInput>
|
|
||||||
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutComplexesInput
|
|
||||||
connect?: Prisma.BusinessActivityWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutComplexesInput, Prisma.BusinessActivityUncheckedCreateWithoutComplexesInput>
|
|
||||||
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutComplexesInput
|
|
||||||
upsert?: Prisma.BusinessActivityUpsertWithoutComplexesInput
|
|
||||||
connect?: Prisma.BusinessActivityWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.BusinessActivityUpdateToOneWithWhereWithoutComplexesInput, Prisma.BusinessActivityUpdateWithoutComplexesInput>, Prisma.BusinessActivityUncheckedUpdateWithoutComplexesInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityCreateNestedManyWithoutUserInput = {
|
export type BusinessActivityCreateNestedManyWithoutUserInput = {
|
||||||
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutUserInput, Prisma.BusinessActivityUncheckedCreateWithoutUserInput> | Prisma.BusinessActivityCreateWithoutUserInput[] | Prisma.BusinessActivityUncheckedCreateWithoutUserInput[]
|
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutUserInput, Prisma.BusinessActivityUncheckedCreateWithoutUserInput> | Prisma.BusinessActivityCreateWithoutUserInput[] | Prisma.BusinessActivityUncheckedCreateWithoutUserInput[]
|
||||||
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutUserInput | Prisma.BusinessActivityCreateOrConnectWithoutUserInput[]
|
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutUserInput | Prisma.BusinessActivityCreateOrConnectWithoutUserInput[]
|
||||||
@@ -470,134 +409,74 @@ export type BusinessActivityUncheckedUpdateManyWithoutUserNestedInput = {
|
|||||||
deleteMany?: Prisma.BusinessActivityScalarWhereInput | Prisma.BusinessActivityScalarWhereInput[]
|
deleteMany?: Prisma.BusinessActivityScalarWhereInput | Prisma.BusinessActivityScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateNestedOneWithoutAccountsInput = {
|
export type BusinessActivityCreateNestedOneWithoutComplexesInput = {
|
||||||
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutAccountsInput, Prisma.BusinessActivityUncheckedCreateWithoutAccountsInput>
|
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutComplexesInput, Prisma.BusinessActivityUncheckedCreateWithoutComplexesInput>
|
||||||
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutAccountsInput
|
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutComplexesInput
|
||||||
connect?: Prisma.BusinessActivityWhereUniqueInput
|
connect?: Prisma.BusinessActivityWhereUniqueInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUpdateOneWithoutAccountsNestedInput = {
|
export type BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput = {
|
||||||
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutAccountsInput, Prisma.BusinessActivityUncheckedCreateWithoutAccountsInput>
|
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutComplexesInput, Prisma.BusinessActivityUncheckedCreateWithoutComplexesInput>
|
||||||
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutAccountsInput
|
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutComplexesInput
|
||||||
upsert?: Prisma.BusinessActivityUpsertWithoutAccountsInput
|
upsert?: Prisma.BusinessActivityUpsertWithoutComplexesInput
|
||||||
disconnect?: Prisma.BusinessActivityWhereInput | boolean
|
|
||||||
delete?: Prisma.BusinessActivityWhereInput | boolean
|
|
||||||
connect?: Prisma.BusinessActivityWhereUniqueInput
|
connect?: Prisma.BusinessActivityWhereUniqueInput
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.BusinessActivityUpdateToOneWithWhereWithoutAccountsInput, Prisma.BusinessActivityUpdateWithoutAccountsInput>, Prisma.BusinessActivityUncheckedUpdateWithoutAccountsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.BusinessActivityUpdateToOneWithWhereWithoutComplexesInput, Prisma.BusinessActivityUpdateWithoutComplexesInput>, Prisma.BusinessActivityUncheckedUpdateWithoutComplexesInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateWithoutGuildInput = {
|
export type BusinessActivityCreateNestedOneWithoutPermissionBusinessesInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutPermissionBusinessesInput, Prisma.BusinessActivityUncheckedCreateWithoutPermissionBusinessesInput>
|
||||||
name: string
|
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutPermissionBusinessesInput
|
||||||
created_at?: Date | string
|
connect?: Prisma.BusinessActivityWhereUniqueInput
|
||||||
updated_at?: Date | string
|
|
||||||
user: Prisma.UserCreateNestedOneWithoutBusinessActivitiesInput
|
|
||||||
complexes?: Prisma.ComplexCreateNestedManyWithoutBusiness_activityInput
|
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutBusinessInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUncheckedCreateWithoutGuildInput = {
|
export type BusinessActivityUpdateOneRequiredWithoutPermissionBusinessesNestedInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutPermissionBusinessesInput, Prisma.BusinessActivityUncheckedCreateWithoutPermissionBusinessesInput>
|
||||||
name: string
|
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutPermissionBusinessesInput
|
||||||
created_at?: Date | string
|
upsert?: Prisma.BusinessActivityUpsertWithoutPermissionBusinessesInput
|
||||||
updated_at?: Date | string
|
connect?: Prisma.BusinessActivityWhereUniqueInput
|
||||||
owner_id: string
|
update?: Prisma.XOR<Prisma.XOR<Prisma.BusinessActivityUpdateToOneWithWhereWithoutPermissionBusinessesInput, Prisma.BusinessActivityUpdateWithoutPermissionBusinessesInput>, Prisma.BusinessActivityUncheckedUpdateWithoutPermissionBusinessesInput>
|
||||||
complexes?: Prisma.ComplexUncheckedCreateNestedManyWithoutBusiness_activityInput
|
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutBusinessInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateOrConnectWithoutGuildInput = {
|
export type BusinessActivityCreateNestedManyWithoutGuildInput = {
|
||||||
where: Prisma.BusinessActivityWhereUniqueInput
|
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput> | Prisma.BusinessActivityCreateWithoutGuildInput[] | Prisma.BusinessActivityUncheckedCreateWithoutGuildInput[]
|
||||||
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput>
|
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutGuildInput | Prisma.BusinessActivityCreateOrConnectWithoutGuildInput[]
|
||||||
|
createMany?: Prisma.BusinessActivityCreateManyGuildInputEnvelope
|
||||||
|
connect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateManyGuildInputEnvelope = {
|
export type BusinessActivityUncheckedCreateNestedManyWithoutGuildInput = {
|
||||||
data: Prisma.BusinessActivityCreateManyGuildInput | Prisma.BusinessActivityCreateManyGuildInput[]
|
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput> | Prisma.BusinessActivityCreateWithoutGuildInput[] | Prisma.BusinessActivityUncheckedCreateWithoutGuildInput[]
|
||||||
skipDuplicates?: boolean
|
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutGuildInput | Prisma.BusinessActivityCreateOrConnectWithoutGuildInput[]
|
||||||
|
createMany?: Prisma.BusinessActivityCreateManyGuildInputEnvelope
|
||||||
|
connect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUpsertWithWhereUniqueWithoutGuildInput = {
|
export type BusinessActivityUpdateManyWithoutGuildNestedInput = {
|
||||||
where: Prisma.BusinessActivityWhereUniqueInput
|
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput> | Prisma.BusinessActivityCreateWithoutGuildInput[] | Prisma.BusinessActivityUncheckedCreateWithoutGuildInput[]
|
||||||
update: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutGuildInput, Prisma.BusinessActivityUncheckedUpdateWithoutGuildInput>
|
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutGuildInput | Prisma.BusinessActivityCreateOrConnectWithoutGuildInput[]
|
||||||
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput>
|
upsert?: Prisma.BusinessActivityUpsertWithWhereUniqueWithoutGuildInput | Prisma.BusinessActivityUpsertWithWhereUniqueWithoutGuildInput[]
|
||||||
|
createMany?: Prisma.BusinessActivityCreateManyGuildInputEnvelope
|
||||||
|
set?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
||||||
|
disconnect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
||||||
|
delete?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
||||||
|
connect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
||||||
|
update?: Prisma.BusinessActivityUpdateWithWhereUniqueWithoutGuildInput | Prisma.BusinessActivityUpdateWithWhereUniqueWithoutGuildInput[]
|
||||||
|
updateMany?: Prisma.BusinessActivityUpdateManyWithWhereWithoutGuildInput | Prisma.BusinessActivityUpdateManyWithWhereWithoutGuildInput[]
|
||||||
|
deleteMany?: Prisma.BusinessActivityScalarWhereInput | Prisma.BusinessActivityScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUpdateWithWhereUniqueWithoutGuildInput = {
|
export type BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput = {
|
||||||
where: Prisma.BusinessActivityWhereUniqueInput
|
create?: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput> | Prisma.BusinessActivityCreateWithoutGuildInput[] | Prisma.BusinessActivityUncheckedCreateWithoutGuildInput[]
|
||||||
data: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutGuildInput, Prisma.BusinessActivityUncheckedUpdateWithoutGuildInput>
|
connectOrCreate?: Prisma.BusinessActivityCreateOrConnectWithoutGuildInput | Prisma.BusinessActivityCreateOrConnectWithoutGuildInput[]
|
||||||
}
|
upsert?: Prisma.BusinessActivityUpsertWithWhereUniqueWithoutGuildInput | Prisma.BusinessActivityUpsertWithWhereUniqueWithoutGuildInput[]
|
||||||
|
createMany?: Prisma.BusinessActivityCreateManyGuildInputEnvelope
|
||||||
export type BusinessActivityUpdateManyWithWhereWithoutGuildInput = {
|
set?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
||||||
where: Prisma.BusinessActivityScalarWhereInput
|
disconnect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
||||||
data: Prisma.XOR<Prisma.BusinessActivityUpdateManyMutationInput, Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildInput>
|
delete?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
||||||
}
|
connect?: Prisma.BusinessActivityWhereUniqueInput | Prisma.BusinessActivityWhereUniqueInput[]
|
||||||
|
update?: Prisma.BusinessActivityUpdateWithWhereUniqueWithoutGuildInput | Prisma.BusinessActivityUpdateWithWhereUniqueWithoutGuildInput[]
|
||||||
export type BusinessActivityScalarWhereInput = {
|
updateMany?: Prisma.BusinessActivityUpdateManyWithWhereWithoutGuildInput | Prisma.BusinessActivityUpdateManyWithWhereWithoutGuildInput[]
|
||||||
AND?: Prisma.BusinessActivityScalarWhereInput | Prisma.BusinessActivityScalarWhereInput[]
|
deleteMany?: Prisma.BusinessActivityScalarWhereInput | Prisma.BusinessActivityScalarWhereInput[]
|
||||||
OR?: Prisma.BusinessActivityScalarWhereInput[]
|
|
||||||
NOT?: Prisma.BusinessActivityScalarWhereInput | Prisma.BusinessActivityScalarWhereInput[]
|
|
||||||
id?: Prisma.StringFilter<"BusinessActivity"> | string
|
|
||||||
name?: Prisma.StringFilter<"BusinessActivity"> | string
|
|
||||||
created_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
|
||||||
guild_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
|
||||||
owner_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityCreateWithoutComplexesInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
guild: Prisma.GuildCreateNestedOneWithoutBusiness_activitiesInput
|
|
||||||
user: Prisma.UserCreateNestedOneWithoutBusinessActivitiesInput
|
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutBusinessInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityUncheckedCreateWithoutComplexesInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
guild_id: string
|
|
||||||
owner_id: string
|
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutBusinessInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityCreateOrConnectWithoutComplexesInput = {
|
|
||||||
where: Prisma.BusinessActivityWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutComplexesInput, Prisma.BusinessActivityUncheckedCreateWithoutComplexesInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityUpsertWithoutComplexesInput = {
|
|
||||||
update: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutComplexesInput, Prisma.BusinessActivityUncheckedUpdateWithoutComplexesInput>
|
|
||||||
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutComplexesInput, Prisma.BusinessActivityUncheckedCreateWithoutComplexesInput>
|
|
||||||
where?: Prisma.BusinessActivityWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityUpdateToOneWithWhereWithoutComplexesInput = {
|
|
||||||
where?: Prisma.BusinessActivityWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutComplexesInput, Prisma.BusinessActivityUncheckedUpdateWithoutComplexesInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityUpdateWithoutComplexesInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
guild?: Prisma.GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput
|
|
||||||
user?: Prisma.UserUpdateOneRequiredWithoutBusinessActivitiesNestedInput
|
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutBusinessNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BusinessActivityUncheckedUpdateWithoutComplexesInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
owner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutBusinessNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateWithoutUserInput = {
|
export type BusinessActivityCreateWithoutUserInput = {
|
||||||
@@ -607,7 +486,7 @@ export type BusinessActivityCreateWithoutUserInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
guild: Prisma.GuildCreateNestedOneWithoutBusiness_activitiesInput
|
guild: Prisma.GuildCreateNestedOneWithoutBusiness_activitiesInput
|
||||||
complexes?: Prisma.ComplexCreateNestedManyWithoutBusiness_activityInput
|
complexes?: Prisma.ComplexCreateNestedManyWithoutBusiness_activityInput
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutBusinessInput
|
permissionBusinesses?: Prisma.PermissionBusinessCreateNestedManyWithoutBusinessInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUncheckedCreateWithoutUserInput = {
|
export type BusinessActivityUncheckedCreateWithoutUserInput = {
|
||||||
@@ -617,7 +496,7 @@ export type BusinessActivityUncheckedCreateWithoutUserInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
guild_id: string
|
guild_id: string
|
||||||
complexes?: Prisma.ComplexUncheckedCreateNestedManyWithoutBusiness_activityInput
|
complexes?: Prisma.ComplexUncheckedCreateNestedManyWithoutBusiness_activityInput
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutBusinessInput
|
permissionBusinesses?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutBusinessInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateOrConnectWithoutUserInput = {
|
export type BusinessActivityCreateOrConnectWithoutUserInput = {
|
||||||
@@ -646,96 +525,174 @@ export type BusinessActivityUpdateManyWithWhereWithoutUserInput = {
|
|||||||
data: Prisma.XOR<Prisma.BusinessActivityUpdateManyMutationInput, Prisma.BusinessActivityUncheckedUpdateManyWithoutUserInput>
|
data: Prisma.XOR<Prisma.BusinessActivityUpdateManyMutationInput, Prisma.BusinessActivityUncheckedUpdateManyWithoutUserInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateWithoutAccountsInput = {
|
export type BusinessActivityScalarWhereInput = {
|
||||||
|
AND?: Prisma.BusinessActivityScalarWhereInput | Prisma.BusinessActivityScalarWhereInput[]
|
||||||
|
OR?: Prisma.BusinessActivityScalarWhereInput[]
|
||||||
|
NOT?: Prisma.BusinessActivityScalarWhereInput | Prisma.BusinessActivityScalarWhereInput[]
|
||||||
|
id?: Prisma.StringFilter<"BusinessActivity"> | string
|
||||||
|
name?: Prisma.StringFilter<"BusinessActivity"> | string
|
||||||
|
created_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFilter<"BusinessActivity"> | Date | string
|
||||||
|
guild_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
||||||
|
user_id?: Prisma.StringFilter<"BusinessActivity"> | string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityCreateWithoutComplexesInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
guild: Prisma.GuildCreateNestedOneWithoutBusiness_activitiesInput
|
guild: Prisma.GuildCreateNestedOneWithoutBusiness_activitiesInput
|
||||||
user: Prisma.UserCreateNestedOneWithoutBusinessActivitiesInput
|
user: Prisma.ConsumerCreateNestedOneWithoutBusinessActivitiesInput
|
||||||
complexes?: Prisma.ComplexCreateNestedManyWithoutBusiness_activityInput
|
permissionBusinesses?: Prisma.PermissionBusinessCreateNestedManyWithoutBusinessInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUncheckedCreateWithoutAccountsInput = {
|
export type BusinessActivityUncheckedCreateWithoutComplexesInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
guild_id: string
|
guild_id: string
|
||||||
owner_id: string
|
user_id: string
|
||||||
complexes?: Prisma.ComplexUncheckedCreateNestedManyWithoutBusiness_activityInput
|
permissionBusinesses?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutBusinessInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateOrConnectWithoutAccountsInput = {
|
export type BusinessActivityCreateOrConnectWithoutComplexesInput = {
|
||||||
where: Prisma.BusinessActivityWhereUniqueInput
|
where: Prisma.BusinessActivityWhereUniqueInput
|
||||||
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutAccountsInput, Prisma.BusinessActivityUncheckedCreateWithoutAccountsInput>
|
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutComplexesInput, Prisma.BusinessActivityUncheckedCreateWithoutComplexesInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUpsertWithoutAccountsInput = {
|
export type BusinessActivityUpsertWithoutComplexesInput = {
|
||||||
update: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutAccountsInput, Prisma.BusinessActivityUncheckedUpdateWithoutAccountsInput>
|
update: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutComplexesInput, Prisma.BusinessActivityUncheckedUpdateWithoutComplexesInput>
|
||||||
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutAccountsInput, Prisma.BusinessActivityUncheckedCreateWithoutAccountsInput>
|
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutComplexesInput, Prisma.BusinessActivityUncheckedCreateWithoutComplexesInput>
|
||||||
where?: Prisma.BusinessActivityWhereInput
|
where?: Prisma.BusinessActivityWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUpdateToOneWithWhereWithoutAccountsInput = {
|
export type BusinessActivityUpdateToOneWithWhereWithoutComplexesInput = {
|
||||||
where?: Prisma.BusinessActivityWhereInput
|
where?: Prisma.BusinessActivityWhereInput
|
||||||
data: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutAccountsInput, Prisma.BusinessActivityUncheckedUpdateWithoutAccountsInput>
|
data: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutComplexesInput, Prisma.BusinessActivityUncheckedUpdateWithoutComplexesInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUpdateWithoutAccountsInput = {
|
export type BusinessActivityUpdateWithoutComplexesInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
guild?: Prisma.GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput
|
guild?: Prisma.GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput
|
||||||
user?: Prisma.UserUpdateOneRequiredWithoutBusinessActivitiesNestedInput
|
user?: Prisma.ConsumerUpdateOneRequiredWithoutBusinessActivitiesNestedInput
|
||||||
complexes?: Prisma.ComplexUpdateManyWithoutBusiness_activityNestedInput
|
permissionBusinesses?: Prisma.PermissionBusinessUpdateManyWithoutBusinessNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUncheckedUpdateWithoutAccountsInput = {
|
export type BusinessActivityUncheckedUpdateWithoutComplexesInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
owner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
user_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
complexes?: Prisma.ComplexUncheckedUpdateManyWithoutBusiness_activityNestedInput
|
permissionBusinesses?: Prisma.PermissionBusinessUncheckedUpdateManyWithoutBusinessNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateManyGuildInput = {
|
export type BusinessActivityCreateWithoutPermissionBusinessesInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
owner_id: string
|
guild: Prisma.GuildCreateNestedOneWithoutBusiness_activitiesInput
|
||||||
|
user: Prisma.ConsumerCreateNestedOneWithoutBusinessActivitiesInput
|
||||||
|
complexes?: Prisma.ComplexCreateNestedManyWithoutBusiness_activityInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUpdateWithoutGuildInput = {
|
export type BusinessActivityUncheckedCreateWithoutPermissionBusinessesInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
guild_id: string
|
||||||
|
user_id: string
|
||||||
|
complexes?: Prisma.ComplexUncheckedCreateNestedManyWithoutBusiness_activityInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityCreateOrConnectWithoutPermissionBusinessesInput = {
|
||||||
|
where: Prisma.BusinessActivityWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutPermissionBusinessesInput, Prisma.BusinessActivityUncheckedCreateWithoutPermissionBusinessesInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityUpsertWithoutPermissionBusinessesInput = {
|
||||||
|
update: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutPermissionBusinessesInput, Prisma.BusinessActivityUncheckedUpdateWithoutPermissionBusinessesInput>
|
||||||
|
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutPermissionBusinessesInput, Prisma.BusinessActivityUncheckedCreateWithoutPermissionBusinessesInput>
|
||||||
|
where?: Prisma.BusinessActivityWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityUpdateToOneWithWhereWithoutPermissionBusinessesInput = {
|
||||||
|
where?: Prisma.BusinessActivityWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutPermissionBusinessesInput, Prisma.BusinessActivityUncheckedUpdateWithoutPermissionBusinessesInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityUpdateWithoutPermissionBusinessesInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
user?: Prisma.UserUpdateOneRequiredWithoutBusinessActivitiesNestedInput
|
guild?: Prisma.GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput
|
||||||
|
user?: Prisma.ConsumerUpdateOneRequiredWithoutBusinessActivitiesNestedInput
|
||||||
complexes?: Prisma.ComplexUpdateManyWithoutBusiness_activityNestedInput
|
complexes?: Prisma.ComplexUpdateManyWithoutBusiness_activityNestedInput
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutBusinessNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUncheckedUpdateWithoutGuildInput = {
|
export type BusinessActivityUncheckedUpdateWithoutPermissionBusinessesInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
owner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
user_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
complexes?: Prisma.ComplexUncheckedUpdateManyWithoutBusiness_activityNestedInput
|
complexes?: Prisma.ComplexUncheckedUpdateManyWithoutBusiness_activityNestedInput
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutBusinessNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUncheckedUpdateManyWithoutGuildInput = {
|
export type BusinessActivityCreateWithoutGuildInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name: string
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Date | string
|
||||||
owner_id?: Prisma.StringFieldUpdateOperationsInput | string
|
user: Prisma.ConsumerCreateNestedOneWithoutBusinessActivitiesInput
|
||||||
|
complexes?: Prisma.ComplexCreateNestedManyWithoutBusiness_activityInput
|
||||||
|
permissionBusinesses?: Prisma.PermissionBusinessCreateNestedManyWithoutBusinessInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityUncheckedCreateWithoutGuildInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
user_id: string
|
||||||
|
complexes?: Prisma.ComplexUncheckedCreateNestedManyWithoutBusiness_activityInput
|
||||||
|
permissionBusinesses?: Prisma.PermissionBusinessUncheckedCreateNestedManyWithoutBusinessInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityCreateOrConnectWithoutGuildInput = {
|
||||||
|
where: Prisma.BusinessActivityWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityCreateManyGuildInputEnvelope = {
|
||||||
|
data: Prisma.BusinessActivityCreateManyGuildInput | Prisma.BusinessActivityCreateManyGuildInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityUpsertWithWhereUniqueWithoutGuildInput = {
|
||||||
|
where: Prisma.BusinessActivityWhereUniqueInput
|
||||||
|
update: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutGuildInput, Prisma.BusinessActivityUncheckedUpdateWithoutGuildInput>
|
||||||
|
create: Prisma.XOR<Prisma.BusinessActivityCreateWithoutGuildInput, Prisma.BusinessActivityUncheckedCreateWithoutGuildInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityUpdateWithWhereUniqueWithoutGuildInput = {
|
||||||
|
where: Prisma.BusinessActivityWhereUniqueInput
|
||||||
|
data: Prisma.XOR<Prisma.BusinessActivityUpdateWithoutGuildInput, Prisma.BusinessActivityUncheckedUpdateWithoutGuildInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityUpdateManyWithWhereWithoutGuildInput = {
|
||||||
|
where: Prisma.BusinessActivityScalarWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.BusinessActivityUpdateManyMutationInput, Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCreateManyUserInput = {
|
export type BusinessActivityCreateManyUserInput = {
|
||||||
@@ -753,7 +710,7 @@ export type BusinessActivityUpdateWithoutUserInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
guild?: Prisma.GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput
|
guild?: Prisma.GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput
|
||||||
complexes?: Prisma.ComplexUpdateManyWithoutBusiness_activityNestedInput
|
complexes?: Prisma.ComplexUpdateManyWithoutBusiness_activityNestedInput
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutBusinessNestedInput
|
permissionBusinesses?: Prisma.PermissionBusinessUpdateManyWithoutBusinessNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUncheckedUpdateWithoutUserInput = {
|
export type BusinessActivityUncheckedUpdateWithoutUserInput = {
|
||||||
@@ -763,7 +720,7 @@ export type BusinessActivityUncheckedUpdateWithoutUserInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
complexes?: Prisma.ComplexUncheckedUpdateManyWithoutBusiness_activityNestedInput
|
complexes?: Prisma.ComplexUncheckedUpdateManyWithoutBusiness_activityNestedInput
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutBusinessNestedInput
|
permissionBusinesses?: Prisma.PermissionBusinessUncheckedUpdateManyWithoutBusinessNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityUncheckedUpdateManyWithoutUserInput = {
|
export type BusinessActivityUncheckedUpdateManyWithoutUserInput = {
|
||||||
@@ -774,6 +731,42 @@ export type BusinessActivityUncheckedUpdateManyWithoutUserInput = {
|
|||||||
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
guild_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityCreateManyGuildInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
user_id: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityUpdateWithoutGuildInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
user?: Prisma.ConsumerUpdateOneRequiredWithoutBusinessActivitiesNestedInput
|
||||||
|
complexes?: Prisma.ComplexUpdateManyWithoutBusiness_activityNestedInput
|
||||||
|
permissionBusinesses?: Prisma.PermissionBusinessUpdateManyWithoutBusinessNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityUncheckedUpdateWithoutGuildInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
user_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
complexes?: Prisma.ComplexUncheckedUpdateManyWithoutBusiness_activityNestedInput
|
||||||
|
permissionBusinesses?: Prisma.PermissionBusinessUncheckedUpdateManyWithoutBusinessNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type BusinessActivityUncheckedUpdateManyWithoutGuildInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
user_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count Type BusinessActivityCountOutputType
|
* Count Type BusinessActivityCountOutputType
|
||||||
@@ -781,12 +774,12 @@ export type BusinessActivityUncheckedUpdateManyWithoutUserInput = {
|
|||||||
|
|
||||||
export type BusinessActivityCountOutputType = {
|
export type BusinessActivityCountOutputType = {
|
||||||
complexes: number
|
complexes: number
|
||||||
accounts: number
|
permissionBusinesses: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type BusinessActivityCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
complexes?: boolean | BusinessActivityCountOutputTypeCountComplexesArgs
|
complexes?: boolean | BusinessActivityCountOutputTypeCountComplexesArgs
|
||||||
accounts?: boolean | BusinessActivityCountOutputTypeCountAccountsArgs
|
permissionBusinesses?: boolean | BusinessActivityCountOutputTypeCountPermissionBusinessesArgs
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -809,8 +802,8 @@ export type BusinessActivityCountOutputTypeCountComplexesArgs<ExtArgs extends ru
|
|||||||
/**
|
/**
|
||||||
* BusinessActivityCountOutputType without action
|
* BusinessActivityCountOutputType without action
|
||||||
*/
|
*/
|
||||||
export type BusinessActivityCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type BusinessActivityCountOutputTypeCountPermissionBusinessesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
where?: Prisma.AccountWhereInput
|
where?: Prisma.PermissionBusinessWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -820,11 +813,11 @@ export type BusinessActivitySelect<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
guild_id?: boolean
|
guild_id?: boolean
|
||||||
owner_id?: boolean
|
user_id?: boolean
|
||||||
guild?: boolean | Prisma.GuildDefaultArgs<ExtArgs>
|
guild?: boolean | Prisma.GuildDefaultArgs<ExtArgs>
|
||||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
user?: boolean | Prisma.ConsumerDefaultArgs<ExtArgs>
|
||||||
complexes?: boolean | Prisma.BusinessActivity$complexesArgs<ExtArgs>
|
complexes?: boolean | Prisma.BusinessActivity$complexesArgs<ExtArgs>
|
||||||
accounts?: boolean | Prisma.BusinessActivity$accountsArgs<ExtArgs>
|
permissionBusinesses?: boolean | Prisma.BusinessActivity$permissionBusinessesArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.BusinessActivityCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.BusinessActivityCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["businessActivity"]>
|
}, ExtArgs["result"]["businessActivity"]>
|
||||||
|
|
||||||
@@ -836,15 +829,15 @@ export type BusinessActivitySelectScalar = {
|
|||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
guild_id?: boolean
|
guild_id?: boolean
|
||||||
owner_id?: boolean
|
user_id?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BusinessActivityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "created_at" | "updated_at" | "guild_id" | "owner_id", ExtArgs["result"]["businessActivity"]>
|
export type BusinessActivityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "created_at" | "updated_at" | "guild_id" | "user_id", ExtArgs["result"]["businessActivity"]>
|
||||||
export type BusinessActivityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type BusinessActivityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
guild?: boolean | Prisma.GuildDefaultArgs<ExtArgs>
|
guild?: boolean | Prisma.GuildDefaultArgs<ExtArgs>
|
||||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
user?: boolean | Prisma.ConsumerDefaultArgs<ExtArgs>
|
||||||
complexes?: boolean | Prisma.BusinessActivity$complexesArgs<ExtArgs>
|
complexes?: boolean | Prisma.BusinessActivity$complexesArgs<ExtArgs>
|
||||||
accounts?: boolean | Prisma.BusinessActivity$accountsArgs<ExtArgs>
|
permissionBusinesses?: boolean | Prisma.BusinessActivity$permissionBusinessesArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.BusinessActivityCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.BusinessActivityCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -852,9 +845,9 @@ export type $BusinessActivityPayload<ExtArgs extends runtime.Types.Extensions.In
|
|||||||
name: "BusinessActivity"
|
name: "BusinessActivity"
|
||||||
objects: {
|
objects: {
|
||||||
guild: Prisma.$GuildPayload<ExtArgs>
|
guild: Prisma.$GuildPayload<ExtArgs>
|
||||||
user: Prisma.$UserPayload<ExtArgs>
|
user: Prisma.$ConsumerPayload<ExtArgs>
|
||||||
complexes: Prisma.$ComplexPayload<ExtArgs>[]
|
complexes: Prisma.$ComplexPayload<ExtArgs>[]
|
||||||
accounts: Prisma.$AccountPayload<ExtArgs>[]
|
permissionBusinesses: Prisma.$PermissionBusinessPayload<ExtArgs>[]
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
@@ -862,7 +855,7 @@ export type $BusinessActivityPayload<ExtArgs extends runtime.Types.Extensions.In
|
|||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
guild_id: string
|
guild_id: string
|
||||||
owner_id: string
|
user_id: string
|
||||||
}, ExtArgs["result"]["businessActivity"]>
|
}, ExtArgs["result"]["businessActivity"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
}
|
}
|
||||||
@@ -1204,9 +1197,9 @@ readonly fields: BusinessActivityFieldRefs;
|
|||||||
export interface Prisma__BusinessActivityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
export interface Prisma__BusinessActivityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
guild<T extends Prisma.GuildDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.GuildDefaultArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
guild<T extends Prisma.GuildDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.GuildDefaultArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||||
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
user<T extends Prisma.ConsumerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerDefaultArgs<ExtArgs>>): Prisma.Prisma__ConsumerClient<runtime.Types.Result.GetResult<Prisma.$ConsumerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||||
complexes<T extends Prisma.BusinessActivity$complexesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BusinessActivity$complexesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
complexes<T extends Prisma.BusinessActivity$complexesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BusinessActivity$complexesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
accounts<T extends Prisma.BusinessActivity$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BusinessActivity$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
permissionBusinesses<T extends Prisma.BusinessActivity$permissionBusinessesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BusinessActivity$permissionBusinessesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionBusinessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
@@ -1241,7 +1234,7 @@ export interface BusinessActivityFieldRefs {
|
|||||||
readonly created_at: Prisma.FieldRef<"BusinessActivity", 'DateTime'>
|
readonly created_at: Prisma.FieldRef<"BusinessActivity", 'DateTime'>
|
||||||
readonly updated_at: Prisma.FieldRef<"BusinessActivity", 'DateTime'>
|
readonly updated_at: Prisma.FieldRef<"BusinessActivity", 'DateTime'>
|
||||||
readonly guild_id: Prisma.FieldRef<"BusinessActivity", 'String'>
|
readonly guild_id: Prisma.FieldRef<"BusinessActivity", 'String'>
|
||||||
readonly owner_id: Prisma.FieldRef<"BusinessActivity", 'String'>
|
readonly user_id: Prisma.FieldRef<"BusinessActivity", 'String'>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1609,27 +1602,27 @@ export type BusinessActivity$complexesArgs<ExtArgs extends runtime.Types.Extensi
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BusinessActivity.accounts
|
* BusinessActivity.permissionBusinesses
|
||||||
*/
|
*/
|
||||||
export type BusinessActivity$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type BusinessActivity$permissionBusinessesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
/**
|
/**
|
||||||
* Select specific fields to fetch from the Account
|
* Select specific fields to fetch from the PermissionBusiness
|
||||||
*/
|
*/
|
||||||
select?: Prisma.AccountSelect<ExtArgs> | null
|
select?: Prisma.PermissionBusinessSelect<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Omit specific fields from the Account
|
* Omit specific fields from the PermissionBusiness
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.AccountOmit<ExtArgs> | null
|
omit?: Prisma.PermissionBusinessOmit<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Choose, which related nodes to fetch as well
|
* Choose, which related nodes to fetch as well
|
||||||
*/
|
*/
|
||||||
include?: Prisma.AccountInclude<ExtArgs> | null
|
include?: Prisma.PermissionBusinessInclude<ExtArgs> | null
|
||||||
where?: Prisma.AccountWhereInput
|
where?: Prisma.PermissionBusinessWhereInput
|
||||||
orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
|
orderBy?: Prisma.PermissionBusinessOrderByWithRelationInput | Prisma.PermissionBusinessOrderByWithRelationInput[]
|
||||||
cursor?: Prisma.AccountWhereUniqueInput
|
cursor?: Prisma.PermissionBusinessWhereUniqueInput
|
||||||
take?: number
|
take?: number
|
||||||
skip?: number
|
skip?: number
|
||||||
distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
|
distinct?: Prisma.PermissionBusinessScalarFieldEnum | Prisma.PermissionBusinessScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ export type ComplexWhereInput = {
|
|||||||
pos_list?: Prisma.PosListRelationFilter
|
pos_list?: Prisma.PosListRelationFilter
|
||||||
goods?: Prisma.GoodListRelationFilter
|
goods?: Prisma.GoodListRelationFilter
|
||||||
good_categories?: Prisma.GoodCategoryListRelationFilter
|
good_categories?: Prisma.GoodCategoryListRelationFilter
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexListRelationFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexOrderByWithRelationInput = {
|
export type ComplexOrderByWithRelationInput = {
|
||||||
@@ -216,6 +217,7 @@ export type ComplexOrderByWithRelationInput = {
|
|||||||
pos_list?: Prisma.PosOrderByRelationAggregateInput
|
pos_list?: Prisma.PosOrderByRelationAggregateInput
|
||||||
goods?: Prisma.GoodOrderByRelationAggregateInput
|
goods?: Prisma.GoodOrderByRelationAggregateInput
|
||||||
good_categories?: Prisma.GoodCategoryOrderByRelationAggregateInput
|
good_categories?: Prisma.GoodCategoryOrderByRelationAggregateInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.ComplexOrderByRelevanceInput
|
_relevance?: Prisma.ComplexOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,6 +236,7 @@ export type ComplexWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
pos_list?: Prisma.PosListRelationFilter
|
pos_list?: Prisma.PosListRelationFilter
|
||||||
goods?: Prisma.GoodListRelationFilter
|
goods?: Prisma.GoodListRelationFilter
|
||||||
good_categories?: Prisma.GoodCategoryListRelationFilter
|
good_categories?: Prisma.GoodCategoryListRelationFilter
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexListRelationFilter
|
||||||
}, "id">
|
}, "id">
|
||||||
|
|
||||||
export type ComplexOrderByWithAggregationInput = {
|
export type ComplexOrderByWithAggregationInput = {
|
||||||
@@ -273,6 +276,7 @@ export type ComplexCreateInput = {
|
|||||||
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
||||||
goods?: Prisma.GoodCreateNestedManyWithoutComplexInput
|
goods?: Prisma.GoodCreateNestedManyWithoutComplexInput
|
||||||
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexCreateNestedManyWithoutComplexInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedCreateInput = {
|
export type ComplexUncheckedCreateInput = {
|
||||||
@@ -286,6 +290,7 @@ export type ComplexUncheckedCreateInput = {
|
|||||||
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
||||||
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput
|
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutComplexInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUpdateInput = {
|
export type ComplexUpdateInput = {
|
||||||
@@ -299,6 +304,7 @@ export type ComplexUpdateInput = {
|
|||||||
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
||||||
goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput
|
goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput
|
||||||
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedUpdateInput = {
|
export type ComplexUncheckedUpdateInput = {
|
||||||
@@ -312,6 +318,7 @@ export type ComplexUncheckedUpdateInput = {
|
|||||||
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput
|
goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCreateManyInput = {
|
export type ComplexCreateManyInput = {
|
||||||
@@ -455,6 +462,20 @@ export type ComplexUpdateOneRequiredWithoutPos_listNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutPos_listInput, Prisma.ComplexUpdateWithoutPos_listInput>, Prisma.ComplexUncheckedUpdateWithoutPos_listInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutPos_listInput, Prisma.ComplexUpdateWithoutPos_listInput>, Prisma.ComplexUncheckedUpdateWithoutPos_listInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ComplexCreateNestedOneWithoutPermissionComplexesInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.ComplexCreateWithoutPermissionComplexesInput, Prisma.ComplexUncheckedCreateWithoutPermissionComplexesInput>
|
||||||
|
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPermissionComplexesInput
|
||||||
|
connect?: Prisma.ComplexWhereUniqueInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUpdateOneRequiredWithoutPermissionComplexesNestedInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.ComplexCreateWithoutPermissionComplexesInput, Prisma.ComplexUncheckedCreateWithoutPermissionComplexesInput>
|
||||||
|
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutPermissionComplexesInput
|
||||||
|
upsert?: Prisma.ComplexUpsertWithoutPermissionComplexesInput
|
||||||
|
connect?: Prisma.ComplexWhereUniqueInput
|
||||||
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ComplexUpdateToOneWithWhereWithoutPermissionComplexesInput, Prisma.ComplexUpdateWithoutPermissionComplexesInput>, Prisma.ComplexUncheckedUpdateWithoutPermissionComplexesInput>
|
||||||
|
}
|
||||||
|
|
||||||
export type ComplexCreateNestedOneWithoutGoodsInput = {
|
export type ComplexCreateNestedOneWithoutGoodsInput = {
|
||||||
create?: Prisma.XOR<Prisma.ComplexCreateWithoutGoodsInput, Prisma.ComplexUncheckedCreateWithoutGoodsInput>
|
create?: Prisma.XOR<Prisma.ComplexCreateWithoutGoodsInput, Prisma.ComplexUncheckedCreateWithoutGoodsInput>
|
||||||
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutGoodsInput
|
connectOrCreate?: Prisma.ComplexCreateOrConnectWithoutGoodsInput
|
||||||
@@ -497,6 +518,7 @@ export type ComplexCreateWithoutBusiness_activityInput = {
|
|||||||
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
||||||
goods?: Prisma.GoodCreateNestedManyWithoutComplexInput
|
goods?: Prisma.GoodCreateNestedManyWithoutComplexInput
|
||||||
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexCreateNestedManyWithoutComplexInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedCreateWithoutBusiness_activityInput = {
|
export type ComplexUncheckedCreateWithoutBusiness_activityInput = {
|
||||||
@@ -509,6 +531,7 @@ export type ComplexUncheckedCreateWithoutBusiness_activityInput = {
|
|||||||
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
||||||
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput
|
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutComplexInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCreateOrConnectWithoutBusiness_activityInput = {
|
export type ComplexCreateOrConnectWithoutBusiness_activityInput = {
|
||||||
@@ -560,6 +583,7 @@ export type ComplexCreateWithoutPos_listInput = {
|
|||||||
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput
|
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput
|
||||||
goods?: Prisma.GoodCreateNestedManyWithoutComplexInput
|
goods?: Prisma.GoodCreateNestedManyWithoutComplexInput
|
||||||
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexCreateNestedManyWithoutComplexInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedCreateWithoutPos_listInput = {
|
export type ComplexUncheckedCreateWithoutPos_listInput = {
|
||||||
@@ -572,6 +596,7 @@ export type ComplexUncheckedCreateWithoutPos_listInput = {
|
|||||||
business_activity_id: string
|
business_activity_id: string
|
||||||
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput
|
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutComplexInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCreateOrConnectWithoutPos_listInput = {
|
export type ComplexCreateOrConnectWithoutPos_listInput = {
|
||||||
@@ -600,6 +625,7 @@ export type ComplexUpdateWithoutPos_listInput = {
|
|||||||
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput
|
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput
|
||||||
goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput
|
goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput
|
||||||
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedUpdateWithoutPos_listInput = {
|
export type ComplexUncheckedUpdateWithoutPos_listInput = {
|
||||||
@@ -612,6 +638,75 @@ export type ComplexUncheckedUpdateWithoutPos_listInput = {
|
|||||||
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput
|
goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexCreateWithoutPermissionComplexesInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
address?: string | null
|
||||||
|
tax_id?: string | null
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput
|
||||||
|
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
||||||
|
goods?: Prisma.GoodCreateNestedManyWithoutComplexInput
|
||||||
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUncheckedCreateWithoutPermissionComplexesInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
address?: string | null
|
||||||
|
tax_id?: string | null
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
business_activity_id: string
|
||||||
|
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
||||||
|
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput
|
||||||
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexCreateOrConnectWithoutPermissionComplexesInput = {
|
||||||
|
where: Prisma.ComplexWhereUniqueInput
|
||||||
|
create: Prisma.XOR<Prisma.ComplexCreateWithoutPermissionComplexesInput, Prisma.ComplexUncheckedCreateWithoutPermissionComplexesInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUpsertWithoutPermissionComplexesInput = {
|
||||||
|
update: Prisma.XOR<Prisma.ComplexUpdateWithoutPermissionComplexesInput, Prisma.ComplexUncheckedUpdateWithoutPermissionComplexesInput>
|
||||||
|
create: Prisma.XOR<Prisma.ComplexCreateWithoutPermissionComplexesInput, Prisma.ComplexUncheckedCreateWithoutPermissionComplexesInput>
|
||||||
|
where?: Prisma.ComplexWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUpdateToOneWithWhereWithoutPermissionComplexesInput = {
|
||||||
|
where?: Prisma.ComplexWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.ComplexUpdateWithoutPermissionComplexesInput, Prisma.ComplexUncheckedUpdateWithoutPermissionComplexesInput>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUpdateWithoutPermissionComplexesInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput
|
||||||
|
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
||||||
|
goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput
|
||||||
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComplexUncheckedUpdateWithoutPermissionComplexesInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
tax_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
|
goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCreateWithoutGoodsInput = {
|
export type ComplexCreateWithoutGoodsInput = {
|
||||||
@@ -624,6 +719,7 @@ export type ComplexCreateWithoutGoodsInput = {
|
|||||||
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput
|
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput
|
||||||
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
||||||
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutComplexInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexCreateNestedManyWithoutComplexInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedCreateWithoutGoodsInput = {
|
export type ComplexUncheckedCreateWithoutGoodsInput = {
|
||||||
@@ -636,6 +732,7 @@ export type ComplexUncheckedCreateWithoutGoodsInput = {
|
|||||||
business_activity_id: string
|
business_activity_id: string
|
||||||
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutComplexInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutComplexInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCreateOrConnectWithoutGoodsInput = {
|
export type ComplexCreateOrConnectWithoutGoodsInput = {
|
||||||
@@ -664,6 +761,7 @@ export type ComplexUpdateWithoutGoodsInput = {
|
|||||||
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput
|
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput
|
||||||
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
||||||
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedUpdateWithoutGoodsInput = {
|
export type ComplexUncheckedUpdateWithoutGoodsInput = {
|
||||||
@@ -676,6 +774,7 @@ export type ComplexUncheckedUpdateWithoutGoodsInput = {
|
|||||||
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCreateWithoutGood_categoriesInput = {
|
export type ComplexCreateWithoutGood_categoriesInput = {
|
||||||
@@ -688,6 +787,7 @@ export type ComplexCreateWithoutGood_categoriesInput = {
|
|||||||
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput
|
business_activity: Prisma.BusinessActivityCreateNestedOneWithoutComplexesInput
|
||||||
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
pos_list?: Prisma.PosCreateNestedManyWithoutComplexInput
|
||||||
goods?: Prisma.GoodCreateNestedManyWithoutComplexInput
|
goods?: Prisma.GoodCreateNestedManyWithoutComplexInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexCreateNestedManyWithoutComplexInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedCreateWithoutGood_categoriesInput = {
|
export type ComplexUncheckedCreateWithoutGood_categoriesInput = {
|
||||||
@@ -700,6 +800,7 @@ export type ComplexUncheckedCreateWithoutGood_categoriesInput = {
|
|||||||
business_activity_id: string
|
business_activity_id: string
|
||||||
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutComplexInput
|
||||||
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput
|
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutComplexInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUncheckedCreateNestedManyWithoutComplexInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCreateOrConnectWithoutGood_categoriesInput = {
|
export type ComplexCreateOrConnectWithoutGood_categoriesInput = {
|
||||||
@@ -728,6 +829,7 @@ export type ComplexUpdateWithoutGood_categoriesInput = {
|
|||||||
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput
|
business_activity?: Prisma.BusinessActivityUpdateOneRequiredWithoutComplexesNestedInput
|
||||||
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
||||||
goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput
|
goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedUpdateWithoutGood_categoriesInput = {
|
export type ComplexUncheckedUpdateWithoutGood_categoriesInput = {
|
||||||
@@ -740,6 +842,7 @@ export type ComplexUncheckedUpdateWithoutGood_categoriesInput = {
|
|||||||
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
business_activity_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput
|
goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCreateManyBusiness_activityInput = {
|
export type ComplexCreateManyBusiness_activityInput = {
|
||||||
@@ -761,6 +864,7 @@ export type ComplexUpdateWithoutBusiness_activityInput = {
|
|||||||
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
pos_list?: Prisma.PosUpdateManyWithoutComplexNestedInput
|
||||||
goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput
|
goods?: Prisma.GoodUpdateManyWithoutComplexNestedInput
|
||||||
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutComplexNestedInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedUpdateWithoutBusiness_activityInput = {
|
export type ComplexUncheckedUpdateWithoutBusiness_activityInput = {
|
||||||
@@ -773,6 +877,7 @@ export type ComplexUncheckedUpdateWithoutBusiness_activityInput = {
|
|||||||
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
pos_list?: Prisma.PosUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput
|
goods?: Prisma.GoodUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
|
permissionComplexes?: Prisma.PermissionComplexUncheckedUpdateManyWithoutComplexNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexUncheckedUpdateManyWithoutBusiness_activityInput = {
|
export type ComplexUncheckedUpdateManyWithoutBusiness_activityInput = {
|
||||||
@@ -793,12 +898,14 @@ export type ComplexCountOutputType = {
|
|||||||
pos_list: number
|
pos_list: number
|
||||||
goods: number
|
goods: number
|
||||||
good_categories: number
|
good_categories: number
|
||||||
|
permissionComplexes: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComplexCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type ComplexCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
pos_list?: boolean | ComplexCountOutputTypeCountPos_listArgs
|
pos_list?: boolean | ComplexCountOutputTypeCountPos_listArgs
|
||||||
goods?: boolean | ComplexCountOutputTypeCountGoodsArgs
|
goods?: boolean | ComplexCountOutputTypeCountGoodsArgs
|
||||||
good_categories?: boolean | ComplexCountOutputTypeCountGood_categoriesArgs
|
good_categories?: boolean | ComplexCountOutputTypeCountGood_categoriesArgs
|
||||||
|
permissionComplexes?: boolean | ComplexCountOutputTypeCountPermissionComplexesArgs
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -832,6 +939,13 @@ export type ComplexCountOutputTypeCountGood_categoriesArgs<ExtArgs extends runti
|
|||||||
where?: Prisma.GoodCategoryWhereInput
|
where?: Prisma.GoodCategoryWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ComplexCountOutputType without action
|
||||||
|
*/
|
||||||
|
export type ComplexCountOutputTypeCountPermissionComplexesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
where?: Prisma.PermissionComplexWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
export type ComplexSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type ComplexSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -845,6 +959,7 @@ export type ComplexSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
pos_list?: boolean | Prisma.Complex$pos_listArgs<ExtArgs>
|
pos_list?: boolean | Prisma.Complex$pos_listArgs<ExtArgs>
|
||||||
goods?: boolean | Prisma.Complex$goodsArgs<ExtArgs>
|
goods?: boolean | Prisma.Complex$goodsArgs<ExtArgs>
|
||||||
good_categories?: boolean | Prisma.Complex$good_categoriesArgs<ExtArgs>
|
good_categories?: boolean | Prisma.Complex$good_categoriesArgs<ExtArgs>
|
||||||
|
permissionComplexes?: boolean | Prisma.Complex$permissionComplexesArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.ComplexCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.ComplexCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["complex"]>
|
}, ExtArgs["result"]["complex"]>
|
||||||
|
|
||||||
@@ -866,6 +981,7 @@ export type ComplexInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
pos_list?: boolean | Prisma.Complex$pos_listArgs<ExtArgs>
|
pos_list?: boolean | Prisma.Complex$pos_listArgs<ExtArgs>
|
||||||
goods?: boolean | Prisma.Complex$goodsArgs<ExtArgs>
|
goods?: boolean | Prisma.Complex$goodsArgs<ExtArgs>
|
||||||
good_categories?: boolean | Prisma.Complex$good_categoriesArgs<ExtArgs>
|
good_categories?: boolean | Prisma.Complex$good_categoriesArgs<ExtArgs>
|
||||||
|
permissionComplexes?: boolean | Prisma.Complex$permissionComplexesArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.ComplexCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.ComplexCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -876,6 +992,7 @@ export type $ComplexPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|||||||
pos_list: Prisma.$PosPayload<ExtArgs>[]
|
pos_list: Prisma.$PosPayload<ExtArgs>[]
|
||||||
goods: Prisma.$GoodPayload<ExtArgs>[]
|
goods: Prisma.$GoodPayload<ExtArgs>[]
|
||||||
good_categories: Prisma.$GoodCategoryPayload<ExtArgs>[]
|
good_categories: Prisma.$GoodCategoryPayload<ExtArgs>[]
|
||||||
|
permissionComplexes: Prisma.$PermissionComplexPayload<ExtArgs>[]
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
@@ -1229,6 +1346,7 @@ export interface Prisma__ComplexClient<T, Null = never, ExtArgs extends runtime.
|
|||||||
pos_list<T extends Prisma.Complex$pos_listArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$pos_listArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PosPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
pos_list<T extends Prisma.Complex$pos_listArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$pos_listArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PosPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
goods<T extends Prisma.Complex$goodsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$goodsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
goods<T extends Prisma.Complex$goodsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$goodsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
good_categories<T extends Prisma.Complex$good_categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$good_categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
good_categories<T extends Prisma.Complex$good_categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$good_categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
|
permissionComplexes<T extends Prisma.Complex$permissionComplexesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Complex$permissionComplexesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionComplexPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
@@ -1679,6 +1797,30 @@ export type Complex$good_categoriesArgs<ExtArgs extends runtime.Types.Extensions
|
|||||||
distinct?: Prisma.GoodCategoryScalarFieldEnum | Prisma.GoodCategoryScalarFieldEnum[]
|
distinct?: Prisma.GoodCategoryScalarFieldEnum | Prisma.GoodCategoryScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Complex.permissionComplexes
|
||||||
|
*/
|
||||||
|
export type Complex$permissionComplexesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the PermissionComplex
|
||||||
|
*/
|
||||||
|
select?: Prisma.PermissionComplexSelect<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the PermissionComplex
|
||||||
|
*/
|
||||||
|
omit?: Prisma.PermissionComplexOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.PermissionComplexInclude<ExtArgs> | null
|
||||||
|
where?: Prisma.PermissionComplexWhereInput
|
||||||
|
orderBy?: Prisma.PermissionComplexOrderByWithRelationInput | Prisma.PermissionComplexOrderByWithRelationInput[]
|
||||||
|
cursor?: Prisma.PermissionComplexWhereUniqueInput
|
||||||
|
take?: number
|
||||||
|
skip?: number
|
||||||
|
distinct?: Prisma.PermissionComplexScalarFieldEnum | Prisma.PermissionComplexScalarFieldEnum[]
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Complex without action
|
* Complex without action
|
||||||
*/
|
*/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -50,7 +50,6 @@ export type GoodMinAggregateOutputType = {
|
|||||||
deleted_at: Date | null
|
deleted_at: Date | null
|
||||||
complex_id: string | null
|
complex_id: string | null
|
||||||
category_id: string | null
|
category_id: string | null
|
||||||
guild_id: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodMaxAggregateOutputType = {
|
export type GoodMaxAggregateOutputType = {
|
||||||
@@ -69,7 +68,6 @@ export type GoodMaxAggregateOutputType = {
|
|||||||
deleted_at: Date | null
|
deleted_at: Date | null
|
||||||
complex_id: string | null
|
complex_id: string | null
|
||||||
category_id: string | null
|
category_id: string | null
|
||||||
guild_id: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCountAggregateOutputType = {
|
export type GoodCountAggregateOutputType = {
|
||||||
@@ -88,7 +86,6 @@ export type GoodCountAggregateOutputType = {
|
|||||||
deleted_at: number
|
deleted_at: number
|
||||||
complex_id: number
|
complex_id: number
|
||||||
category_id: number
|
category_id: number
|
||||||
guild_id: number
|
|
||||||
_all: number
|
_all: number
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,7 +114,6 @@ export type GoodMinAggregateInputType = {
|
|||||||
deleted_at?: true
|
deleted_at?: true
|
||||||
complex_id?: true
|
complex_id?: true
|
||||||
category_id?: true
|
category_id?: true
|
||||||
guild_id?: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodMaxAggregateInputType = {
|
export type GoodMaxAggregateInputType = {
|
||||||
@@ -136,7 +132,6 @@ export type GoodMaxAggregateInputType = {
|
|||||||
deleted_at?: true
|
deleted_at?: true
|
||||||
complex_id?: true
|
complex_id?: true
|
||||||
category_id?: true
|
category_id?: true
|
||||||
guild_id?: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCountAggregateInputType = {
|
export type GoodCountAggregateInputType = {
|
||||||
@@ -155,7 +150,6 @@ export type GoodCountAggregateInputType = {
|
|||||||
deleted_at?: true
|
deleted_at?: true
|
||||||
complex_id?: true
|
complex_id?: true
|
||||||
category_id?: true
|
category_id?: true
|
||||||
guild_id?: true
|
|
||||||
_all?: true
|
_all?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -261,7 +255,6 @@ export type GoodGroupByOutputType = {
|
|||||||
deleted_at: Date | null
|
deleted_at: Date | null
|
||||||
complex_id: string | null
|
complex_id: string | null
|
||||||
category_id: string | null
|
category_id: string | null
|
||||||
guild_id: string | null
|
|
||||||
_count: GoodCountAggregateOutputType | null
|
_count: GoodCountAggregateOutputType | null
|
||||||
_avg: GoodAvgAggregateOutputType | null
|
_avg: GoodAvgAggregateOutputType | null
|
||||||
_sum: GoodSumAggregateOutputType | null
|
_sum: GoodSumAggregateOutputType | null
|
||||||
@@ -303,10 +296,8 @@ export type GoodWhereInput = {
|
|||||||
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
|
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
|
||||||
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
||||||
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
||||||
guild_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
|
||||||
category?: Prisma.XOR<Prisma.GoodCategoryNullableScalarRelationFilter, Prisma.GoodCategoryWhereInput> | null
|
category?: Prisma.XOR<Prisma.GoodCategoryNullableScalarRelationFilter, Prisma.GoodCategoryWhereInput> | null
|
||||||
complex?: Prisma.XOR<Prisma.ComplexNullableScalarRelationFilter, Prisma.ComplexWhereInput> | null
|
complex?: Prisma.XOR<Prisma.ComplexNullableScalarRelationFilter, Prisma.ComplexWhereInput> | null
|
||||||
guild?: Prisma.XOR<Prisma.GuildNullableScalarRelationFilter, Prisma.GuildWhereInput> | null
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter
|
sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,10 +317,8 @@ export type GoodOrderByWithRelationInput = {
|
|||||||
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
complex_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
complex_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
category_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
category_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
guild_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
category?: Prisma.GoodCategoryOrderByWithRelationInput
|
category?: Prisma.GoodCategoryOrderByWithRelationInput
|
||||||
complex?: Prisma.ComplexOrderByWithRelationInput
|
complex?: Prisma.ComplexOrderByWithRelationInput
|
||||||
guild?: Prisma.GuildOrderByWithRelationInput
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.GoodOrderByRelevanceInput
|
_relevance?: Prisma.GoodOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
@@ -353,10 +342,8 @@ export type GoodWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
|
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
|
||||||
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
||||||
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
||||||
guild_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
|
||||||
category?: Prisma.XOR<Prisma.GoodCategoryNullableScalarRelationFilter, Prisma.GoodCategoryWhereInput> | null
|
category?: Prisma.XOR<Prisma.GoodCategoryNullableScalarRelationFilter, Prisma.GoodCategoryWhereInput> | null
|
||||||
complex?: Prisma.XOR<Prisma.ComplexNullableScalarRelationFilter, Prisma.ComplexWhereInput> | null
|
complex?: Prisma.XOR<Prisma.ComplexNullableScalarRelationFilter, Prisma.ComplexWhereInput> | null
|
||||||
guild?: Prisma.XOR<Prisma.GuildNullableScalarRelationFilter, Prisma.GuildWhereInput> | null
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter
|
sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter
|
||||||
}, "id" | "local_sku" | "barcode">
|
}, "id" | "local_sku" | "barcode">
|
||||||
|
|
||||||
@@ -376,7 +363,6 @@ export type GoodOrderByWithAggregationInput = {
|
|||||||
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
complex_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
complex_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
category_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
category_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
guild_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
_count?: Prisma.GoodCountOrderByAggregateInput
|
_count?: Prisma.GoodCountOrderByAggregateInput
|
||||||
_avg?: Prisma.GoodAvgOrderByAggregateInput
|
_avg?: Prisma.GoodAvgOrderByAggregateInput
|
||||||
_max?: Prisma.GoodMaxOrderByAggregateInput
|
_max?: Prisma.GoodMaxOrderByAggregateInput
|
||||||
@@ -403,7 +389,6 @@ export type GoodScalarWhereWithAggregatesInput = {
|
|||||||
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Good"> | Date | string | null
|
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Good"> | Date | string | null
|
||||||
complex_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
complex_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
||||||
category_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
category_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
||||||
guild_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCreateInput = {
|
export type GoodCreateInput = {
|
||||||
@@ -422,7 +407,6 @@ export type GoodCreateInput = {
|
|||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
|
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
|
||||||
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
|
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
|
||||||
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -442,7 +426,6 @@ export type GoodUncheckedCreateInput = {
|
|||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
complex_id?: string | null
|
complex_id?: string | null
|
||||||
category_id?: string | null
|
category_id?: string | null
|
||||||
guild_id?: string | null
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -462,7 +445,6 @@ export type GoodUpdateInput = {
|
|||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
|
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
|
||||||
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
||||||
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -482,7 +464,6 @@ export type GoodUncheckedUpdateInput = {
|
|||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -502,7 +483,6 @@ export type GoodCreateManyInput = {
|
|||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
complex_id?: string | null
|
complex_id?: string | null
|
||||||
category_id?: string | null
|
category_id?: string | null
|
||||||
guild_id?: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodUpdateManyMutationInput = {
|
export type GoodUpdateManyMutationInput = {
|
||||||
@@ -537,7 +517,6 @@ export type GoodUncheckedUpdateManyInput = {
|
|||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodListRelationFilter = {
|
export type GoodListRelationFilter = {
|
||||||
@@ -572,7 +551,6 @@ export type GoodCountOrderByAggregateInput = {
|
|||||||
deleted_at?: Prisma.SortOrder
|
deleted_at?: Prisma.SortOrder
|
||||||
complex_id?: Prisma.SortOrder
|
complex_id?: Prisma.SortOrder
|
||||||
category_id?: Prisma.SortOrder
|
category_id?: Prisma.SortOrder
|
||||||
guild_id?: Prisma.SortOrder
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodAvgOrderByAggregateInput = {
|
export type GoodAvgOrderByAggregateInput = {
|
||||||
@@ -595,7 +573,6 @@ export type GoodMaxOrderByAggregateInput = {
|
|||||||
deleted_at?: Prisma.SortOrder
|
deleted_at?: Prisma.SortOrder
|
||||||
complex_id?: Prisma.SortOrder
|
complex_id?: Prisma.SortOrder
|
||||||
category_id?: Prisma.SortOrder
|
category_id?: Prisma.SortOrder
|
||||||
guild_id?: Prisma.SortOrder
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodMinOrderByAggregateInput = {
|
export type GoodMinOrderByAggregateInput = {
|
||||||
@@ -614,7 +591,6 @@ export type GoodMinOrderByAggregateInput = {
|
|||||||
deleted_at?: Prisma.SortOrder
|
deleted_at?: Prisma.SortOrder
|
||||||
complex_id?: Prisma.SortOrder
|
complex_id?: Prisma.SortOrder
|
||||||
category_id?: Prisma.SortOrder
|
category_id?: Prisma.SortOrder
|
||||||
guild_id?: Prisma.SortOrder
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodSumOrderByAggregateInput = {
|
export type GoodSumOrderByAggregateInput = {
|
||||||
@@ -626,48 +602,6 @@ export type GoodNullableScalarRelationFilter = {
|
|||||||
isNot?: Prisma.GoodWhereInput | null
|
isNot?: Prisma.GoodWhereInput | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCreateNestedManyWithoutGuildInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
|
|
||||||
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodUncheckedCreateNestedManyWithoutGuildInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
|
|
||||||
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodUpdateManyWithoutGuildNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
|
|
||||||
upsert?: Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput | Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
|
|
||||||
set?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
||||||
delete?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
||||||
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
||||||
update?: Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput | Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput[]
|
|
||||||
updateMany?: Prisma.GoodUpdateManyWithWhereWithoutGuildInput | Prisma.GoodUpdateManyWithWhereWithoutGuildInput[]
|
|
||||||
deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodUncheckedUpdateManyWithoutGuildNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
|
|
||||||
upsert?: Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput | Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
|
|
||||||
set?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
||||||
delete?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
||||||
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
||||||
update?: Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput | Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput[]
|
|
||||||
updateMany?: Prisma.GoodUpdateManyWithWhereWithoutGuildInput | Prisma.GoodUpdateManyWithWhereWithoutGuildInput[]
|
|
||||||
deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCreateNestedManyWithoutComplexInput = {
|
export type GoodCreateNestedManyWithoutComplexInput = {
|
||||||
create?: Prisma.XOR<Prisma.GoodCreateWithoutComplexInput, Prisma.GoodUncheckedCreateWithoutComplexInput> | Prisma.GoodCreateWithoutComplexInput[] | Prisma.GoodUncheckedCreateWithoutComplexInput[]
|
create?: Prisma.XOR<Prisma.GoodCreateWithoutComplexInput, Prisma.GoodUncheckedCreateWithoutComplexInput> | Prisma.GoodCreateWithoutComplexInput[] | Prisma.GoodUncheckedCreateWithoutComplexInput[]
|
||||||
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutComplexInput | Prisma.GoodCreateOrConnectWithoutComplexInput[]
|
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutComplexInput | Prisma.GoodCreateOrConnectWithoutComplexInput[]
|
||||||
@@ -710,6 +644,10 @@ export type GoodUncheckedUpdateManyWithoutComplexNestedInput = {
|
|||||||
deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type BoolFieldUpdateOperationsInput = {
|
||||||
|
set?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
export type EnumUnitTypeFieldUpdateOperationsInput = {
|
export type EnumUnitTypeFieldUpdateOperationsInput = {
|
||||||
set?: $Enums.UnitType
|
set?: $Enums.UnitType
|
||||||
}
|
}
|
||||||
@@ -784,92 +722,6 @@ export type GoodUpdateOneWithoutSales_invoice_itemsNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.GoodUpdateToOneWithWhereWithoutSales_invoice_itemsInput, Prisma.GoodUpdateWithoutSales_invoice_itemsInput>, Prisma.GoodUncheckedUpdateWithoutSales_invoice_itemsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.GoodUpdateToOneWithWhereWithoutSales_invoice_itemsInput, Prisma.GoodUpdateWithoutSales_invoice_itemsInput>, Prisma.GoodUncheckedUpdateWithoutSales_invoice_itemsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCreateWithoutGuildInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
is_default_guild_good?: boolean
|
|
||||||
sku: string
|
|
||||||
unit_type: $Enums.UnitType
|
|
||||||
pricing_model: $Enums.GoodPricingModel
|
|
||||||
description?: string | null
|
|
||||||
local_sku?: string | null
|
|
||||||
barcode?: string | null
|
|
||||||
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
deleted_at?: Date | string | null
|
|
||||||
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
|
|
||||||
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodUncheckedCreateWithoutGuildInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
is_default_guild_good?: boolean
|
|
||||||
sku: string
|
|
||||||
unit_type: $Enums.UnitType
|
|
||||||
pricing_model: $Enums.GoodPricingModel
|
|
||||||
description?: string | null
|
|
||||||
local_sku?: string | null
|
|
||||||
barcode?: string | null
|
|
||||||
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
deleted_at?: Date | string | null
|
|
||||||
complex_id?: string | null
|
|
||||||
category_id?: string | null
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCreateOrConnectWithoutGuildInput = {
|
|
||||||
where: Prisma.GoodWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCreateManyGuildInputEnvelope = {
|
|
||||||
data: Prisma.GoodCreateManyGuildInput | Prisma.GoodCreateManyGuildInput[]
|
|
||||||
skipDuplicates?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodUpsertWithWhereUniqueWithoutGuildInput = {
|
|
||||||
where: Prisma.GoodWhereUniqueInput
|
|
||||||
update: Prisma.XOR<Prisma.GoodUpdateWithoutGuildInput, Prisma.GoodUncheckedUpdateWithoutGuildInput>
|
|
||||||
create: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodUpdateWithWhereUniqueWithoutGuildInput = {
|
|
||||||
where: Prisma.GoodWhereUniqueInput
|
|
||||||
data: Prisma.XOR<Prisma.GoodUpdateWithoutGuildInput, Prisma.GoodUncheckedUpdateWithoutGuildInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodUpdateManyWithWhereWithoutGuildInput = {
|
|
||||||
where: Prisma.GoodScalarWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.GoodUpdateManyMutationInput, Prisma.GoodUncheckedUpdateManyWithoutGuildInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodScalarWhereInput = {
|
|
||||||
AND?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
|
||||||
OR?: Prisma.GoodScalarWhereInput[]
|
|
||||||
NOT?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
|
||||||
id?: Prisma.StringFilter<"Good"> | string
|
|
||||||
name?: Prisma.StringFilter<"Good"> | string
|
|
||||||
is_default_guild_good?: Prisma.BoolFilter<"Good"> | boolean
|
|
||||||
sku?: Prisma.StringFilter<"Good"> | string
|
|
||||||
unit_type?: Prisma.EnumUnitTypeFilter<"Good"> | $Enums.UnitType
|
|
||||||
pricing_model?: Prisma.EnumGoodPricingModelFilter<"Good"> | $Enums.GoodPricingModel
|
|
||||||
description?: Prisma.StringNullableFilter<"Good"> | string | null
|
|
||||||
local_sku?: Prisma.StringNullableFilter<"Good"> | string | null
|
|
||||||
barcode?: Prisma.StringNullableFilter<"Good"> | string | null
|
|
||||||
base_sale_price?: Prisma.DecimalNullableFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
created_at?: Prisma.DateTimeFilter<"Good"> | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFilter<"Good"> | Date | string
|
|
||||||
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
|
|
||||||
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
|
||||||
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
|
||||||
guild_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCreateWithoutComplexInput = {
|
export type GoodCreateWithoutComplexInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
@@ -885,7 +737,6 @@ export type GoodCreateWithoutComplexInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
|
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
|
||||||
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -904,7 +755,6 @@ export type GoodUncheckedCreateWithoutComplexInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
category_id?: string | null
|
category_id?: string | null
|
||||||
guild_id?: string | null
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -934,6 +784,27 @@ export type GoodUpdateManyWithWhereWithoutComplexInput = {
|
|||||||
data: Prisma.XOR<Prisma.GoodUpdateManyMutationInput, Prisma.GoodUncheckedUpdateManyWithoutComplexInput>
|
data: Prisma.XOR<Prisma.GoodUpdateManyMutationInput, Prisma.GoodUncheckedUpdateManyWithoutComplexInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type GoodScalarWhereInput = {
|
||||||
|
AND?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
||||||
|
OR?: Prisma.GoodScalarWhereInput[]
|
||||||
|
NOT?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
||||||
|
id?: Prisma.StringFilter<"Good"> | string
|
||||||
|
name?: Prisma.StringFilter<"Good"> | string
|
||||||
|
is_default_guild_good?: Prisma.BoolFilter<"Good"> | boolean
|
||||||
|
sku?: Prisma.StringFilter<"Good"> | string
|
||||||
|
unit_type?: Prisma.EnumUnitTypeFilter<"Good"> | $Enums.UnitType
|
||||||
|
pricing_model?: Prisma.EnumGoodPricingModelFilter<"Good"> | $Enums.GoodPricingModel
|
||||||
|
description?: Prisma.StringNullableFilter<"Good"> | string | null
|
||||||
|
local_sku?: Prisma.StringNullableFilter<"Good"> | string | null
|
||||||
|
barcode?: Prisma.StringNullableFilter<"Good"> | string | null
|
||||||
|
base_sale_price?: Prisma.DecimalNullableFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
||||||
|
created_at?: Prisma.DateTimeFilter<"Good"> | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFilter<"Good"> | Date | string
|
||||||
|
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
|
||||||
|
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
||||||
|
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
||||||
|
}
|
||||||
|
|
||||||
export type GoodCreateWithoutCategoryInput = {
|
export type GoodCreateWithoutCategoryInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
@@ -949,7 +820,6 @@ export type GoodCreateWithoutCategoryInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
|
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
|
||||||
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -968,7 +838,6 @@ export type GoodUncheckedCreateWithoutCategoryInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
complex_id?: string | null
|
complex_id?: string | null
|
||||||
guild_id?: string | null
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1014,7 +883,6 @@ export type GoodCreateWithoutSales_invoice_itemsInput = {
|
|||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
|
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
|
||||||
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
|
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
|
||||||
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodUncheckedCreateWithoutSales_invoice_itemsInput = {
|
export type GoodUncheckedCreateWithoutSales_invoice_itemsInput = {
|
||||||
@@ -1033,7 +901,6 @@ export type GoodUncheckedCreateWithoutSales_invoice_itemsInput = {
|
|||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
complex_id?: string | null
|
complex_id?: string | null
|
||||||
category_id?: string | null
|
category_id?: string | null
|
||||||
guild_id?: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCreateOrConnectWithoutSales_invoice_itemsInput = {
|
export type GoodCreateOrConnectWithoutSales_invoice_itemsInput = {
|
||||||
@@ -1068,7 +935,6 @@ export type GoodUpdateWithoutSales_invoice_itemsInput = {
|
|||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
|
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
|
||||||
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
||||||
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodUncheckedUpdateWithoutSales_invoice_itemsInput = {
|
export type GoodUncheckedUpdateWithoutSales_invoice_itemsInput = {
|
||||||
@@ -1087,81 +953,6 @@ export type GoodUncheckedUpdateWithoutSales_invoice_itemsInput = {
|
|||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCreateManyGuildInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
is_default_guild_good?: boolean
|
|
||||||
sku: string
|
|
||||||
unit_type: $Enums.UnitType
|
|
||||||
pricing_model: $Enums.GoodPricingModel
|
|
||||||
description?: string | null
|
|
||||||
local_sku?: string | null
|
|
||||||
barcode?: string | null
|
|
||||||
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
deleted_at?: Date | string | null
|
|
||||||
complex_id?: string | null
|
|
||||||
category_id?: string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodUpdateWithoutGuildInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
||||||
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
||||||
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
|
|
||||||
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodUncheckedUpdateWithoutGuildInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
||||||
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
||||||
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodUncheckedUpdateManyWithoutGuildInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
||||||
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
||||||
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCreateManyComplexInput = {
|
export type GoodCreateManyComplexInput = {
|
||||||
@@ -1179,7 +970,6 @@ export type GoodCreateManyComplexInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
category_id?: string | null
|
category_id?: string | null
|
||||||
guild_id?: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodUpdateWithoutComplexInput = {
|
export type GoodUpdateWithoutComplexInput = {
|
||||||
@@ -1197,7 +987,6 @@ export type GoodUpdateWithoutComplexInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
|
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
|
||||||
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1216,7 +1005,6 @@ export type GoodUncheckedUpdateWithoutComplexInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1235,7 +1023,6 @@ export type GoodUncheckedUpdateManyWithoutComplexInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCreateManyCategoryInput = {
|
export type GoodCreateManyCategoryInput = {
|
||||||
@@ -1253,7 +1040,6 @@ export type GoodCreateManyCategoryInput = {
|
|||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
complex_id?: string | null
|
complex_id?: string | null
|
||||||
guild_id?: string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodUpdateWithoutCategoryInput = {
|
export type GoodUpdateWithoutCategoryInput = {
|
||||||
@@ -1271,7 +1057,6 @@ export type GoodUpdateWithoutCategoryInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
||||||
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1290,7 +1075,6 @@ export type GoodUncheckedUpdateWithoutCategoryInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1309,7 +1093,6 @@ export type GoodUncheckedUpdateManyWithoutCategoryInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1359,10 +1142,8 @@ export type GoodSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
|||||||
deleted_at?: boolean
|
deleted_at?: boolean
|
||||||
complex_id?: boolean
|
complex_id?: boolean
|
||||||
category_id?: boolean
|
category_id?: boolean
|
||||||
guild_id?: boolean
|
|
||||||
category?: boolean | Prisma.Good$categoryArgs<ExtArgs>
|
category?: boolean | Prisma.Good$categoryArgs<ExtArgs>
|
||||||
complex?: boolean | Prisma.Good$complexArgs<ExtArgs>
|
complex?: boolean | Prisma.Good$complexArgs<ExtArgs>
|
||||||
guild?: boolean | Prisma.Good$guildArgs<ExtArgs>
|
|
||||||
sales_invoice_items?: boolean | Prisma.Good$sales_invoice_itemsArgs<ExtArgs>
|
sales_invoice_items?: boolean | Prisma.Good$sales_invoice_itemsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.GoodCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.GoodCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["good"]>
|
}, ExtArgs["result"]["good"]>
|
||||||
@@ -1385,14 +1166,12 @@ export type GoodSelectScalar = {
|
|||||||
deleted_at?: boolean
|
deleted_at?: boolean
|
||||||
complex_id?: boolean
|
complex_id?: boolean
|
||||||
category_id?: boolean
|
category_id?: boolean
|
||||||
guild_id?: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "is_default_guild_good" | "sku" | "unit_type" | "pricing_model" | "description" | "local_sku" | "barcode" | "base_sale_price" | "created_at" | "updated_at" | "deleted_at" | "complex_id" | "category_id" | "guild_id", ExtArgs["result"]["good"]>
|
export type GoodOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "is_default_guild_good" | "sku" | "unit_type" | "pricing_model" | "description" | "local_sku" | "barcode" | "base_sale_price" | "created_at" | "updated_at" | "deleted_at" | "complex_id" | "category_id", ExtArgs["result"]["good"]>
|
||||||
export type GoodInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type GoodInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
category?: boolean | Prisma.Good$categoryArgs<ExtArgs>
|
category?: boolean | Prisma.Good$categoryArgs<ExtArgs>
|
||||||
complex?: boolean | Prisma.Good$complexArgs<ExtArgs>
|
complex?: boolean | Prisma.Good$complexArgs<ExtArgs>
|
||||||
guild?: boolean | Prisma.Good$guildArgs<ExtArgs>
|
|
||||||
sales_invoice_items?: boolean | Prisma.Good$sales_invoice_itemsArgs<ExtArgs>
|
sales_invoice_items?: boolean | Prisma.Good$sales_invoice_itemsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.GoodCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.GoodCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
@@ -1402,7 +1181,6 @@ export type $GoodPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||||||
objects: {
|
objects: {
|
||||||
category: Prisma.$GoodCategoryPayload<ExtArgs> | null
|
category: Prisma.$GoodCategoryPayload<ExtArgs> | null
|
||||||
complex: Prisma.$ComplexPayload<ExtArgs> | null
|
complex: Prisma.$ComplexPayload<ExtArgs> | null
|
||||||
guild: Prisma.$GuildPayload<ExtArgs> | null
|
|
||||||
sales_invoice_items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
|
sales_invoice_items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
@@ -1421,7 +1199,6 @@ export type $GoodPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||||||
deleted_at: Date | null
|
deleted_at: Date | null
|
||||||
complex_id: string | null
|
complex_id: string | null
|
||||||
category_id: string | null
|
category_id: string | null
|
||||||
guild_id: string | null
|
|
||||||
}, ExtArgs["result"]["good"]>
|
}, ExtArgs["result"]["good"]>
|
||||||
composites: {}
|
composites: {}
|
||||||
}
|
}
|
||||||
@@ -1764,7 +1541,6 @@ export interface Prisma__GoodClient<T, Null = never, ExtArgs extends runtime.Typ
|
|||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
category<T extends Prisma.Good$categoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$categoryArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
category<T extends Prisma.Good$categoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$categoryArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
complex<T extends Prisma.Good$complexArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$complexArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
complex<T extends Prisma.Good$complexArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$complexArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
guild<T extends Prisma.Good$guildArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$guildArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
||||||
sales_invoice_items<T extends Prisma.Good$sales_invoice_itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$sales_invoice_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
sales_invoice_items<T extends Prisma.Good$sales_invoice_itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$sales_invoice_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
@@ -1810,7 +1586,6 @@ export interface GoodFieldRefs {
|
|||||||
readonly deleted_at: Prisma.FieldRef<"Good", 'DateTime'>
|
readonly deleted_at: Prisma.FieldRef<"Good", 'DateTime'>
|
||||||
readonly complex_id: Prisma.FieldRef<"Good", 'String'>
|
readonly complex_id: Prisma.FieldRef<"Good", 'String'>
|
||||||
readonly category_id: Prisma.FieldRef<"Good", 'String'>
|
readonly category_id: Prisma.FieldRef<"Good", 'String'>
|
||||||
readonly guild_id: Prisma.FieldRef<"Good", 'String'>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2191,25 +1966,6 @@ export type Good$complexArgs<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|||||||
where?: Prisma.ComplexWhereInput
|
where?: Prisma.ComplexWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Good.guild
|
|
||||||
*/
|
|
||||||
export type Good$guildArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
||||||
/**
|
|
||||||
* Select specific fields to fetch from the Guild
|
|
||||||
*/
|
|
||||||
select?: Prisma.GuildSelect<ExtArgs> | null
|
|
||||||
/**
|
|
||||||
* Omit specific fields from the Guild
|
|
||||||
*/
|
|
||||||
omit?: Prisma.GuildOmit<ExtArgs> | null
|
|
||||||
/**
|
|
||||||
* Choose, which related nodes to fetch as well
|
|
||||||
*/
|
|
||||||
include?: Prisma.GuildInclude<ExtArgs> | null
|
|
||||||
where?: Prisma.GuildWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Good.sales_invoice_items
|
* Good.sales_invoice_items
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -448,48 +448,6 @@ export type GoodCategoryMinOrderByAggregateInput = {
|
|||||||
deleted_at?: Prisma.SortOrder
|
deleted_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryCreateNestedManyWithoutGuildInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput> | Prisma.GoodCategoryCreateWithoutGuildInput[] | Prisma.GoodCategoryUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGuildInput | Prisma.GoodCategoryCreateOrConnectWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.GoodCategoryCreateManyGuildInputEnvelope
|
|
||||||
connect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCategoryUncheckedCreateNestedManyWithoutGuildInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput> | Prisma.GoodCategoryCreateWithoutGuildInput[] | Prisma.GoodCategoryUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGuildInput | Prisma.GoodCategoryCreateOrConnectWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.GoodCategoryCreateManyGuildInputEnvelope
|
|
||||||
connect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCategoryUpdateManyWithoutGuildNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput> | Prisma.GoodCategoryCreateWithoutGuildInput[] | Prisma.GoodCategoryUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGuildInput | Prisma.GoodCategoryCreateOrConnectWithoutGuildInput[]
|
|
||||||
upsert?: Prisma.GoodCategoryUpsertWithWhereUniqueWithoutGuildInput | Prisma.GoodCategoryUpsertWithWhereUniqueWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.GoodCategoryCreateManyGuildInputEnvelope
|
|
||||||
set?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
|
||||||
delete?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
|
||||||
connect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
|
||||||
update?: Prisma.GoodCategoryUpdateWithWhereUniqueWithoutGuildInput | Prisma.GoodCategoryUpdateWithWhereUniqueWithoutGuildInput[]
|
|
||||||
updateMany?: Prisma.GoodCategoryUpdateManyWithWhereWithoutGuildInput | Prisma.GoodCategoryUpdateManyWithWhereWithoutGuildInput[]
|
|
||||||
deleteMany?: Prisma.GoodCategoryScalarWhereInput | Prisma.GoodCategoryScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput> | Prisma.GoodCategoryCreateWithoutGuildInput[] | Prisma.GoodCategoryUncheckedCreateWithoutGuildInput[]
|
|
||||||
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGuildInput | Prisma.GoodCategoryCreateOrConnectWithoutGuildInput[]
|
|
||||||
upsert?: Prisma.GoodCategoryUpsertWithWhereUniqueWithoutGuildInput | Prisma.GoodCategoryUpsertWithWhereUniqueWithoutGuildInput[]
|
|
||||||
createMany?: Prisma.GoodCategoryCreateManyGuildInputEnvelope
|
|
||||||
set?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
|
||||||
disconnect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
|
||||||
delete?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
|
||||||
connect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
|
||||||
update?: Prisma.GoodCategoryUpdateWithWhereUniqueWithoutGuildInput | Prisma.GoodCategoryUpdateWithWhereUniqueWithoutGuildInput[]
|
|
||||||
updateMany?: Prisma.GoodCategoryUpdateManyWithWhereWithoutGuildInput | Prisma.GoodCategoryUpdateManyWithWhereWithoutGuildInput[]
|
|
||||||
deleteMany?: Prisma.GoodCategoryScalarWhereInput | Prisma.GoodCategoryScalarWhereInput[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCategoryCreateNestedManyWithoutComplexInput = {
|
export type GoodCategoryCreateNestedManyWithoutComplexInput = {
|
||||||
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutComplexInput, Prisma.GoodCategoryUncheckedCreateWithoutComplexInput> | Prisma.GoodCategoryCreateWithoutComplexInput[] | Prisma.GoodCategoryUncheckedCreateWithoutComplexInput[]
|
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutComplexInput, Prisma.GoodCategoryUncheckedCreateWithoutComplexInput> | Prisma.GoodCategoryCreateWithoutComplexInput[] | Prisma.GoodCategoryUncheckedCreateWithoutComplexInput[]
|
||||||
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutComplexInput | Prisma.GoodCategoryCreateOrConnectWithoutComplexInput[]
|
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutComplexInput | Prisma.GoodCategoryCreateOrConnectWithoutComplexInput[]
|
||||||
@@ -548,72 +506,46 @@ export type GoodCategoryUpdateOneWithoutGoodsNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.GoodCategoryUpdateToOneWithWhereWithoutGoodsInput, Prisma.GoodCategoryUpdateWithoutGoodsInput>, Prisma.GoodCategoryUncheckedUpdateWithoutGoodsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.GoodCategoryUpdateToOneWithWhereWithoutGoodsInput, Prisma.GoodCategoryUpdateWithoutGoodsInput>, Prisma.GoodCategoryUncheckedUpdateWithoutGoodsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryCreateWithoutGuildInput = {
|
export type GoodCategoryCreateNestedManyWithoutGuildInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput> | Prisma.GoodCategoryCreateWithoutGuildInput[] | Prisma.GoodCategoryUncheckedCreateWithoutGuildInput[]
|
||||||
name: string
|
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGuildInput | Prisma.GoodCategoryCreateOrConnectWithoutGuildInput[]
|
||||||
description?: string | null
|
createMany?: Prisma.GoodCategoryCreateManyGuildInputEnvelope
|
||||||
image_url?: string | null
|
connect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
||||||
is_default_guild_good?: boolean
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
deleted_at?: Date | string | null
|
|
||||||
goods?: Prisma.GoodCreateNestedManyWithoutCategoryInput
|
|
||||||
complex?: Prisma.ComplexCreateNestedOneWithoutGood_categoriesInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryUncheckedCreateWithoutGuildInput = {
|
export type GoodCategoryUncheckedCreateNestedManyWithoutGuildInput = {
|
||||||
id?: string
|
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput> | Prisma.GoodCategoryCreateWithoutGuildInput[] | Prisma.GoodCategoryUncheckedCreateWithoutGuildInput[]
|
||||||
name: string
|
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGuildInput | Prisma.GoodCategoryCreateOrConnectWithoutGuildInput[]
|
||||||
description?: string | null
|
createMany?: Prisma.GoodCategoryCreateManyGuildInputEnvelope
|
||||||
image_url?: string | null
|
connect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
||||||
complex_id?: string | null
|
|
||||||
is_default_guild_good?: boolean
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
deleted_at?: Date | string | null
|
|
||||||
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutCategoryInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryCreateOrConnectWithoutGuildInput = {
|
export type GoodCategoryUpdateManyWithoutGuildNestedInput = {
|
||||||
where: Prisma.GoodCategoryWhereUniqueInput
|
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput> | Prisma.GoodCategoryCreateWithoutGuildInput[] | Prisma.GoodCategoryUncheckedCreateWithoutGuildInput[]
|
||||||
create: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput>
|
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGuildInput | Prisma.GoodCategoryCreateOrConnectWithoutGuildInput[]
|
||||||
|
upsert?: Prisma.GoodCategoryUpsertWithWhereUniqueWithoutGuildInput | Prisma.GoodCategoryUpsertWithWhereUniqueWithoutGuildInput[]
|
||||||
|
createMany?: Prisma.GoodCategoryCreateManyGuildInputEnvelope
|
||||||
|
set?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
||||||
|
disconnect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
||||||
|
delete?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
||||||
|
connect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
||||||
|
update?: Prisma.GoodCategoryUpdateWithWhereUniqueWithoutGuildInput | Prisma.GoodCategoryUpdateWithWhereUniqueWithoutGuildInput[]
|
||||||
|
updateMany?: Prisma.GoodCategoryUpdateManyWithWhereWithoutGuildInput | Prisma.GoodCategoryUpdateManyWithWhereWithoutGuildInput[]
|
||||||
|
deleteMany?: Prisma.GoodCategoryScalarWhereInput | Prisma.GoodCategoryScalarWhereInput[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryCreateManyGuildInputEnvelope = {
|
export type GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput = {
|
||||||
data: Prisma.GoodCategoryCreateManyGuildInput | Prisma.GoodCategoryCreateManyGuildInput[]
|
create?: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput> | Prisma.GoodCategoryCreateWithoutGuildInput[] | Prisma.GoodCategoryUncheckedCreateWithoutGuildInput[]
|
||||||
skipDuplicates?: boolean
|
connectOrCreate?: Prisma.GoodCategoryCreateOrConnectWithoutGuildInput | Prisma.GoodCategoryCreateOrConnectWithoutGuildInput[]
|
||||||
}
|
upsert?: Prisma.GoodCategoryUpsertWithWhereUniqueWithoutGuildInput | Prisma.GoodCategoryUpsertWithWhereUniqueWithoutGuildInput[]
|
||||||
|
createMany?: Prisma.GoodCategoryCreateManyGuildInputEnvelope
|
||||||
export type GoodCategoryUpsertWithWhereUniqueWithoutGuildInput = {
|
set?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
||||||
where: Prisma.GoodCategoryWhereUniqueInput
|
disconnect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
||||||
update: Prisma.XOR<Prisma.GoodCategoryUpdateWithoutGuildInput, Prisma.GoodCategoryUncheckedUpdateWithoutGuildInput>
|
delete?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
||||||
create: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput>
|
connect?: Prisma.GoodCategoryWhereUniqueInput | Prisma.GoodCategoryWhereUniqueInput[]
|
||||||
}
|
update?: Prisma.GoodCategoryUpdateWithWhereUniqueWithoutGuildInput | Prisma.GoodCategoryUpdateWithWhereUniqueWithoutGuildInput[]
|
||||||
|
updateMany?: Prisma.GoodCategoryUpdateManyWithWhereWithoutGuildInput | Prisma.GoodCategoryUpdateManyWithWhereWithoutGuildInput[]
|
||||||
export type GoodCategoryUpdateWithWhereUniqueWithoutGuildInput = {
|
deleteMany?: Prisma.GoodCategoryScalarWhereInput | Prisma.GoodCategoryScalarWhereInput[]
|
||||||
where: Prisma.GoodCategoryWhereUniqueInput
|
|
||||||
data: Prisma.XOR<Prisma.GoodCategoryUpdateWithoutGuildInput, Prisma.GoodCategoryUncheckedUpdateWithoutGuildInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCategoryUpdateManyWithWhereWithoutGuildInput = {
|
|
||||||
where: Prisma.GoodCategoryScalarWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.GoodCategoryUpdateManyMutationInput, Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GoodCategoryScalarWhereInput = {
|
|
||||||
AND?: Prisma.GoodCategoryScalarWhereInput | Prisma.GoodCategoryScalarWhereInput[]
|
|
||||||
OR?: Prisma.GoodCategoryScalarWhereInput[]
|
|
||||||
NOT?: Prisma.GoodCategoryScalarWhereInput | Prisma.GoodCategoryScalarWhereInput[]
|
|
||||||
id?: Prisma.StringFilter<"GoodCategory"> | string
|
|
||||||
name?: Prisma.StringFilter<"GoodCategory"> | string
|
|
||||||
description?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
|
|
||||||
image_url?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
|
|
||||||
complex_id?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
|
|
||||||
is_default_guild_good?: Prisma.BoolFilter<"GoodCategory"> | boolean
|
|
||||||
guild_id?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
|
|
||||||
created_at?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
|
|
||||||
deleted_at?: Prisma.DateTimeNullableFilter<"GoodCategory"> | Date | string | null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryCreateWithoutComplexInput = {
|
export type GoodCategoryCreateWithoutComplexInput = {
|
||||||
@@ -668,6 +600,22 @@ export type GoodCategoryUpdateManyWithWhereWithoutComplexInput = {
|
|||||||
data: Prisma.XOR<Prisma.GoodCategoryUpdateManyMutationInput, Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexInput>
|
data: Prisma.XOR<Prisma.GoodCategoryUpdateManyMutationInput, Prisma.GoodCategoryUncheckedUpdateManyWithoutComplexInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type GoodCategoryScalarWhereInput = {
|
||||||
|
AND?: Prisma.GoodCategoryScalarWhereInput | Prisma.GoodCategoryScalarWhereInput[]
|
||||||
|
OR?: Prisma.GoodCategoryScalarWhereInput[]
|
||||||
|
NOT?: Prisma.GoodCategoryScalarWhereInput | Prisma.GoodCategoryScalarWhereInput[]
|
||||||
|
id?: Prisma.StringFilter<"GoodCategory"> | string
|
||||||
|
name?: Prisma.StringFilter<"GoodCategory"> | string
|
||||||
|
description?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
|
||||||
|
image_url?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
|
||||||
|
complex_id?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
|
||||||
|
is_default_guild_good?: Prisma.BoolFilter<"GoodCategory"> | boolean
|
||||||
|
guild_id?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
|
||||||
|
created_at?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
|
||||||
|
deleted_at?: Prisma.DateTimeNullableFilter<"GoodCategory"> | Date | string | null
|
||||||
|
}
|
||||||
|
|
||||||
export type GoodCategoryCreateWithoutGoodsInput = {
|
export type GoodCategoryCreateWithoutGoodsInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
@@ -736,7 +684,20 @@ export type GoodCategoryUncheckedUpdateWithoutGoodsInput = {
|
|||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryCreateManyGuildInput = {
|
export type GoodCategoryCreateWithoutGuildInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
description?: string | null
|
||||||
|
image_url?: string | null
|
||||||
|
is_default_guild_good?: boolean
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
deleted_at?: Date | string | null
|
||||||
|
goods?: Prisma.GoodCreateNestedManyWithoutCategoryInput
|
||||||
|
complex?: Prisma.ComplexCreateNestedOneWithoutGood_categoriesInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GoodCategoryUncheckedCreateWithoutGuildInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
description?: string | null
|
description?: string | null
|
||||||
@@ -746,44 +707,33 @@ export type GoodCategoryCreateManyGuildInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
deleted_at?: Date | string | null
|
deleted_at?: Date | string | null
|
||||||
|
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutCategoryInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryUpdateWithoutGuildInput = {
|
export type GoodCategoryCreateOrConnectWithoutGuildInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
where: Prisma.GoodCategoryWhereUniqueInput
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
create: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput>
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
||||||
goods?: Prisma.GoodUpdateManyWithoutCategoryNestedInput
|
|
||||||
complex?: Prisma.ComplexUpdateOneWithoutGood_categoriesNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryUncheckedUpdateWithoutGuildInput = {
|
export type GoodCategoryCreateManyGuildInputEnvelope = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
data: Prisma.GoodCategoryCreateManyGuildInput | Prisma.GoodCategoryCreateManyGuildInput[]
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
skipDuplicates?: boolean
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
||||||
goods?: Prisma.GoodUncheckedUpdateManyWithoutCategoryNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryUncheckedUpdateManyWithoutGuildInput = {
|
export type GoodCategoryUpsertWithWhereUniqueWithoutGuildInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
where: Prisma.GoodCategoryWhereUniqueInput
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
update: Prisma.XOR<Prisma.GoodCategoryUpdateWithoutGuildInput, Prisma.GoodCategoryUncheckedUpdateWithoutGuildInput>
|
||||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
create: Prisma.XOR<Prisma.GoodCategoryCreateWithoutGuildInput, Prisma.GoodCategoryUncheckedCreateWithoutGuildInput>
|
||||||
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
}
|
||||||
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
export type GoodCategoryUpdateWithWhereUniqueWithoutGuildInput = {
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
where: Prisma.GoodCategoryWhereUniqueInput
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
data: Prisma.XOR<Prisma.GoodCategoryUpdateWithoutGuildInput, Prisma.GoodCategoryUncheckedUpdateWithoutGuildInput>
|
||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
}
|
||||||
|
|
||||||
|
export type GoodCategoryUpdateManyWithWhereWithoutGuildInput = {
|
||||||
|
where: Prisma.GoodCategoryScalarWhereInput
|
||||||
|
data: Prisma.XOR<Prisma.GoodCategoryUpdateManyMutationInput, Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GoodCategoryCreateManyComplexInput = {
|
export type GoodCategoryCreateManyComplexInput = {
|
||||||
@@ -836,6 +786,56 @@ export type GoodCategoryUncheckedUpdateManyWithoutComplexInput = {
|
|||||||
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type GoodCategoryCreateManyGuildInput = {
|
||||||
|
id?: string
|
||||||
|
name: string
|
||||||
|
description?: string | null
|
||||||
|
image_url?: string | null
|
||||||
|
complex_id?: string | null
|
||||||
|
is_default_guild_good?: boolean
|
||||||
|
created_at?: Date | string
|
||||||
|
updated_at?: Date | string
|
||||||
|
deleted_at?: Date | string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GoodCategoryUpdateWithoutGuildInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
goods?: Prisma.GoodUpdateManyWithoutCategoryNestedInput
|
||||||
|
complex?: Prisma.ComplexUpdateOneWithoutGood_categoriesNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GoodCategoryUncheckedUpdateWithoutGuildInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
goods?: Prisma.GoodUncheckedUpdateManyWithoutCategoryNestedInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GoodCategoryUncheckedUpdateManyWithoutGuildInput = {
|
||||||
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||||
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Count Type GoodCategoryCountOutputType
|
* Count Type GoodCategoryCountOutputType
|
||||||
|
|||||||
@@ -183,7 +183,6 @@ export type GuildWhereInput = {
|
|||||||
created_at?: Prisma.DateTimeFilter<"Guild"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"Guild"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"Guild"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"Guild"> | Date | string
|
||||||
business_activities?: Prisma.BusinessActivityListRelationFilter
|
business_activities?: Prisma.BusinessActivityListRelationFilter
|
||||||
goods?: Prisma.GoodListRelationFilter
|
|
||||||
good_categories?: Prisma.GoodCategoryListRelationFilter
|
good_categories?: Prisma.GoodCategoryListRelationFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -194,7 +193,6 @@ export type GuildOrderByWithRelationInput = {
|
|||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
business_activities?: Prisma.BusinessActivityOrderByRelationAggregateInput
|
business_activities?: Prisma.BusinessActivityOrderByRelationAggregateInput
|
||||||
goods?: Prisma.GoodOrderByRelationAggregateInput
|
|
||||||
good_categories?: Prisma.GoodCategoryOrderByRelationAggregateInput
|
good_categories?: Prisma.GoodCategoryOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.GuildOrderByRelevanceInput
|
_relevance?: Prisma.GuildOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
@@ -209,7 +207,6 @@ export type GuildWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
created_at?: Prisma.DateTimeFilter<"Guild"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"Guild"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"Guild"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"Guild"> | Date | string
|
||||||
business_activities?: Prisma.BusinessActivityListRelationFilter
|
business_activities?: Prisma.BusinessActivityListRelationFilter
|
||||||
goods?: Prisma.GoodListRelationFilter
|
|
||||||
good_categories?: Prisma.GoodCategoryListRelationFilter
|
good_categories?: Prisma.GoodCategoryListRelationFilter
|
||||||
}, "id">
|
}, "id">
|
||||||
|
|
||||||
@@ -242,7 +239,6 @@ export type GuildCreateInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutGuildInput
|
business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutGuildInput
|
||||||
goods?: Prisma.GoodCreateNestedManyWithoutGuildInput
|
|
||||||
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutGuildInput
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutGuildInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,7 +249,6 @@ export type GuildUncheckedCreateInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutGuildInput
|
business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutGuildInput
|
||||||
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutGuildInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutGuildInput
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutGuildInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -264,7 +259,6 @@ export type GuildUpdateInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
business_activities?: Prisma.BusinessActivityUpdateManyWithoutGuildNestedInput
|
business_activities?: Prisma.BusinessActivityUpdateManyWithoutGuildNestedInput
|
||||||
goods?: Prisma.GoodUpdateManyWithoutGuildNestedInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUpdateManyWithoutGuildNestedInput
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutGuildNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,7 +269,6 @@ export type GuildUncheckedUpdateInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput
|
business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput
|
||||||
goods?: Prisma.GoodUncheckedUpdateManyWithoutGuildNestedInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -303,6 +296,16 @@ export type GuildUncheckedUpdateManyInput = {
|
|||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type GuildScalarRelationFilter = {
|
||||||
|
is?: Prisma.GuildWhereInput
|
||||||
|
isNot?: Prisma.GuildWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
|
export type GuildNullableScalarRelationFilter = {
|
||||||
|
is?: Prisma.GuildWhereInput | null
|
||||||
|
isNot?: Prisma.GuildWhereInput | null
|
||||||
|
}
|
||||||
|
|
||||||
export type GuildOrderByRelevanceInput = {
|
export type GuildOrderByRelevanceInput = {
|
||||||
fields: Prisma.GuildOrderByRelevanceFieldEnum | Prisma.GuildOrderByRelevanceFieldEnum[]
|
fields: Prisma.GuildOrderByRelevanceFieldEnum | Prisma.GuildOrderByRelevanceFieldEnum[]
|
||||||
sort: Prisma.SortOrder
|
sort: Prisma.SortOrder
|
||||||
@@ -333,20 +336,6 @@ export type GuildMinOrderByAggregateInput = {
|
|||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GuildScalarRelationFilter = {
|
|
||||||
is?: Prisma.GuildWhereInput
|
|
||||||
isNot?: Prisma.GuildWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildNullableScalarRelationFilter = {
|
|
||||||
is?: Prisma.GuildWhereInput | null
|
|
||||||
isNot?: Prisma.GuildWhereInput | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NullableStringFieldUpdateOperationsInput = {
|
|
||||||
set?: string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildCreateNestedOneWithoutBusiness_activitiesInput = {
|
export type GuildCreateNestedOneWithoutBusiness_activitiesInput = {
|
||||||
create?: Prisma.XOR<Prisma.GuildCreateWithoutBusiness_activitiesInput, Prisma.GuildUncheckedCreateWithoutBusiness_activitiesInput>
|
create?: Prisma.XOR<Prisma.GuildCreateWithoutBusiness_activitiesInput, Prisma.GuildUncheckedCreateWithoutBusiness_activitiesInput>
|
||||||
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutBusiness_activitiesInput
|
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutBusiness_activitiesInput
|
||||||
@@ -361,22 +350,6 @@ export type GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.GuildUpdateToOneWithWhereWithoutBusiness_activitiesInput, Prisma.GuildUpdateWithoutBusiness_activitiesInput>, Prisma.GuildUncheckedUpdateWithoutBusiness_activitiesInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.GuildUpdateToOneWithWhereWithoutBusiness_activitiesInput, Prisma.GuildUpdateWithoutBusiness_activitiesInput>, Prisma.GuildUncheckedUpdateWithoutBusiness_activitiesInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GuildCreateNestedOneWithoutGoodsInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.GuildCreateWithoutGoodsInput, Prisma.GuildUncheckedCreateWithoutGoodsInput>
|
|
||||||
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutGoodsInput
|
|
||||||
connect?: Prisma.GuildWhereUniqueInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildUpdateOneWithoutGoodsNestedInput = {
|
|
||||||
create?: Prisma.XOR<Prisma.GuildCreateWithoutGoodsInput, Prisma.GuildUncheckedCreateWithoutGoodsInput>
|
|
||||||
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutGoodsInput
|
|
||||||
upsert?: Prisma.GuildUpsertWithoutGoodsInput
|
|
||||||
disconnect?: Prisma.GuildWhereInput | boolean
|
|
||||||
delete?: Prisma.GuildWhereInput | boolean
|
|
||||||
connect?: Prisma.GuildWhereUniqueInput
|
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.GuildUpdateToOneWithWhereWithoutGoodsInput, Prisma.GuildUpdateWithoutGoodsInput>, Prisma.GuildUncheckedUpdateWithoutGoodsInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildCreateNestedOneWithoutGood_categoriesInput = {
|
export type GuildCreateNestedOneWithoutGood_categoriesInput = {
|
||||||
create?: Prisma.XOR<Prisma.GuildCreateWithoutGood_categoriesInput, Prisma.GuildUncheckedCreateWithoutGood_categoriesInput>
|
create?: Prisma.XOR<Prisma.GuildCreateWithoutGood_categoriesInput, Prisma.GuildUncheckedCreateWithoutGood_categoriesInput>
|
||||||
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutGood_categoriesInput
|
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutGood_categoriesInput
|
||||||
@@ -399,7 +372,6 @@ export type GuildCreateWithoutBusiness_activitiesInput = {
|
|||||||
code?: string | null
|
code?: string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
goods?: Prisma.GoodCreateNestedManyWithoutGuildInput
|
|
||||||
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutGuildInput
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutGuildInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -409,7 +381,6 @@ export type GuildUncheckedCreateWithoutBusiness_activitiesInput = {
|
|||||||
code?: string | null
|
code?: string | null
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutGuildInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutGuildInput
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutGuildInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -435,7 +406,6 @@ export type GuildUpdateWithoutBusiness_activitiesInput = {
|
|||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
goods?: Prisma.GoodUpdateManyWithoutGuildNestedInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUpdateManyWithoutGuildNestedInput
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutGuildNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -445,63 +415,6 @@ export type GuildUncheckedUpdateWithoutBusiness_activitiesInput = {
|
|||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
goods?: Prisma.GoodUncheckedUpdateManyWithoutGuildNestedInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildCreateWithoutGoodsInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
code?: string | null
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutGuildInput
|
|
||||||
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutGuildInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildUncheckedCreateWithoutGoodsInput = {
|
|
||||||
id?: string
|
|
||||||
name: string
|
|
||||||
code?: string | null
|
|
||||||
created_at?: Date | string
|
|
||||||
updated_at?: Date | string
|
|
||||||
business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutGuildInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutGuildInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildCreateOrConnectWithoutGoodsInput = {
|
|
||||||
where: Prisma.GuildWhereUniqueInput
|
|
||||||
create: Prisma.XOR<Prisma.GuildCreateWithoutGoodsInput, Prisma.GuildUncheckedCreateWithoutGoodsInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildUpsertWithoutGoodsInput = {
|
|
||||||
update: Prisma.XOR<Prisma.GuildUpdateWithoutGoodsInput, Prisma.GuildUncheckedUpdateWithoutGoodsInput>
|
|
||||||
create: Prisma.XOR<Prisma.GuildCreateWithoutGoodsInput, Prisma.GuildUncheckedCreateWithoutGoodsInput>
|
|
||||||
where?: Prisma.GuildWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildUpdateToOneWithWhereWithoutGoodsInput = {
|
|
||||||
where?: Prisma.GuildWhereInput
|
|
||||||
data: Prisma.XOR<Prisma.GuildUpdateWithoutGoodsInput, Prisma.GuildUncheckedUpdateWithoutGoodsInput>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildUpdateWithoutGoodsInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
business_activities?: Prisma.BusinessActivityUpdateManyWithoutGuildNestedInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUpdateManyWithoutGuildNestedInput
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GuildUncheckedUpdateWithoutGoodsInput = {
|
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
||||||
business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput
|
|
||||||
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -512,7 +425,6 @@ export type GuildCreateWithoutGood_categoriesInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutGuildInput
|
business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutGuildInput
|
||||||
goods?: Prisma.GoodCreateNestedManyWithoutGuildInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GuildUncheckedCreateWithoutGood_categoriesInput = {
|
export type GuildUncheckedCreateWithoutGood_categoriesInput = {
|
||||||
@@ -522,7 +434,6 @@ export type GuildUncheckedCreateWithoutGood_categoriesInput = {
|
|||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutGuildInput
|
business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutGuildInput
|
||||||
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutGuildInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GuildCreateOrConnectWithoutGood_categoriesInput = {
|
export type GuildCreateOrConnectWithoutGood_categoriesInput = {
|
||||||
@@ -548,7 +459,6 @@ export type GuildUpdateWithoutGood_categoriesInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
business_activities?: Prisma.BusinessActivityUpdateManyWithoutGuildNestedInput
|
business_activities?: Prisma.BusinessActivityUpdateManyWithoutGuildNestedInput
|
||||||
goods?: Prisma.GoodUpdateManyWithoutGuildNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GuildUncheckedUpdateWithoutGood_categoriesInput = {
|
export type GuildUncheckedUpdateWithoutGood_categoriesInput = {
|
||||||
@@ -558,7 +468,6 @@ export type GuildUncheckedUpdateWithoutGood_categoriesInput = {
|
|||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput
|
business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput
|
||||||
goods?: Prisma.GoodUncheckedUpdateManyWithoutGuildNestedInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -568,13 +477,11 @@ export type GuildUncheckedUpdateWithoutGood_categoriesInput = {
|
|||||||
|
|
||||||
export type GuildCountOutputType = {
|
export type GuildCountOutputType = {
|
||||||
business_activities: number
|
business_activities: number
|
||||||
goods: number
|
|
||||||
good_categories: number
|
good_categories: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GuildCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type GuildCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
business_activities?: boolean | GuildCountOutputTypeCountBusiness_activitiesArgs
|
business_activities?: boolean | GuildCountOutputTypeCountBusiness_activitiesArgs
|
||||||
goods?: boolean | GuildCountOutputTypeCountGoodsArgs
|
|
||||||
good_categories?: boolean | GuildCountOutputTypeCountGood_categoriesArgs
|
good_categories?: boolean | GuildCountOutputTypeCountGood_categoriesArgs
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -595,13 +502,6 @@ export type GuildCountOutputTypeCountBusiness_activitiesArgs<ExtArgs extends run
|
|||||||
where?: Prisma.BusinessActivityWhereInput
|
where?: Prisma.BusinessActivityWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* GuildCountOutputType without action
|
|
||||||
*/
|
|
||||||
export type GuildCountOutputTypeCountGoodsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
||||||
where?: Prisma.GoodWhereInput
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GuildCountOutputType without action
|
* GuildCountOutputType without action
|
||||||
*/
|
*/
|
||||||
@@ -617,7 +517,6 @@ export type GuildSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
business_activities?: boolean | Prisma.Guild$business_activitiesArgs<ExtArgs>
|
business_activities?: boolean | Prisma.Guild$business_activitiesArgs<ExtArgs>
|
||||||
goods?: boolean | Prisma.Guild$goodsArgs<ExtArgs>
|
|
||||||
good_categories?: boolean | Prisma.Guild$good_categoriesArgs<ExtArgs>
|
good_categories?: boolean | Prisma.Guild$good_categoriesArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.GuildCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.GuildCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["guild"]>
|
}, ExtArgs["result"]["guild"]>
|
||||||
@@ -635,7 +534,6 @@ export type GuildSelectScalar = {
|
|||||||
export type GuildOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "created_at" | "updated_at", ExtArgs["result"]["guild"]>
|
export type GuildOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "created_at" | "updated_at", ExtArgs["result"]["guild"]>
|
||||||
export type GuildInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type GuildInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
business_activities?: boolean | Prisma.Guild$business_activitiesArgs<ExtArgs>
|
business_activities?: boolean | Prisma.Guild$business_activitiesArgs<ExtArgs>
|
||||||
goods?: boolean | Prisma.Guild$goodsArgs<ExtArgs>
|
|
||||||
good_categories?: boolean | Prisma.Guild$good_categoriesArgs<ExtArgs>
|
good_categories?: boolean | Prisma.Guild$good_categoriesArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.GuildCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.GuildCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
@@ -644,7 +542,6 @@ export type $GuildPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
name: "Guild"
|
name: "Guild"
|
||||||
objects: {
|
objects: {
|
||||||
business_activities: Prisma.$BusinessActivityPayload<ExtArgs>[]
|
business_activities: Prisma.$BusinessActivityPayload<ExtArgs>[]
|
||||||
goods: Prisma.$GoodPayload<ExtArgs>[]
|
|
||||||
good_categories: Prisma.$GoodCategoryPayload<ExtArgs>[]
|
good_categories: Prisma.$GoodCategoryPayload<ExtArgs>[]
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
@@ -994,7 +891,6 @@ readonly fields: GuildFieldRefs;
|
|||||||
export interface Prisma__GuildClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
export interface Prisma__GuildClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
business_activities<T extends Prisma.Guild$business_activitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Guild$business_activitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BusinessActivityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
business_activities<T extends Prisma.Guild$business_activitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Guild$business_activitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BusinessActivityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
goods<T extends Prisma.Guild$goodsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Guild$goodsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
||||||
good_categories<T extends Prisma.Guild$good_categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Guild$good_categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
good_categories<T extends Prisma.Guild$good_categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Guild$good_categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
@@ -1396,30 +1292,6 @@ export type Guild$business_activitiesArgs<ExtArgs extends runtime.Types.Extensio
|
|||||||
distinct?: Prisma.BusinessActivityScalarFieldEnum | Prisma.BusinessActivityScalarFieldEnum[]
|
distinct?: Prisma.BusinessActivityScalarFieldEnum | Prisma.BusinessActivityScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Guild.goods
|
|
||||||
*/
|
|
||||||
export type Guild$goodsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
||||||
/**
|
|
||||||
* Select specific fields to fetch from the Good
|
|
||||||
*/
|
|
||||||
select?: Prisma.GoodSelect<ExtArgs> | null
|
|
||||||
/**
|
|
||||||
* Omit specific fields from the Good
|
|
||||||
*/
|
|
||||||
omit?: Prisma.GoodOmit<ExtArgs> | null
|
|
||||||
/**
|
|
||||||
* Choose, which related nodes to fetch as well
|
|
||||||
*/
|
|
||||||
include?: Prisma.GoodInclude<ExtArgs> | null
|
|
||||||
where?: Prisma.GoodWhereInput
|
|
||||||
orderBy?: Prisma.GoodOrderByWithRelationInput | Prisma.GoodOrderByWithRelationInput[]
|
|
||||||
cursor?: Prisma.GoodWhereUniqueInput
|
|
||||||
take?: number
|
|
||||||
skip?: number
|
|
||||||
distinct?: Prisma.GoodScalarFieldEnum | Prisma.GoodScalarFieldEnum[]
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Guild.good_categories
|
* Guild.good_categories
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ export type PartnerMinAggregateOutputType = {
|
|||||||
name: string | null
|
name: string | null
|
||||||
code: string | null
|
code: string | null
|
||||||
license_quota: number | null
|
license_quota: number | null
|
||||||
|
status: $Enums.PartnerStatus | null
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
}
|
}
|
||||||
@@ -48,6 +49,7 @@ export type PartnerMaxAggregateOutputType = {
|
|||||||
name: string | null
|
name: string | null
|
||||||
code: string | null
|
code: string | null
|
||||||
license_quota: number | null
|
license_quota: number | null
|
||||||
|
status: $Enums.PartnerStatus | null
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
}
|
}
|
||||||
@@ -57,6 +59,7 @@ export type PartnerCountAggregateOutputType = {
|
|||||||
name: number
|
name: number
|
||||||
code: number
|
code: number
|
||||||
license_quota: number
|
license_quota: number
|
||||||
|
status: number
|
||||||
created_at: number
|
created_at: number
|
||||||
updated_at: number
|
updated_at: number
|
||||||
_all: number
|
_all: number
|
||||||
@@ -76,6 +79,7 @@ export type PartnerMinAggregateInputType = {
|
|||||||
name?: true
|
name?: true
|
||||||
code?: true
|
code?: true
|
||||||
license_quota?: true
|
license_quota?: true
|
||||||
|
status?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
}
|
}
|
||||||
@@ -85,6 +89,7 @@ export type PartnerMaxAggregateInputType = {
|
|||||||
name?: true
|
name?: true
|
||||||
code?: true
|
code?: true
|
||||||
license_quota?: true
|
license_quota?: true
|
||||||
|
status?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
}
|
}
|
||||||
@@ -94,6 +99,7 @@ export type PartnerCountAggregateInputType = {
|
|||||||
name?: true
|
name?: true
|
||||||
code?: true
|
code?: true
|
||||||
license_quota?: true
|
license_quota?: true
|
||||||
|
status?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
_all?: true
|
_all?: true
|
||||||
@@ -188,8 +194,9 @@ export type PartnerGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
export type PartnerGroupByOutputType = {
|
export type PartnerGroupByOutputType = {
|
||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
code: string | null
|
code: string
|
||||||
license_quota: number | null
|
license_quota: number | null
|
||||||
|
status: $Enums.PartnerStatus
|
||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
_count: PartnerCountAggregateOutputType | null
|
_count: PartnerCountAggregateOutputType | null
|
||||||
@@ -220,45 +227,49 @@ export type PartnerWhereInput = {
|
|||||||
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
||||||
id?: Prisma.StringFilter<"Partner"> | string
|
id?: Prisma.StringFilter<"Partner"> | string
|
||||||
name?: Prisma.StringFilter<"Partner"> | string
|
name?: Prisma.StringFilter<"Partner"> | string
|
||||||
code?: Prisma.StringNullableFilter<"Partner"> | string | null
|
code?: Prisma.StringFilter<"Partner"> | string
|
||||||
license_quota?: Prisma.IntNullableFilter<"Partner"> | number | null
|
license_quota?: Prisma.IntNullableFilter<"Partner"> | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusFilter<"Partner"> | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||||
licenses?: Prisma.LicenseListRelationFilter
|
licenses?: Prisma.LicenseListRelationFilter
|
||||||
account?: Prisma.AccountListRelationFilter
|
accounts?: Prisma.PartnerAccountListRelationFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerOrderByWithRelationInput = {
|
export type PartnerOrderByWithRelationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
license_quota?: Prisma.SortOrderInput | Prisma.SortOrder
|
license_quota?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
status?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
licenses?: Prisma.LicenseOrderByRelationAggregateInput
|
licenses?: Prisma.LicenseOrderByRelationAggregateInput
|
||||||
account?: Prisma.AccountOrderByRelationAggregateInput
|
accounts?: Prisma.PartnerAccountOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.PartnerOrderByRelevanceInput
|
_relevance?: Prisma.PartnerOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerWhereUniqueInput = Prisma.AtLeast<{
|
export type PartnerWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: string
|
id?: string
|
||||||
|
code?: string
|
||||||
AND?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
AND?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
||||||
OR?: Prisma.PartnerWhereInput[]
|
OR?: Prisma.PartnerWhereInput[]
|
||||||
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
||||||
name?: Prisma.StringFilter<"Partner"> | string
|
name?: Prisma.StringFilter<"Partner"> | string
|
||||||
code?: Prisma.StringNullableFilter<"Partner"> | string | null
|
|
||||||
license_quota?: Prisma.IntNullableFilter<"Partner"> | number | null
|
license_quota?: Prisma.IntNullableFilter<"Partner"> | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusFilter<"Partner"> | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||||
licenses?: Prisma.LicenseListRelationFilter
|
licenses?: Prisma.LicenseListRelationFilter
|
||||||
account?: Prisma.AccountListRelationFilter
|
accounts?: Prisma.PartnerAccountListRelationFilter
|
||||||
}, "id">
|
}, "id" | "code">
|
||||||
|
|
||||||
export type PartnerOrderByWithAggregationInput = {
|
export type PartnerOrderByWithAggregationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
license_quota?: Prisma.SortOrderInput | Prisma.SortOrder
|
license_quota?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
|
status?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
_count?: Prisma.PartnerCountOrderByAggregateInput
|
_count?: Prisma.PartnerCountOrderByAggregateInput
|
||||||
@@ -274,8 +285,9 @@ export type PartnerScalarWhereWithAggregatesInput = {
|
|||||||
NOT?: Prisma.PartnerScalarWhereWithAggregatesInput | Prisma.PartnerScalarWhereWithAggregatesInput[]
|
NOT?: Prisma.PartnerScalarWhereWithAggregatesInput | Prisma.PartnerScalarWhereWithAggregatesInput[]
|
||||||
id?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
id?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||||
name?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
name?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||||
code?: Prisma.StringNullableWithAggregatesFilter<"Partner"> | string | null
|
code?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||||
license_quota?: Prisma.IntNullableWithAggregatesFilter<"Partner"> | number | null
|
license_quota?: Prisma.IntNullableWithAggregatesFilter<"Partner"> | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusWithAggregatesFilter<"Partner"> | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
||||||
}
|
}
|
||||||
@@ -283,52 +295,57 @@ export type PartnerScalarWhereWithAggregatesInput = {
|
|||||||
export type PartnerCreateInput = {
|
export type PartnerCreateInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
code: string
|
||||||
license_quota?: number | null
|
license_quota?: number | null
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
||||||
account?: Prisma.AccountCreateNestedManyWithoutPartnerInput
|
accounts?: Prisma.PartnerAccountCreateNestedManyWithoutUserInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUncheckedCreateInput = {
|
export type PartnerUncheckedCreateInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
code: string
|
||||||
license_quota?: number | null
|
license_quota?: number | null
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
account?: Prisma.AccountUncheckedCreateNestedManyWithoutPartnerInput
|
accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutUserInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUpdateInput = {
|
export type PartnerUpdateInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
licenses?: Prisma.LicenseUpdateManyWithoutPartnerNestedInput
|
licenses?: Prisma.LicenseUpdateManyWithoutPartnerNestedInput
|
||||||
account?: Prisma.AccountUpdateManyWithoutPartnerNestedInput
|
accounts?: Prisma.PartnerAccountUpdateManyWithoutUserNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUncheckedUpdateInput = {
|
export type PartnerUncheckedUpdateInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPartnerNestedInput
|
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
account?: Prisma.AccountUncheckedUpdateManyWithoutPartnerNestedInput
|
accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutUserNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCreateManyInput = {
|
export type PartnerCreateManyInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
code: string
|
||||||
license_quota?: number | null
|
license_quota?: number | null
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
}
|
}
|
||||||
@@ -336,8 +353,9 @@ export type PartnerCreateManyInput = {
|
|||||||
export type PartnerUpdateManyMutationInput = {
|
export type PartnerUpdateManyMutationInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
@@ -345,8 +363,9 @@ export type PartnerUpdateManyMutationInput = {
|
|||||||
export type PartnerUncheckedUpdateManyInput = {
|
export type PartnerUncheckedUpdateManyInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
@@ -367,6 +386,7 @@ export type PartnerCountOrderByAggregateInput = {
|
|||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
license_quota?: Prisma.SortOrder
|
license_quota?: Prisma.SortOrder
|
||||||
|
status?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
@@ -380,6 +400,7 @@ export type PartnerMaxOrderByAggregateInput = {
|
|||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
license_quota?: Prisma.SortOrder
|
license_quota?: Prisma.SortOrder
|
||||||
|
status?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
@@ -389,6 +410,7 @@ export type PartnerMinOrderByAggregateInput = {
|
|||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
license_quota?: Prisma.SortOrder
|
license_quota?: Prisma.SortOrder
|
||||||
|
status?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
@@ -397,11 +419,6 @@ export type PartnerSumOrderByAggregateInput = {
|
|||||||
license_quota?: Prisma.SortOrder
|
license_quota?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerNullableScalarRelationFilter = {
|
|
||||||
is?: Prisma.PartnerWhereInput | null
|
|
||||||
isNot?: Prisma.PartnerWhereInput | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PartnerCreateNestedOneWithoutLicensesInput = {
|
export type PartnerCreateNestedOneWithoutLicensesInput = {
|
||||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
||||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutLicensesInput
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutLicensesInput
|
||||||
@@ -424,40 +441,44 @@ export type NullableIntFieldUpdateOperationsInput = {
|
|||||||
divide?: number
|
divide?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCreateNestedOneWithoutAccountInput = {
|
export type EnumPartnerStatusFieldUpdateOperationsInput = {
|
||||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
set?: $Enums.PartnerStatus
|
||||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutAccountInput
|
}
|
||||||
|
|
||||||
|
export type PartnerCreateNestedOneWithoutAccountsInput = {
|
||||||
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutAccountsInput, Prisma.PartnerUncheckedCreateWithoutAccountsInput>
|
||||||
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutAccountsInput
|
||||||
connect?: Prisma.PartnerWhereUniqueInput
|
connect?: Prisma.PartnerWhereUniqueInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUpdateOneWithoutAccountNestedInput = {
|
export type PartnerUpdateOneRequiredWithoutAccountsNestedInput = {
|
||||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutAccountsInput, Prisma.PartnerUncheckedCreateWithoutAccountsInput>
|
||||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutAccountInput
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutAccountsInput
|
||||||
upsert?: Prisma.PartnerUpsertWithoutAccountInput
|
upsert?: Prisma.PartnerUpsertWithoutAccountsInput
|
||||||
disconnect?: Prisma.PartnerWhereInput | boolean
|
|
||||||
delete?: Prisma.PartnerWhereInput | boolean
|
|
||||||
connect?: Prisma.PartnerWhereUniqueInput
|
connect?: Prisma.PartnerWhereUniqueInput
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutAccountInput, Prisma.PartnerUpdateWithoutAccountInput>, Prisma.PartnerUncheckedUpdateWithoutAccountInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutAccountsInput, Prisma.PartnerUpdateWithoutAccountsInput>, Prisma.PartnerUncheckedUpdateWithoutAccountsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCreateWithoutLicensesInput = {
|
export type PartnerCreateWithoutLicensesInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
code: string
|
||||||
license_quota?: number | null
|
license_quota?: number | null
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account?: Prisma.AccountCreateNestedManyWithoutPartnerInput
|
accounts?: Prisma.PartnerAccountCreateNestedManyWithoutUserInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUncheckedCreateWithoutLicensesInput = {
|
export type PartnerUncheckedCreateWithoutLicensesInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
code: string
|
||||||
license_quota?: number | null
|
license_quota?: number | null
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
account?: Prisma.AccountUncheckedCreateNestedManyWithoutPartnerInput
|
accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutUserInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCreateOrConnectWithoutLicensesInput = {
|
export type PartnerCreateOrConnectWithoutLicensesInput = {
|
||||||
@@ -479,74 +500,80 @@ export type PartnerUpdateToOneWithWhereWithoutLicensesInput = {
|
|||||||
export type PartnerUpdateWithoutLicensesInput = {
|
export type PartnerUpdateWithoutLicensesInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account?: Prisma.AccountUpdateManyWithoutPartnerNestedInput
|
accounts?: Prisma.PartnerAccountUpdateManyWithoutUserNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUncheckedUpdateWithoutLicensesInput = {
|
export type PartnerUncheckedUpdateWithoutLicensesInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
account?: Prisma.AccountUncheckedUpdateManyWithoutPartnerNestedInput
|
accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutUserNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCreateWithoutAccountInput = {
|
export type PartnerCreateWithoutAccountsInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
code: string
|
||||||
license_quota?: number | null
|
license_quota?: number | null
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUncheckedCreateWithoutAccountInput = {
|
export type PartnerUncheckedCreateWithoutAccountsInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
code: string
|
||||||
license_quota?: number | null
|
license_quota?: number | null
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCreateOrConnectWithoutAccountInput = {
|
export type PartnerCreateOrConnectWithoutAccountsInput = {
|
||||||
where: Prisma.PartnerWhereUniqueInput
|
where: Prisma.PartnerWhereUniqueInput
|
||||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutAccountsInput, Prisma.PartnerUncheckedCreateWithoutAccountsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUpsertWithoutAccountInput = {
|
export type PartnerUpsertWithoutAccountsInput = {
|
||||||
update: Prisma.XOR<Prisma.PartnerUpdateWithoutAccountInput, Prisma.PartnerUncheckedUpdateWithoutAccountInput>
|
update: Prisma.XOR<Prisma.PartnerUpdateWithoutAccountsInput, Prisma.PartnerUncheckedUpdateWithoutAccountsInput>
|
||||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutAccountsInput, Prisma.PartnerUncheckedCreateWithoutAccountsInput>
|
||||||
where?: Prisma.PartnerWhereInput
|
where?: Prisma.PartnerWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUpdateToOneWithWhereWithoutAccountInput = {
|
export type PartnerUpdateToOneWithWhereWithoutAccountsInput = {
|
||||||
where?: Prisma.PartnerWhereInput
|
where?: Prisma.PartnerWhereInput
|
||||||
data: Prisma.XOR<Prisma.PartnerUpdateWithoutAccountInput, Prisma.PartnerUncheckedUpdateWithoutAccountInput>
|
data: Prisma.XOR<Prisma.PartnerUpdateWithoutAccountsInput, Prisma.PartnerUncheckedUpdateWithoutAccountsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUpdateWithoutAccountInput = {
|
export type PartnerUpdateWithoutAccountsInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
licenses?: Prisma.LicenseUpdateManyWithoutPartnerNestedInput
|
licenses?: Prisma.LicenseUpdateManyWithoutPartnerNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerUncheckedUpdateWithoutAccountInput = {
|
export type PartnerUncheckedUpdateWithoutAccountsInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPartnerNestedInput
|
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPartnerNestedInput
|
||||||
@@ -559,12 +586,12 @@ export type PartnerUncheckedUpdateWithoutAccountInput = {
|
|||||||
|
|
||||||
export type PartnerCountOutputType = {
|
export type PartnerCountOutputType = {
|
||||||
licenses: number
|
licenses: number
|
||||||
account: number
|
accounts: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type PartnerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
licenses?: boolean | PartnerCountOutputTypeCountLicensesArgs
|
licenses?: boolean | PartnerCountOutputTypeCountLicensesArgs
|
||||||
account?: boolean | PartnerCountOutputTypeCountAccountArgs
|
accounts?: boolean | PartnerCountOutputTypeCountAccountsArgs
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -587,8 +614,8 @@ export type PartnerCountOutputTypeCountLicensesArgs<ExtArgs extends runtime.Type
|
|||||||
/**
|
/**
|
||||||
* PartnerCountOutputType without action
|
* PartnerCountOutputType without action
|
||||||
*/
|
*/
|
||||||
export type PartnerCountOutputTypeCountAccountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type PartnerCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
where?: Prisma.AccountWhereInput
|
where?: Prisma.PartnerAccountWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -597,10 +624,11 @@ export type PartnerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
name?: boolean
|
name?: boolean
|
||||||
code?: boolean
|
code?: boolean
|
||||||
license_quota?: boolean
|
license_quota?: boolean
|
||||||
|
status?: boolean
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
licenses?: boolean | Prisma.Partner$licensesArgs<ExtArgs>
|
licenses?: boolean | Prisma.Partner$licensesArgs<ExtArgs>
|
||||||
account?: boolean | Prisma.Partner$accountArgs<ExtArgs>
|
accounts?: boolean | Prisma.Partner$accountsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["partner"]>
|
}, ExtArgs["result"]["partner"]>
|
||||||
|
|
||||||
@@ -611,14 +639,15 @@ export type PartnerSelectScalar = {
|
|||||||
name?: boolean
|
name?: boolean
|
||||||
code?: boolean
|
code?: boolean
|
||||||
license_quota?: boolean
|
license_quota?: boolean
|
||||||
|
status?: boolean
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PartnerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "license_quota" | "created_at" | "updated_at", ExtArgs["result"]["partner"]>
|
export type PartnerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "license_quota" | "status" | "created_at" | "updated_at", ExtArgs["result"]["partner"]>
|
||||||
export type PartnerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type PartnerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
licenses?: boolean | Prisma.Partner$licensesArgs<ExtArgs>
|
licenses?: boolean | Prisma.Partner$licensesArgs<ExtArgs>
|
||||||
account?: boolean | Prisma.Partner$accountArgs<ExtArgs>
|
accounts?: boolean | Prisma.Partner$accountsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -626,13 +655,14 @@ export type $PartnerPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|||||||
name: "Partner"
|
name: "Partner"
|
||||||
objects: {
|
objects: {
|
||||||
licenses: Prisma.$LicensePayload<ExtArgs>[]
|
licenses: Prisma.$LicensePayload<ExtArgs>[]
|
||||||
account: Prisma.$AccountPayload<ExtArgs>[]
|
accounts: Prisma.$PartnerAccountPayload<ExtArgs>[]
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
code: string | null
|
code: string
|
||||||
license_quota: number | null
|
license_quota: number | null
|
||||||
|
status: $Enums.PartnerStatus
|
||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
}, ExtArgs["result"]["partner"]>
|
}, ExtArgs["result"]["partner"]>
|
||||||
@@ -976,7 +1006,7 @@ readonly fields: PartnerFieldRefs;
|
|||||||
export interface Prisma__PartnerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
export interface Prisma__PartnerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
licenses<T extends Prisma.Partner$licensesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$licensesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicensePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
licenses<T extends Prisma.Partner$licensesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$licensesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicensePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
account<T extends Prisma.Partner$accountArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$accountArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
accounts<T extends Prisma.Partner$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
@@ -1010,6 +1040,7 @@ export interface PartnerFieldRefs {
|
|||||||
readonly name: Prisma.FieldRef<"Partner", 'String'>
|
readonly name: Prisma.FieldRef<"Partner", 'String'>
|
||||||
readonly code: Prisma.FieldRef<"Partner", 'String'>
|
readonly code: Prisma.FieldRef<"Partner", 'String'>
|
||||||
readonly license_quota: Prisma.FieldRef<"Partner", 'Int'>
|
readonly license_quota: Prisma.FieldRef<"Partner", 'Int'>
|
||||||
|
readonly status: Prisma.FieldRef<"Partner", 'PartnerStatus'>
|
||||||
readonly created_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
readonly created_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
||||||
readonly updated_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
readonly updated_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
||||||
}
|
}
|
||||||
@@ -1379,27 +1410,27 @@ export type Partner$licensesArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Partner.account
|
* Partner.accounts
|
||||||
*/
|
*/
|
||||||
export type Partner$accountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type Partner$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
/**
|
/**
|
||||||
* Select specific fields to fetch from the Account
|
* Select specific fields to fetch from the PartnerAccount
|
||||||
*/
|
*/
|
||||||
select?: Prisma.AccountSelect<ExtArgs> | null
|
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Omit specific fields from the Account
|
* Omit specific fields from the PartnerAccount
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.AccountOmit<ExtArgs> | null
|
omit?: Prisma.PartnerAccountOmit<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Choose, which related nodes to fetch as well
|
* Choose, which related nodes to fetch as well
|
||||||
*/
|
*/
|
||||||
include?: Prisma.AccountInclude<ExtArgs> | null
|
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
||||||
where?: Prisma.AccountWhereInput
|
where?: Prisma.PartnerAccountWhereInput
|
||||||
orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
|
orderBy?: Prisma.PartnerAccountOrderByWithRelationInput | Prisma.PartnerAccountOrderByWithRelationInput[]
|
||||||
cursor?: Prisma.AccountWhereUniqueInput
|
cursor?: Prisma.PartnerAccountWhereUniqueInput
|
||||||
take?: number
|
take?: number
|
||||||
skip?: number
|
skip?: number
|
||||||
distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
|
distinct?: Prisma.PartnerAccountScalarFieldEnum | Prisma.PartnerAccountScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -234,7 +234,7 @@ export type PosWhereInput = {
|
|||||||
device?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
|
device?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
|
||||||
provider?: Prisma.XOR<Prisma.ProviderNullableScalarRelationFilter, Prisma.ProviderWhereInput> | null
|
provider?: Prisma.XOR<Prisma.ProviderNullableScalarRelationFilter, Prisma.ProviderWhereInput> | null
|
||||||
licenses?: Prisma.LicenseListRelationFilter
|
licenses?: Prisma.LicenseListRelationFilter
|
||||||
accounts?: Prisma.AccountListRelationFilter
|
permissionPos?: Prisma.PermissionPosListRelationFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosOrderByWithRelationInput = {
|
export type PosOrderByWithRelationInput = {
|
||||||
@@ -253,7 +253,7 @@ export type PosOrderByWithRelationInput = {
|
|||||||
device?: Prisma.DeviceOrderByWithRelationInput
|
device?: Prisma.DeviceOrderByWithRelationInput
|
||||||
provider?: Prisma.ProviderOrderByWithRelationInput
|
provider?: Prisma.ProviderOrderByWithRelationInput
|
||||||
licenses?: Prisma.LicenseOrderByRelationAggregateInput
|
licenses?: Prisma.LicenseOrderByRelationAggregateInput
|
||||||
accounts?: Prisma.AccountOrderByRelationAggregateInput
|
permissionPos?: Prisma.PermissionPosOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.PosOrderByRelevanceInput
|
_relevance?: Prisma.PosOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -276,7 +276,7 @@ export type PosWhereUniqueInput = Prisma.AtLeast<{
|
|||||||
device?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
|
device?: Prisma.XOR<Prisma.DeviceNullableScalarRelationFilter, Prisma.DeviceWhereInput> | null
|
||||||
provider?: Prisma.XOR<Prisma.ProviderNullableScalarRelationFilter, Prisma.ProviderWhereInput> | null
|
provider?: Prisma.XOR<Prisma.ProviderNullableScalarRelationFilter, Prisma.ProviderWhereInput> | null
|
||||||
licenses?: Prisma.LicenseListRelationFilter
|
licenses?: Prisma.LicenseListRelationFilter
|
||||||
accounts?: Prisma.AccountListRelationFilter
|
permissionPos?: Prisma.PermissionPosListRelationFilter
|
||||||
}, "id" | "serial">
|
}, "id" | "serial">
|
||||||
|
|
||||||
export type PosOrderByWithAggregationInput = {
|
export type PosOrderByWithAggregationInput = {
|
||||||
@@ -326,7 +326,7 @@ export type PosCreateInput = {
|
|||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPosInput
|
licenses?: Prisma.LicenseCreateNestedManyWithoutPosInput
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutPosInput
|
permissionPos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedCreateInput = {
|
export type PosUncheckedCreateInput = {
|
||||||
@@ -342,7 +342,7 @@ export type PosUncheckedCreateInput = {
|
|||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPosInput
|
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPosInput
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutPosInput
|
permissionPos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUpdateInput = {
|
export type PosUpdateInput = {
|
||||||
@@ -358,7 +358,7 @@ export type PosUpdateInput = {
|
|||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
licenses?: Prisma.LicenseUpdateManyWithoutPosNestedInput
|
licenses?: Prisma.LicenseUpdateManyWithoutPosNestedInput
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutPosNestedInput
|
permissionPos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedUpdateInput = {
|
export type PosUncheckedUpdateInput = {
|
||||||
@@ -374,7 +374,7 @@ export type PosUncheckedUpdateInput = {
|
|||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPosNestedInput
|
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPosNestedInput
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutPosNestedInput
|
permissionPos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateManyInput = {
|
export type PosCreateManyInput = {
|
||||||
@@ -479,11 +479,6 @@ export type PosScalarRelationFilter = {
|
|||||||
isNot?: Prisma.PosWhereInput
|
isNot?: Prisma.PosWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosNullableScalarRelationFilter = {
|
|
||||||
is?: Prisma.PosWhereInput | null
|
|
||||||
isNot?: Prisma.PosWhereInput | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PosCreateNestedManyWithoutComplexInput = {
|
export type PosCreateNestedManyWithoutComplexInput = {
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput> | Prisma.PosCreateWithoutComplexInput[] | Prisma.PosUncheckedCreateWithoutComplexInput[]
|
create?: Prisma.XOR<Prisma.PosCreateWithoutComplexInput, Prisma.PosUncheckedCreateWithoutComplexInput> | Prisma.PosCreateWithoutComplexInput[] | Prisma.PosUncheckedCreateWithoutComplexInput[]
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutComplexInput | Prisma.PosCreateOrConnectWithoutComplexInput[]
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutComplexInput | Prisma.PosCreateOrConnectWithoutComplexInput[]
|
||||||
@@ -590,20 +585,18 @@ export type PosUpdateOneRequiredWithoutLicensesNestedInput = {
|
|||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PosUpdateToOneWithWhereWithoutLicensesInput, Prisma.PosUpdateWithoutLicensesInput>, Prisma.PosUncheckedUpdateWithoutLicensesInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PosUpdateToOneWithWhereWithoutLicensesInput, Prisma.PosUpdateWithoutLicensesInput>, Prisma.PosUncheckedUpdateWithoutLicensesInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateNestedOneWithoutAccountsInput = {
|
export type PosCreateNestedOneWithoutPermissionPosInput = {
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutAccountsInput, Prisma.PosUncheckedCreateWithoutAccountsInput>
|
create?: Prisma.XOR<Prisma.PosCreateWithoutPermissionPosInput, Prisma.PosUncheckedCreateWithoutPermissionPosInput>
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutAccountsInput
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutPermissionPosInput
|
||||||
connect?: Prisma.PosWhereUniqueInput
|
connect?: Prisma.PosWhereUniqueInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUpdateOneWithoutAccountsNestedInput = {
|
export type PosUpdateOneRequiredWithoutPermissionPosNestedInput = {
|
||||||
create?: Prisma.XOR<Prisma.PosCreateWithoutAccountsInput, Prisma.PosUncheckedCreateWithoutAccountsInput>
|
create?: Prisma.XOR<Prisma.PosCreateWithoutPermissionPosInput, Prisma.PosUncheckedCreateWithoutPermissionPosInput>
|
||||||
connectOrCreate?: Prisma.PosCreateOrConnectWithoutAccountsInput
|
connectOrCreate?: Prisma.PosCreateOrConnectWithoutPermissionPosInput
|
||||||
upsert?: Prisma.PosUpsertWithoutAccountsInput
|
upsert?: Prisma.PosUpsertWithoutPermissionPosInput
|
||||||
disconnect?: Prisma.PosWhereInput | boolean
|
|
||||||
delete?: Prisma.PosWhereInput | boolean
|
|
||||||
connect?: Prisma.PosWhereUniqueInput
|
connect?: Prisma.PosWhereUniqueInput
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PosUpdateToOneWithWhereWithoutAccountsInput, Prisma.PosUpdateWithoutAccountsInput>, Prisma.PosUncheckedUpdateWithoutAccountsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PosUpdateToOneWithWhereWithoutPermissionPosInput, Prisma.PosUpdateWithoutPermissionPosInput>, Prisma.PosUncheckedUpdateWithoutPermissionPosInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateNestedManyWithoutProviderInput = {
|
export type PosCreateNestedManyWithoutProviderInput = {
|
||||||
@@ -660,7 +653,7 @@ export type PosCreateWithoutComplexInput = {
|
|||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPosInput
|
licenses?: Prisma.LicenseCreateNestedManyWithoutPosInput
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutPosInput
|
permissionPos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedCreateWithoutComplexInput = {
|
export type PosUncheckedCreateWithoutComplexInput = {
|
||||||
@@ -675,7 +668,7 @@ export type PosUncheckedCreateWithoutComplexInput = {
|
|||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPosInput
|
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPosInput
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutPosInput
|
permissionPos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateOrConnectWithoutComplexInput = {
|
export type PosCreateOrConnectWithoutComplexInput = {
|
||||||
@@ -733,7 +726,7 @@ export type PosCreateWithoutDeviceInput = {
|
|||||||
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPosInput
|
licenses?: Prisma.LicenseCreateNestedManyWithoutPosInput
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutPosInput
|
permissionPos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedCreateWithoutDeviceInput = {
|
export type PosUncheckedCreateWithoutDeviceInput = {
|
||||||
@@ -748,7 +741,7 @@ export type PosUncheckedCreateWithoutDeviceInput = {
|
|||||||
complex_id: string
|
complex_id: string
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPosInput
|
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPosInput
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutPosInput
|
permissionPos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateOrConnectWithoutDeviceInput = {
|
export type PosCreateOrConnectWithoutDeviceInput = {
|
||||||
@@ -789,7 +782,7 @@ export type PosCreateWithoutLicensesInput = {
|
|||||||
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
provider?: Prisma.ProviderCreateNestedOneWithoutPos_listInput
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutPosInput
|
permissionPos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedCreateWithoutLicensesInput = {
|
export type PosUncheckedCreateWithoutLicensesInput = {
|
||||||
@@ -804,7 +797,7 @@ export type PosUncheckedCreateWithoutLicensesInput = {
|
|||||||
complex_id: string
|
complex_id: string
|
||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
provider_id?: string | null
|
provider_id?: string | null
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutPosInput
|
permissionPos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateOrConnectWithoutLicensesInput = {
|
export type PosCreateOrConnectWithoutLicensesInput = {
|
||||||
@@ -835,7 +828,7 @@ export type PosUpdateWithoutLicensesInput = {
|
|||||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutPosNestedInput
|
permissionPos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedUpdateWithoutLicensesInput = {
|
export type PosUncheckedUpdateWithoutLicensesInput = {
|
||||||
@@ -850,10 +843,10 @@ export type PosUncheckedUpdateWithoutLicensesInput = {
|
|||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutPosNestedInput
|
permissionPos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateWithoutAccountsInput = {
|
export type PosCreateWithoutPermissionPosInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
serial: string
|
serial: string
|
||||||
@@ -868,7 +861,7 @@ export type PosCreateWithoutAccountsInput = {
|
|||||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPosInput
|
licenses?: Prisma.LicenseCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedCreateWithoutAccountsInput = {
|
export type PosUncheckedCreateWithoutPermissionPosInput = {
|
||||||
id?: string
|
id?: string
|
||||||
name: string
|
name: string
|
||||||
serial: string
|
serial: string
|
||||||
@@ -883,23 +876,23 @@ export type PosUncheckedCreateWithoutAccountsInput = {
|
|||||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPosInput
|
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateOrConnectWithoutAccountsInput = {
|
export type PosCreateOrConnectWithoutPermissionPosInput = {
|
||||||
where: Prisma.PosWhereUniqueInput
|
where: Prisma.PosWhereUniqueInput
|
||||||
create: Prisma.XOR<Prisma.PosCreateWithoutAccountsInput, Prisma.PosUncheckedCreateWithoutAccountsInput>
|
create: Prisma.XOR<Prisma.PosCreateWithoutPermissionPosInput, Prisma.PosUncheckedCreateWithoutPermissionPosInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUpsertWithoutAccountsInput = {
|
export type PosUpsertWithoutPermissionPosInput = {
|
||||||
update: Prisma.XOR<Prisma.PosUpdateWithoutAccountsInput, Prisma.PosUncheckedUpdateWithoutAccountsInput>
|
update: Prisma.XOR<Prisma.PosUpdateWithoutPermissionPosInput, Prisma.PosUncheckedUpdateWithoutPermissionPosInput>
|
||||||
create: Prisma.XOR<Prisma.PosCreateWithoutAccountsInput, Prisma.PosUncheckedCreateWithoutAccountsInput>
|
create: Prisma.XOR<Prisma.PosCreateWithoutPermissionPosInput, Prisma.PosUncheckedCreateWithoutPermissionPosInput>
|
||||||
where?: Prisma.PosWhereInput
|
where?: Prisma.PosWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUpdateToOneWithWhereWithoutAccountsInput = {
|
export type PosUpdateToOneWithWhereWithoutPermissionPosInput = {
|
||||||
where?: Prisma.PosWhereInput
|
where?: Prisma.PosWhereInput
|
||||||
data: Prisma.XOR<Prisma.PosUpdateWithoutAccountsInput, Prisma.PosUncheckedUpdateWithoutAccountsInput>
|
data: Prisma.XOR<Prisma.PosUpdateWithoutPermissionPosInput, Prisma.PosUncheckedUpdateWithoutPermissionPosInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUpdateWithoutAccountsInput = {
|
export type PosUpdateWithoutPermissionPosInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
serial?: Prisma.StringFieldUpdateOperationsInput | string
|
serial?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
@@ -914,7 +907,7 @@ export type PosUpdateWithoutAccountsInput = {
|
|||||||
licenses?: Prisma.LicenseUpdateManyWithoutPosNestedInput
|
licenses?: Prisma.LicenseUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedUpdateWithoutAccountsInput = {
|
export type PosUncheckedUpdateWithoutPermissionPosInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
serial?: Prisma.StringFieldUpdateOperationsInput | string
|
serial?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
@@ -941,7 +934,7 @@ export type PosCreateWithoutProviderInput = {
|
|||||||
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
complex: Prisma.ComplexCreateNestedOneWithoutPos_listInput
|
||||||
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
device?: Prisma.DeviceCreateNestedOneWithoutPosesInput
|
||||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPosInput
|
licenses?: Prisma.LicenseCreateNestedManyWithoutPosInput
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutPosInput
|
permissionPos?: Prisma.PermissionPosCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedCreateWithoutProviderInput = {
|
export type PosUncheckedCreateWithoutProviderInput = {
|
||||||
@@ -956,7 +949,7 @@ export type PosUncheckedCreateWithoutProviderInput = {
|
|||||||
complex_id: string
|
complex_id: string
|
||||||
device_id?: string | null
|
device_id?: string | null
|
||||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPosInput
|
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPosInput
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutPosInput
|
permissionPos?: Prisma.PermissionPosUncheckedCreateNestedManyWithoutPosInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCreateOrConnectWithoutProviderInput = {
|
export type PosCreateOrConnectWithoutProviderInput = {
|
||||||
@@ -1010,7 +1003,7 @@ export type PosUpdateWithoutComplexInput = {
|
|||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
licenses?: Prisma.LicenseUpdateManyWithoutPosNestedInput
|
licenses?: Prisma.LicenseUpdateManyWithoutPosNestedInput
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutPosNestedInput
|
permissionPos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedUpdateWithoutComplexInput = {
|
export type PosUncheckedUpdateWithoutComplexInput = {
|
||||||
@@ -1025,7 +1018,7 @@ export type PosUncheckedUpdateWithoutComplexInput = {
|
|||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPosNestedInput
|
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPosNestedInput
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutPosNestedInput
|
permissionPos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedUpdateManyWithoutComplexInput = {
|
export type PosUncheckedUpdateManyWithoutComplexInput = {
|
||||||
@@ -1066,7 +1059,7 @@ export type PosUpdateWithoutDeviceInput = {
|
|||||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
||||||
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
provider?: Prisma.ProviderUpdateOneWithoutPos_listNestedInput
|
||||||
licenses?: Prisma.LicenseUpdateManyWithoutPosNestedInput
|
licenses?: Prisma.LicenseUpdateManyWithoutPosNestedInput
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutPosNestedInput
|
permissionPos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedUpdateWithoutDeviceInput = {
|
export type PosUncheckedUpdateWithoutDeviceInput = {
|
||||||
@@ -1081,7 +1074,7 @@ export type PosUncheckedUpdateWithoutDeviceInput = {
|
|||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
provider_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPosNestedInput
|
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPosNestedInput
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutPosNestedInput
|
permissionPos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedUpdateManyWithoutDeviceInput = {
|
export type PosUncheckedUpdateManyWithoutDeviceInput = {
|
||||||
@@ -1122,7 +1115,7 @@ export type PosUpdateWithoutProviderInput = {
|
|||||||
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
complex?: Prisma.ComplexUpdateOneRequiredWithoutPos_listNestedInput
|
||||||
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
device?: Prisma.DeviceUpdateOneWithoutPosesNestedInput
|
||||||
licenses?: Prisma.LicenseUpdateManyWithoutPosNestedInput
|
licenses?: Prisma.LicenseUpdateManyWithoutPosNestedInput
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutPosNestedInput
|
permissionPos?: Prisma.PermissionPosUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedUpdateWithoutProviderInput = {
|
export type PosUncheckedUpdateWithoutProviderInput = {
|
||||||
@@ -1137,7 +1130,7 @@ export type PosUncheckedUpdateWithoutProviderInput = {
|
|||||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
device_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||||
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPosNestedInput
|
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPosNestedInput
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutPosNestedInput
|
permissionPos?: Prisma.PermissionPosUncheckedUpdateManyWithoutPosNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosUncheckedUpdateManyWithoutProviderInput = {
|
export type PosUncheckedUpdateManyWithoutProviderInput = {
|
||||||
@@ -1160,12 +1153,12 @@ export type PosUncheckedUpdateManyWithoutProviderInput = {
|
|||||||
|
|
||||||
export type PosCountOutputType = {
|
export type PosCountOutputType = {
|
||||||
licenses: number
|
licenses: number
|
||||||
accounts: number
|
permissionPos: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PosCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type PosCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
licenses?: boolean | PosCountOutputTypeCountLicensesArgs
|
licenses?: boolean | PosCountOutputTypeCountLicensesArgs
|
||||||
accounts?: boolean | PosCountOutputTypeCountAccountsArgs
|
permissionPos?: boolean | PosCountOutputTypeCountPermissionPosArgs
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1188,8 +1181,8 @@ export type PosCountOutputTypeCountLicensesArgs<ExtArgs extends runtime.Types.Ex
|
|||||||
/**
|
/**
|
||||||
* PosCountOutputType without action
|
* PosCountOutputType without action
|
||||||
*/
|
*/
|
||||||
export type PosCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type PosCountOutputTypeCountPermissionPosArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
where?: Prisma.AccountWhereInput
|
where?: Prisma.PermissionPosWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1209,7 +1202,7 @@ export type PosSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = ru
|
|||||||
device?: boolean | Prisma.Pos$deviceArgs<ExtArgs>
|
device?: boolean | Prisma.Pos$deviceArgs<ExtArgs>
|
||||||
provider?: boolean | Prisma.Pos$providerArgs<ExtArgs>
|
provider?: boolean | Prisma.Pos$providerArgs<ExtArgs>
|
||||||
licenses?: boolean | Prisma.Pos$licensesArgs<ExtArgs>
|
licenses?: boolean | Prisma.Pos$licensesArgs<ExtArgs>
|
||||||
accounts?: boolean | Prisma.Pos$accountsArgs<ExtArgs>
|
permissionPos?: boolean | Prisma.Pos$permissionPosArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.PosCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.PosCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["pos"]>
|
}, ExtArgs["result"]["pos"]>
|
||||||
|
|
||||||
@@ -1235,7 +1228,7 @@ export type PosInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
|||||||
device?: boolean | Prisma.Pos$deviceArgs<ExtArgs>
|
device?: boolean | Prisma.Pos$deviceArgs<ExtArgs>
|
||||||
provider?: boolean | Prisma.Pos$providerArgs<ExtArgs>
|
provider?: boolean | Prisma.Pos$providerArgs<ExtArgs>
|
||||||
licenses?: boolean | Prisma.Pos$licensesArgs<ExtArgs>
|
licenses?: boolean | Prisma.Pos$licensesArgs<ExtArgs>
|
||||||
accounts?: boolean | Prisma.Pos$accountsArgs<ExtArgs>
|
permissionPos?: boolean | Prisma.Pos$permissionPosArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.PosCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.PosCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1246,7 +1239,7 @@ export type $PosPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||||||
device: Prisma.$DevicePayload<ExtArgs> | null
|
device: Prisma.$DevicePayload<ExtArgs> | null
|
||||||
provider: Prisma.$ProviderPayload<ExtArgs> | null
|
provider: Prisma.$ProviderPayload<ExtArgs> | null
|
||||||
licenses: Prisma.$LicensePayload<ExtArgs>[]
|
licenses: Prisma.$LicensePayload<ExtArgs>[]
|
||||||
accounts: Prisma.$AccountPayload<ExtArgs>[]
|
permissionPos: Prisma.$PermissionPosPayload<ExtArgs>[]
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
@@ -1604,7 +1597,7 @@ export interface Prisma__PosClient<T, Null = never, ExtArgs extends runtime.Type
|
|||||||
device<T extends Prisma.Pos$deviceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$deviceArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
device<T extends Prisma.Pos$deviceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$deviceArgs<ExtArgs>>): Prisma.Prisma__DeviceClient<runtime.Types.Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
provider<T extends Prisma.Pos$providerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$providerArgs<ExtArgs>>): Prisma.Prisma__ProviderClient<runtime.Types.Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
provider<T extends Prisma.Pos$providerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$providerArgs<ExtArgs>>): Prisma.Prisma__ProviderClient<runtime.Types.Result.GetResult<Prisma.$ProviderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||||
licenses<T extends Prisma.Pos$licensesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$licensesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicensePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
licenses<T extends Prisma.Pos$licensesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$licensesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicensePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
accounts<T extends Prisma.Pos$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
permissionPos<T extends Prisma.Pos$permissionPosArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Pos$permissionPosArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PermissionPosPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
@@ -2050,27 +2043,27 @@ export type Pos$licensesArgs<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pos.accounts
|
* Pos.permissionPos
|
||||||
*/
|
*/
|
||||||
export type Pos$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type Pos$permissionPosArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
/**
|
/**
|
||||||
* Select specific fields to fetch from the Account
|
* Select specific fields to fetch from the PermissionPos
|
||||||
*/
|
*/
|
||||||
select?: Prisma.AccountSelect<ExtArgs> | null
|
select?: Prisma.PermissionPosSelect<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Omit specific fields from the Account
|
* Omit specific fields from the PermissionPos
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.AccountOmit<ExtArgs> | null
|
omit?: Prisma.PermissionPosOmit<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Choose, which related nodes to fetch as well
|
* Choose, which related nodes to fetch as well
|
||||||
*/
|
*/
|
||||||
include?: Prisma.AccountInclude<ExtArgs> | null
|
include?: Prisma.PermissionPosInclude<ExtArgs> | null
|
||||||
where?: Prisma.AccountWhereInput
|
where?: Prisma.PermissionPosWhereInput
|
||||||
orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
|
orderBy?: Prisma.PermissionPosOrderByWithRelationInput | Prisma.PermissionPosOrderByWithRelationInput[]
|
||||||
cursor?: Prisma.AccountWhereUniqueInput
|
cursor?: Prisma.PermissionPosWhereUniqueInput
|
||||||
take?: number
|
take?: number
|
||||||
skip?: number
|
skip?: number
|
||||||
distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
|
distinct?: Prisma.PermissionPosScalarFieldEnum | Prisma.PermissionPosScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -26,24 +26,27 @@ export type AggregateProvider = {
|
|||||||
|
|
||||||
export type ProviderMinAggregateOutputType = {
|
export type ProviderMinAggregateOutputType = {
|
||||||
id: string | null
|
id: string | null
|
||||||
name: string | null
|
|
||||||
code: string | null
|
code: string | null
|
||||||
|
status: $Enums.PartnerStatus | null
|
||||||
|
name: string | null
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderMaxAggregateOutputType = {
|
export type ProviderMaxAggregateOutputType = {
|
||||||
id: string | null
|
id: string | null
|
||||||
name: string | null
|
|
||||||
code: string | null
|
code: string | null
|
||||||
|
status: $Enums.PartnerStatus | null
|
||||||
|
name: string | null
|
||||||
created_at: Date | null
|
created_at: Date | null
|
||||||
updated_at: Date | null
|
updated_at: Date | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCountAggregateOutputType = {
|
export type ProviderCountAggregateOutputType = {
|
||||||
id: number
|
id: number
|
||||||
name: number
|
|
||||||
code: number
|
code: number
|
||||||
|
status: number
|
||||||
|
name: number
|
||||||
created_at: number
|
created_at: number
|
||||||
updated_at: number
|
updated_at: number
|
||||||
_all: number
|
_all: number
|
||||||
@@ -52,24 +55,27 @@ export type ProviderCountAggregateOutputType = {
|
|||||||
|
|
||||||
export type ProviderMinAggregateInputType = {
|
export type ProviderMinAggregateInputType = {
|
||||||
id?: true
|
id?: true
|
||||||
name?: true
|
|
||||||
code?: true
|
code?: true
|
||||||
|
status?: true
|
||||||
|
name?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderMaxAggregateInputType = {
|
export type ProviderMaxAggregateInputType = {
|
||||||
id?: true
|
id?: true
|
||||||
name?: true
|
|
||||||
code?: true
|
code?: true
|
||||||
|
status?: true
|
||||||
|
name?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCountAggregateInputType = {
|
export type ProviderCountAggregateInputType = {
|
||||||
id?: true
|
id?: true
|
||||||
name?: true
|
|
||||||
code?: true
|
code?: true
|
||||||
|
status?: true
|
||||||
|
name?: true
|
||||||
created_at?: true
|
created_at?: true
|
||||||
updated_at?: true
|
updated_at?: true
|
||||||
_all?: true
|
_all?: true
|
||||||
@@ -149,8 +155,9 @@ export type ProviderGroupByArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
|
|
||||||
export type ProviderGroupByOutputType = {
|
export type ProviderGroupByOutputType = {
|
||||||
id: string
|
id: string
|
||||||
|
code: string
|
||||||
|
status: $Enums.PartnerStatus
|
||||||
name: string
|
name: string
|
||||||
code: string | null
|
|
||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
_count: ProviderCountAggregateOutputType | null
|
_count: ProviderCountAggregateOutputType | null
|
||||||
@@ -178,42 +185,46 @@ export type ProviderWhereInput = {
|
|||||||
OR?: Prisma.ProviderWhereInput[]
|
OR?: Prisma.ProviderWhereInput[]
|
||||||
NOT?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[]
|
NOT?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[]
|
||||||
id?: Prisma.StringFilter<"Provider"> | string
|
id?: Prisma.StringFilter<"Provider"> | string
|
||||||
|
code?: Prisma.StringFilter<"Provider"> | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFilter<"Provider"> | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringFilter<"Provider"> | string
|
name?: Prisma.StringFilter<"Provider"> | string
|
||||||
code?: Prisma.StringNullableFilter<"Provider"> | string | null
|
|
||||||
created_at?: Prisma.DateTimeFilter<"Provider"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"Provider"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"Provider"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"Provider"> | Date | string
|
||||||
pos_list?: Prisma.PosListRelationFilter
|
pos_list?: Prisma.PosListRelationFilter
|
||||||
accounts?: Prisma.AccountListRelationFilter
|
accounts?: Prisma.ProviderAccountListRelationFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderOrderByWithRelationInput = {
|
export type ProviderOrderByWithRelationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
|
code?: Prisma.SortOrder
|
||||||
|
status?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
pos_list?: Prisma.PosOrderByRelationAggregateInput
|
pos_list?: Prisma.PosOrderByRelationAggregateInput
|
||||||
accounts?: Prisma.AccountOrderByRelationAggregateInput
|
accounts?: Prisma.ProviderAccountOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.ProviderOrderByRelevanceInput
|
_relevance?: Prisma.ProviderOrderByRelevanceInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderWhereUniqueInput = Prisma.AtLeast<{
|
export type ProviderWhereUniqueInput = Prisma.AtLeast<{
|
||||||
id?: string
|
id?: string
|
||||||
|
code?: string
|
||||||
AND?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[]
|
AND?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[]
|
||||||
OR?: Prisma.ProviderWhereInput[]
|
OR?: Prisma.ProviderWhereInput[]
|
||||||
NOT?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[]
|
NOT?: Prisma.ProviderWhereInput | Prisma.ProviderWhereInput[]
|
||||||
|
status?: Prisma.EnumPartnerStatusFilter<"Provider"> | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringFilter<"Provider"> | string
|
name?: Prisma.StringFilter<"Provider"> | string
|
||||||
code?: Prisma.StringNullableFilter<"Provider"> | string | null
|
|
||||||
created_at?: Prisma.DateTimeFilter<"Provider"> | Date | string
|
created_at?: Prisma.DateTimeFilter<"Provider"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeFilter<"Provider"> | Date | string
|
updated_at?: Prisma.DateTimeFilter<"Provider"> | Date | string
|
||||||
pos_list?: Prisma.PosListRelationFilter
|
pos_list?: Prisma.PosListRelationFilter
|
||||||
accounts?: Prisma.AccountListRelationFilter
|
accounts?: Prisma.ProviderAccountListRelationFilter
|
||||||
}, "id">
|
}, "id" | "code">
|
||||||
|
|
||||||
export type ProviderOrderByWithAggregationInput = {
|
export type ProviderOrderByWithAggregationInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
|
code?: Prisma.SortOrder
|
||||||
|
status?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
_count?: Prisma.ProviderCountOrderByAggregateInput
|
_count?: Prisma.ProviderCountOrderByAggregateInput
|
||||||
@@ -226,72 +237,80 @@ export type ProviderScalarWhereWithAggregatesInput = {
|
|||||||
OR?: Prisma.ProviderScalarWhereWithAggregatesInput[]
|
OR?: Prisma.ProviderScalarWhereWithAggregatesInput[]
|
||||||
NOT?: Prisma.ProviderScalarWhereWithAggregatesInput | Prisma.ProviderScalarWhereWithAggregatesInput[]
|
NOT?: Prisma.ProviderScalarWhereWithAggregatesInput | Prisma.ProviderScalarWhereWithAggregatesInput[]
|
||||||
id?: Prisma.StringWithAggregatesFilter<"Provider"> | string
|
id?: Prisma.StringWithAggregatesFilter<"Provider"> | string
|
||||||
|
code?: Prisma.StringWithAggregatesFilter<"Provider"> | string
|
||||||
|
status?: Prisma.EnumPartnerStatusWithAggregatesFilter<"Provider"> | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringWithAggregatesFilter<"Provider"> | string
|
name?: Prisma.StringWithAggregatesFilter<"Provider"> | string
|
||||||
code?: Prisma.StringNullableWithAggregatesFilter<"Provider"> | string | null
|
|
||||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"Provider"> | Date | string
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"Provider"> | Date | string
|
||||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Provider"> | Date | string
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Provider"> | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCreateInput = {
|
export type ProviderCreateInput = {
|
||||||
id?: string
|
id?: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
pos_list?: Prisma.PosCreateNestedManyWithoutProviderInput
|
pos_list?: Prisma.PosCreateNestedManyWithoutProviderInput
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutProviderInput
|
accounts?: Prisma.ProviderAccountCreateNestedManyWithoutUserInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderUncheckedCreateInput = {
|
export type ProviderUncheckedCreateInput = {
|
||||||
id?: string
|
id?: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutProviderInput
|
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutProviderInput
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutProviderInput
|
accounts?: Prisma.ProviderAccountUncheckedCreateNestedManyWithoutUserInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderUpdateInput = {
|
export type ProviderUpdateInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
pos_list?: Prisma.PosUpdateManyWithoutProviderNestedInput
|
pos_list?: Prisma.PosUpdateManyWithoutProviderNestedInput
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutProviderNestedInput
|
accounts?: Prisma.ProviderAccountUpdateManyWithoutUserNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderUncheckedUpdateInput = {
|
export type ProviderUncheckedUpdateInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
pos_list?: Prisma.PosUncheckedUpdateManyWithoutProviderNestedInput
|
pos_list?: Prisma.PosUncheckedUpdateManyWithoutProviderNestedInput
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutProviderNestedInput
|
accounts?: Prisma.ProviderAccountUncheckedUpdateManyWithoutUserNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCreateManyInput = {
|
export type ProviderCreateManyInput = {
|
||||||
id?: string
|
id?: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderUpdateManyMutationInput = {
|
export type ProviderUpdateManyMutationInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderUncheckedUpdateManyInput = {
|
export type ProviderUncheckedUpdateManyInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
@@ -309,28 +328,36 @@ export type ProviderOrderByRelevanceInput = {
|
|||||||
|
|
||||||
export type ProviderCountOrderByAggregateInput = {
|
export type ProviderCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
|
status?: Prisma.SortOrder
|
||||||
|
name?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderMaxOrderByAggregateInput = {
|
export type ProviderMaxOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
|
status?: Prisma.SortOrder
|
||||||
|
name?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderMinOrderByAggregateInput = {
|
export type ProviderMinOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
|
||||||
code?: Prisma.SortOrder
|
code?: Prisma.SortOrder
|
||||||
|
status?: Prisma.SortOrder
|
||||||
|
name?: Prisma.SortOrder
|
||||||
created_at?: Prisma.SortOrder
|
created_at?: Prisma.SortOrder
|
||||||
updated_at?: Prisma.SortOrder
|
updated_at?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ProviderScalarRelationFilter = {
|
||||||
|
is?: Prisma.ProviderWhereInput
|
||||||
|
isNot?: Prisma.ProviderWhereInput
|
||||||
|
}
|
||||||
|
|
||||||
export type ProviderCreateNestedOneWithoutPos_listInput = {
|
export type ProviderCreateNestedOneWithoutPos_listInput = {
|
||||||
create?: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
create?: Prisma.XOR<Prisma.ProviderCreateWithoutPos_listInput, Prisma.ProviderUncheckedCreateWithoutPos_listInput>
|
||||||
connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutPos_listInput
|
connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutPos_listInput
|
||||||
@@ -353,32 +380,32 @@ export type ProviderCreateNestedOneWithoutAccountsInput = {
|
|||||||
connect?: Prisma.ProviderWhereUniqueInput
|
connect?: Prisma.ProviderWhereUniqueInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderUpdateOneWithoutAccountsNestedInput = {
|
export type ProviderUpdateOneRequiredWithoutAccountsNestedInput = {
|
||||||
create?: Prisma.XOR<Prisma.ProviderCreateWithoutAccountsInput, Prisma.ProviderUncheckedCreateWithoutAccountsInput>
|
create?: Prisma.XOR<Prisma.ProviderCreateWithoutAccountsInput, Prisma.ProviderUncheckedCreateWithoutAccountsInput>
|
||||||
connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutAccountsInput
|
connectOrCreate?: Prisma.ProviderCreateOrConnectWithoutAccountsInput
|
||||||
upsert?: Prisma.ProviderUpsertWithoutAccountsInput
|
upsert?: Prisma.ProviderUpsertWithoutAccountsInput
|
||||||
disconnect?: Prisma.ProviderWhereInput | boolean
|
|
||||||
delete?: Prisma.ProviderWhereInput | boolean
|
|
||||||
connect?: Prisma.ProviderWhereUniqueInput
|
connect?: Prisma.ProviderWhereUniqueInput
|
||||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ProviderUpdateToOneWithWhereWithoutAccountsInput, Prisma.ProviderUpdateWithoutAccountsInput>, Prisma.ProviderUncheckedUpdateWithoutAccountsInput>
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ProviderUpdateToOneWithWhereWithoutAccountsInput, Prisma.ProviderUpdateWithoutAccountsInput>, Prisma.ProviderUncheckedUpdateWithoutAccountsInput>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCreateWithoutPos_listInput = {
|
export type ProviderCreateWithoutPos_listInput = {
|
||||||
id?: string
|
id?: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
accounts?: Prisma.AccountCreateNestedManyWithoutProviderInput
|
accounts?: Prisma.ProviderAccountCreateNestedManyWithoutUserInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderUncheckedCreateWithoutPos_listInput = {
|
export type ProviderUncheckedCreateWithoutPos_listInput = {
|
||||||
id?: string
|
id?: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutProviderInput
|
accounts?: Prisma.ProviderAccountUncheckedCreateNestedManyWithoutUserInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCreateOrConnectWithoutPos_listInput = {
|
export type ProviderCreateOrConnectWithoutPos_listInput = {
|
||||||
@@ -399,26 +426,29 @@ export type ProviderUpdateToOneWithWhereWithoutPos_listInput = {
|
|||||||
|
|
||||||
export type ProviderUpdateWithoutPos_listInput = {
|
export type ProviderUpdateWithoutPos_listInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
accounts?: Prisma.AccountUpdateManyWithoutProviderNestedInput
|
accounts?: Prisma.ProviderAccountUpdateManyWithoutUserNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderUncheckedUpdateWithoutPos_listInput = {
|
export type ProviderUncheckedUpdateWithoutPos_listInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutProviderNestedInput
|
accounts?: Prisma.ProviderAccountUncheckedUpdateManyWithoutUserNestedInput
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderCreateWithoutAccountsInput = {
|
export type ProviderCreateWithoutAccountsInput = {
|
||||||
id?: string
|
id?: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
pos_list?: Prisma.PosCreateNestedManyWithoutProviderInput
|
pos_list?: Prisma.PosCreateNestedManyWithoutProviderInput
|
||||||
@@ -426,8 +456,9 @@ export type ProviderCreateWithoutAccountsInput = {
|
|||||||
|
|
||||||
export type ProviderUncheckedCreateWithoutAccountsInput = {
|
export type ProviderUncheckedCreateWithoutAccountsInput = {
|
||||||
id?: string
|
id?: string
|
||||||
|
code: string
|
||||||
|
status?: $Enums.PartnerStatus
|
||||||
name: string
|
name: string
|
||||||
code?: string | null
|
|
||||||
created_at?: Date | string
|
created_at?: Date | string
|
||||||
updated_at?: Date | string
|
updated_at?: Date | string
|
||||||
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutProviderInput
|
pos_list?: Prisma.PosUncheckedCreateNestedManyWithoutProviderInput
|
||||||
@@ -451,8 +482,9 @@ export type ProviderUpdateToOneWithWhereWithoutAccountsInput = {
|
|||||||
|
|
||||||
export type ProviderUpdateWithoutAccountsInput = {
|
export type ProviderUpdateWithoutAccountsInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
pos_list?: Prisma.PosUpdateManyWithoutProviderNestedInput
|
pos_list?: Prisma.PosUpdateManyWithoutProviderNestedInput
|
||||||
@@ -460,8 +492,9 @@ export type ProviderUpdateWithoutAccountsInput = {
|
|||||||
|
|
||||||
export type ProviderUncheckedUpdateWithoutAccountsInput = {
|
export type ProviderUncheckedUpdateWithoutAccountsInput = {
|
||||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
|
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
||||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
pos_list?: Prisma.PosUncheckedUpdateManyWithoutProviderNestedInput
|
pos_list?: Prisma.PosUncheckedUpdateManyWithoutProviderNestedInput
|
||||||
@@ -503,14 +536,15 @@ export type ProviderCountOutputTypeCountPos_listArgs<ExtArgs extends runtime.Typ
|
|||||||
* ProviderCountOutputType without action
|
* ProviderCountOutputType without action
|
||||||
*/
|
*/
|
||||||
export type ProviderCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type ProviderCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
where?: Prisma.AccountWhereInput
|
where?: Prisma.ProviderAccountWhereInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export type ProviderSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
export type ProviderSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
id?: boolean
|
id?: boolean
|
||||||
name?: boolean
|
|
||||||
code?: boolean
|
code?: boolean
|
||||||
|
status?: boolean
|
||||||
|
name?: boolean
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
pos_list?: boolean | Prisma.Provider$pos_listArgs<ExtArgs>
|
pos_list?: boolean | Prisma.Provider$pos_listArgs<ExtArgs>
|
||||||
@@ -522,13 +556,14 @@ export type ProviderSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
|
|
||||||
export type ProviderSelectScalar = {
|
export type ProviderSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
name?: boolean
|
|
||||||
code?: boolean
|
code?: boolean
|
||||||
|
status?: boolean
|
||||||
|
name?: boolean
|
||||||
created_at?: boolean
|
created_at?: boolean
|
||||||
updated_at?: boolean
|
updated_at?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ProviderOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "created_at" | "updated_at", ExtArgs["result"]["provider"]>
|
export type ProviderOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "status" | "name" | "created_at" | "updated_at", ExtArgs["result"]["provider"]>
|
||||||
export type ProviderInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type ProviderInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
pos_list?: boolean | Prisma.Provider$pos_listArgs<ExtArgs>
|
pos_list?: boolean | Prisma.Provider$pos_listArgs<ExtArgs>
|
||||||
accounts?: boolean | Prisma.Provider$accountsArgs<ExtArgs>
|
accounts?: boolean | Prisma.Provider$accountsArgs<ExtArgs>
|
||||||
@@ -539,12 +574,13 @@ export type $ProviderPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|||||||
name: "Provider"
|
name: "Provider"
|
||||||
objects: {
|
objects: {
|
||||||
pos_list: Prisma.$PosPayload<ExtArgs>[]
|
pos_list: Prisma.$PosPayload<ExtArgs>[]
|
||||||
accounts: Prisma.$AccountPayload<ExtArgs>[]
|
accounts: Prisma.$ProviderAccountPayload<ExtArgs>[]
|
||||||
}
|
}
|
||||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||||
id: string
|
id: string
|
||||||
|
code: string
|
||||||
|
status: $Enums.PartnerStatus
|
||||||
name: string
|
name: string
|
||||||
code: string | null
|
|
||||||
created_at: Date
|
created_at: Date
|
||||||
updated_at: Date
|
updated_at: Date
|
||||||
}, ExtArgs["result"]["provider"]>
|
}, ExtArgs["result"]["provider"]>
|
||||||
@@ -888,7 +924,7 @@ readonly fields: ProviderFieldRefs;
|
|||||||
export interface Prisma__ProviderClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
export interface Prisma__ProviderClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||||
pos_list<T extends Prisma.Provider$pos_listArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Provider$pos_listArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PosPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
pos_list<T extends Prisma.Provider$pos_listArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Provider$pos_listArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PosPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
accounts<T extends Prisma.Provider$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Provider$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
accounts<T extends Prisma.Provider$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Provider$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProviderAccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||||
/**
|
/**
|
||||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||||
@@ -919,8 +955,9 @@ export interface Prisma__ProviderClient<T, Null = never, ExtArgs extends runtime
|
|||||||
*/
|
*/
|
||||||
export interface ProviderFieldRefs {
|
export interface ProviderFieldRefs {
|
||||||
readonly id: Prisma.FieldRef<"Provider", 'String'>
|
readonly id: Prisma.FieldRef<"Provider", 'String'>
|
||||||
readonly name: Prisma.FieldRef<"Provider", 'String'>
|
|
||||||
readonly code: Prisma.FieldRef<"Provider", 'String'>
|
readonly code: Prisma.FieldRef<"Provider", 'String'>
|
||||||
|
readonly status: Prisma.FieldRef<"Provider", 'PartnerStatus'>
|
||||||
|
readonly name: Prisma.FieldRef<"Provider", 'String'>
|
||||||
readonly created_at: Prisma.FieldRef<"Provider", 'DateTime'>
|
readonly created_at: Prisma.FieldRef<"Provider", 'DateTime'>
|
||||||
readonly updated_at: Prisma.FieldRef<"Provider", 'DateTime'>
|
readonly updated_at: Prisma.FieldRef<"Provider", 'DateTime'>
|
||||||
}
|
}
|
||||||
@@ -1294,23 +1331,23 @@ export type Provider$pos_listArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
*/
|
*/
|
||||||
export type Provider$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type Provider$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
/**
|
/**
|
||||||
* Select specific fields to fetch from the Account
|
* Select specific fields to fetch from the ProviderAccount
|
||||||
*/
|
*/
|
||||||
select?: Prisma.AccountSelect<ExtArgs> | null
|
select?: Prisma.ProviderAccountSelect<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Omit specific fields from the Account
|
* Omit specific fields from the ProviderAccount
|
||||||
*/
|
*/
|
||||||
omit?: Prisma.AccountOmit<ExtArgs> | null
|
omit?: Prisma.ProviderAccountOmit<ExtArgs> | null
|
||||||
/**
|
/**
|
||||||
* Choose, which related nodes to fetch as well
|
* Choose, which related nodes to fetch as well
|
||||||
*/
|
*/
|
||||||
include?: Prisma.AccountInclude<ExtArgs> | null
|
include?: Prisma.ProviderAccountInclude<ExtArgs> | null
|
||||||
where?: Prisma.AccountWhereInput
|
where?: Prisma.ProviderAccountWhereInput
|
||||||
orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
|
orderBy?: Prisma.ProviderAccountOrderByWithRelationInput | Prisma.ProviderAccountOrderByWithRelationInput[]
|
||||||
cursor?: Prisma.AccountWhereUniqueInput
|
cursor?: Prisma.ProviderAccountWhereUniqueInput
|
||||||
take?: number
|
take?: number
|
||||||
skip?: number
|
skip?: number
|
||||||
distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
|
distinct?: Prisma.ProviderAccountScalarFieldEnum | Prisma.ProviderAccountScalarFieldEnum[]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,7 @@
|
|||||||
import { MiddlewareConsumer, Module, NestModule, RequestMethod } from '@nestjs/common'
|
import { MiddlewareConsumer, Module, NestModule, RequestMethod } from '@nestjs/common'
|
||||||
import { AdminController } from './admin.controller'
|
import { AdminController } from './admin.controller'
|
||||||
import { AdminMiddleware } from './admin.middleware'
|
import { AdminMiddleware } from './admin.middleware'
|
||||||
|
import { AdminConsumersModule } from './consumers/consumers.module'
|
||||||
import { AdminDeviceBrandsModule } from './device-brands/device-brands.module'
|
import { AdminDeviceBrandsModule } from './device-brands/device-brands.module'
|
||||||
import { AdminDevicesModule } from './devices/devices.module'
|
import { AdminDevicesModule } from './devices/devices.module'
|
||||||
import { AdminGuildsModule } from './guilds/guilds.module'
|
import { AdminGuildsModule } from './guilds/guilds.module'
|
||||||
@@ -24,6 +25,7 @@ import { AdminUsersModule } from './users/users.module'
|
|||||||
AdminDeviceBrandsModule,
|
AdminDeviceBrandsModule,
|
||||||
AdminDevicesModule,
|
AdminDevicesModule,
|
||||||
AdminLicensesModule,
|
AdminLicensesModule,
|
||||||
|
AdminConsumersModule,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class AdminModule implements NestModule {
|
export class AdminModule implements NestModule {
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
import { Body, Controller, Get, Param, Patch, Post } from '@nestjs/common'
|
||||||
|
import { ApiTags } from '@nestjs/swagger'
|
||||||
|
import { AccountsService } from './accounts.service'
|
||||||
|
import { CreateConsumerAccountDto, UpdateAccountDto } from './dto/account.dto'
|
||||||
|
|
||||||
|
@ApiTags('ConsumerAccounts')
|
||||||
|
@Controller('admin/consumers/:consumerId/accounts')
|
||||||
|
export class AccountsController {
|
||||||
|
constructor(private readonly accountsService: AccountsService) {}
|
||||||
|
|
||||||
|
@Get()
|
||||||
|
async findAll(@Param('consumerId') consumerId: string) {
|
||||||
|
return this.accountsService.findAll(consumerId)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Get(':id')
|
||||||
|
async findOne(@Param('id') id: string) {
|
||||||
|
return this.accountsService.findOne(id)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Post()
|
||||||
|
async create(
|
||||||
|
@Param('consumerId') consumerId: string,
|
||||||
|
@Body() data: CreateConsumerAccountDto,
|
||||||
|
) {
|
||||||
|
return this.accountsService.create(consumerId, data)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Patch(':id')
|
||||||
|
async update(@Param('id') id: string, @Body() data: UpdateAccountDto) {
|
||||||
|
return this.accountsService.update(id, data)
|
||||||
|
}
|
||||||
|
|
||||||
|
// @Delete(':id')
|
||||||
|
// async delete(@Param('id') id: string) {
|
||||||
|
// return this.accountsService.delete(id)
|
||||||
|
// }
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import { PrismaModule } from '@/prisma/prisma.module'
|
||||||
|
import { Module } from '@nestjs/common'
|
||||||
|
import { AccountsController } from './accounts.controller'
|
||||||
|
import { AccountsService } from './accounts.service'
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [PrismaModule],
|
||||||
|
controllers: [AccountsController],
|
||||||
|
providers: [AccountsService],
|
||||||
|
exports: [AccountsService],
|
||||||
|
})
|
||||||
|
export class AdminUserAccountsModule {}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
import { PasswordUtil } from '@/common/utils/password.util'
|
||||||
|
import { AccountStatus, AccountType } from '@/generated/prisma/enums'
|
||||||
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
|
import { Injectable } from '@nestjs/common'
|
||||||
|
import { ResponseMapper } from 'common/response/response-mapper'
|
||||||
|
import { CreateConsumerAccountDto, UpdateAccountDto } from './dto/account.dto'
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class AccountsService {
|
||||||
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
|
async findAll(consumerId: string) {
|
||||||
|
const accounts = await this.prisma.consumerAccount.findMany({
|
||||||
|
where: { user_id: consumerId },
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
role: true,
|
||||||
|
created_at: true,
|
||||||
|
account: {
|
||||||
|
select: {
|
||||||
|
username: true,
|
||||||
|
status: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
return ResponseMapper.list(accounts)
|
||||||
|
}
|
||||||
|
|
||||||
|
async findOne(id: string) {
|
||||||
|
const account = await this.prisma.consumerAccount.findMany({
|
||||||
|
where: { id },
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
role: true,
|
||||||
|
created_at: true,
|
||||||
|
account: {
|
||||||
|
select: {
|
||||||
|
username: true,
|
||||||
|
status: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
return ResponseMapper.single(account)
|
||||||
|
}
|
||||||
|
|
||||||
|
async create(consumerId: string, data: CreateConsumerAccountDto) {
|
||||||
|
const account = await this.prisma.consumerAccount.create({
|
||||||
|
data: {
|
||||||
|
role: data.role,
|
||||||
|
account: {
|
||||||
|
create: {
|
||||||
|
password: await PasswordUtil.hash(data.password),
|
||||||
|
status: AccountStatus.ACTIVE,
|
||||||
|
type: AccountType.CONSUMER,
|
||||||
|
username: data.username,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
user: {
|
||||||
|
connect: {
|
||||||
|
id: consumerId,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
return ResponseMapper.create(account)
|
||||||
|
}
|
||||||
|
|
||||||
|
async update(id: string, data: UpdateAccountDto) {
|
||||||
|
const account = await this.prisma.account.update({ where: { id }, data })
|
||||||
|
return ResponseMapper.update(account)
|
||||||
|
}
|
||||||
|
|
||||||
|
async delete(id: string) {
|
||||||
|
await this.prisma.account.delete({ where: { id } })
|
||||||
|
return ResponseMapper.delete()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||||
|
import { IsEnum, IsOptional, IsString } from 'class-validator'
|
||||||
|
import { AccountStatus, ConsumerRole } from 'generated/prisma/enums'
|
||||||
|
|
||||||
|
export class CreateConsumerAccountDto {
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
username: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
password: string
|
||||||
|
|
||||||
|
@IsEnum(ConsumerRole)
|
||||||
|
@ApiProperty({ required: true, enum: ConsumerRole })
|
||||||
|
role: ConsumerRole
|
||||||
|
}
|
||||||
|
|
||||||
|
export class UpdateAccountDto extends PartialType(CreateConsumerAccountDto) {
|
||||||
|
@IsOptional()
|
||||||
|
@IsEnum(AccountStatus)
|
||||||
|
@ApiProperty({ enum: AccountStatus })
|
||||||
|
status?: AccountStatus
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||||
|
import { IsEnum, IsOptional, IsString } from 'class-validator'
|
||||||
|
import { AccountStatus, AccountType } from 'generated/prisma/enums'
|
||||||
|
|
||||||
|
export class CreateAccountDto {
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty()
|
||||||
|
username: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty()
|
||||||
|
password: string
|
||||||
|
|
||||||
|
@IsEnum(AccountType)
|
||||||
|
@ApiProperty({ enum: AccountType })
|
||||||
|
type: AccountType
|
||||||
|
}
|
||||||
|
|
||||||
|
export class UpdateAccountDto extends PartialType(CreateAccountDto) {
|
||||||
|
@IsOptional()
|
||||||
|
@IsEnum(AccountStatus)
|
||||||
|
@ApiProperty({ enum: AccountStatus })
|
||||||
|
status?: AccountStatus
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import { Body, Controller, Get, Param, Post } from '@nestjs/common'
|
||||||
|
import { ApiTags } from '@nestjs/swagger'
|
||||||
|
import { CreateAccountDto } from './dto/permission.dto'
|
||||||
|
import { AccountsService } from './permissions.service'
|
||||||
|
|
||||||
|
@ApiTags('AdminAccounts')
|
||||||
|
@Controller('admin/users/:userId/accounts/:accountId/permissions')
|
||||||
|
export class AccountPermissionsController {
|
||||||
|
constructor(private readonly service: AccountsService) {}
|
||||||
|
|
||||||
|
@Get()
|
||||||
|
async findAll(@Param('userId') userId: string, @Param('accountId') accountId: string) {
|
||||||
|
return this.service.findAll(userId, accountId)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Post()
|
||||||
|
async create(@Param('userId') userId: string, @Body() data: CreateAccountDto) {
|
||||||
|
return this.service.create(userId, data)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import { PrismaModule } from '@/prisma/prisma.module'
|
||||||
|
import { Module } from '@nestjs/common'
|
||||||
|
import { AccountPermissionsController } from './permissions.controller'
|
||||||
|
import { AccountsService } from './permissions.service'
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [PrismaModule],
|
||||||
|
controllers: [AccountPermissionsController],
|
||||||
|
providers: [AccountsService],
|
||||||
|
exports: [AccountsService],
|
||||||
|
})
|
||||||
|
export class AdminAccountPermissionsModule {}
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
|
import { Injectable } from '@nestjs/common'
|
||||||
|
import { ResponseMapper } from 'common/response/response-mapper'
|
||||||
|
import { CreateAccountDto } from './dto/permission.dto'
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class AccountsService {
|
||||||
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
|
async findAll(userId: string, account_id: string) {
|
||||||
|
const businessActivities = await this.prisma.businessActivity.findMany({
|
||||||
|
where: {
|
||||||
|
user_id: userId,
|
||||||
|
},
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
name: true,
|
||||||
|
complexes: {
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
name: true,
|
||||||
|
pos_list: {
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
name: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
const permissions = await this.prisma.permissionConsumer.findMany({
|
||||||
|
where: {
|
||||||
|
account_id,
|
||||||
|
},
|
||||||
|
select: {
|
||||||
|
posPermissions: {
|
||||||
|
select: {
|
||||||
|
pos_id: true,
|
||||||
|
role: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
businessPermissions: {
|
||||||
|
select: {
|
||||||
|
business_id: true,
|
||||||
|
role: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
complexPermissions: {
|
||||||
|
select: {
|
||||||
|
complex_id: true,
|
||||||
|
role: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
const businesses = [] as any
|
||||||
|
const complexes = [] as any
|
||||||
|
const poses = [] as any
|
||||||
|
|
||||||
|
businessActivities.forEach(businessActivity => {
|
||||||
|
businesses.push({
|
||||||
|
id: businessActivity.id,
|
||||||
|
name: businessActivity.name,
|
||||||
|
hasAccess: false,
|
||||||
|
role: null,
|
||||||
|
})
|
||||||
|
|
||||||
|
businessActivity.complexes.forEach(complex => {
|
||||||
|
complexes.push({
|
||||||
|
id: complex.id,
|
||||||
|
name: complex.name,
|
||||||
|
hasAccess: false,
|
||||||
|
role: null,
|
||||||
|
})
|
||||||
|
|
||||||
|
complex.pos_list.forEach(pos => {
|
||||||
|
poses.push({
|
||||||
|
id: pos.id,
|
||||||
|
name: pos.name,
|
||||||
|
hasAccess: false,
|
||||||
|
role: null,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
permissions.forEach(permission => {
|
||||||
|
permission.posPermissions.forEach(posPermission => {
|
||||||
|
poses.map(pos => {
|
||||||
|
if (pos.id === posPermission.pos_id) {
|
||||||
|
return {
|
||||||
|
...pos,
|
||||||
|
role: posPermission.role,
|
||||||
|
hasAccess: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return pos
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
async findOne(id: string) {
|
||||||
|
const account = await this.prisma.account.findUnique({
|
||||||
|
where: { id },
|
||||||
|
})
|
||||||
|
return ResponseMapper.single(account)
|
||||||
|
}
|
||||||
|
|
||||||
|
async create(userId: string, data: CreateAccountDto) {
|
||||||
|
return ResponseMapper.create({})
|
||||||
|
}
|
||||||
|
}
|
||||||
+9
-9
@@ -2,35 +2,35 @@ import { Body, Controller, Get, Param, Post } from '@nestjs/common'
|
|||||||
import { BusinessActivitiesService } from './business-activities.service'
|
import { BusinessActivitiesService } from './business-activities.service'
|
||||||
import { CreateBusinessActivitiesDto } from './dto/create-business-activities.dto'
|
import { CreateBusinessActivitiesDto } from './dto/create-business-activities.dto'
|
||||||
|
|
||||||
@Controller('admin/users/:userId/business_activities')
|
@Controller('admin/consumers/:consumerId/business_activities')
|
||||||
export class BusinessActivitiesController {
|
export class BusinessActivitiesController {
|
||||||
constructor(private readonly businessActivitiesService: BusinessActivitiesService) {}
|
constructor(private readonly businessActivitiesService: BusinessActivitiesService) {}
|
||||||
|
|
||||||
@Get()
|
@Get()
|
||||||
async findAll(@Param('userId') userId: string) {
|
async findAll(@Param('consumerId') consumerId: string) {
|
||||||
return this.businessActivitiesService.findAll(userId)
|
return this.businessActivitiesService.findAll(consumerId)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get(':id')
|
@Get(':id')
|
||||||
async findOne(@Param('userId') userId: string, @Param('id') id: string) {
|
async findOne(@Param('consumerId') consumerId: string, @Param('id') id: string) {
|
||||||
return this.businessActivitiesService.findOne(userId, id)
|
return this.businessActivitiesService.findOne(consumerId, id)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Post()
|
@Post()
|
||||||
async create(
|
async create(
|
||||||
@Param('userId') userId: string,
|
@Param('consumerId') consumerId: string,
|
||||||
@Body() data: CreateBusinessActivitiesDto,
|
@Body() data: CreateBusinessActivitiesDto,
|
||||||
) {
|
) {
|
||||||
return this.businessActivitiesService.create(userId, data)
|
return this.businessActivitiesService.create(consumerId, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Put(':id')
|
// @Put(':id')
|
||||||
// async update(
|
// async update(
|
||||||
// @Param('userId') userId: string,
|
// @Param('consumerId') consumerId: string,
|
||||||
// @Param('id') id: string,
|
// @Param('id') id: string,
|
||||||
// @Body() data: UpdateBusinessActivityDto,
|
// @Body() data: UpdateBusinessActivityDto,
|
||||||
// ) {
|
// ) {
|
||||||
// return this.businessActivitiesService.update(userId, id, data)
|
// return this.businessActivitiesService.update(consumerId, id, data)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// @Delete(':id')
|
// @Delete(':id')
|
||||||
+1
-1
@@ -9,4 +9,4 @@ import { AdminBusinessActivityComplexesModule } from './complexes/complexes.modu
|
|||||||
controllers: [BusinessActivitiesController],
|
controllers: [BusinessActivitiesController],
|
||||||
providers: [BusinessActivitiesService],
|
providers: [BusinessActivitiesService],
|
||||||
})
|
})
|
||||||
export class AdminUserBusinessActivitiesModule {}
|
export class AdminConsumerBusinessActivitiesModule {}
|
||||||
+2
-2
@@ -24,7 +24,7 @@ export class BusinessActivitiesService {
|
|||||||
async findAll(userId: string) {
|
async findAll(userId: string) {
|
||||||
const businessActivities = await this.prisma.businessActivity.findMany({
|
const businessActivities = await this.prisma.businessActivity.findMany({
|
||||||
where: {
|
where: {
|
||||||
owner_id: userId,
|
user_id: userId,
|
||||||
},
|
},
|
||||||
select: this.defaultSelect,
|
select: this.defaultSelect,
|
||||||
})
|
})
|
||||||
@@ -33,7 +33,7 @@ export class BusinessActivitiesService {
|
|||||||
|
|
||||||
async findOne(userId: string, id: string) {
|
async findOne(userId: string, id: string) {
|
||||||
const businessActivity = await this.prisma.businessActivity.findUnique({
|
const businessActivity = await this.prisma.businessActivity.findUnique({
|
||||||
where: { owner_id: userId, id },
|
where: { user_id: userId, id },
|
||||||
select: this.defaultSelect,
|
select: this.defaultSelect,
|
||||||
})
|
})
|
||||||
return ResponseMapper.single(businessActivity)
|
return ResponseMapper.single(businessActivity)
|
||||||
+9
-7
@@ -4,25 +4,27 @@ import { BusinessActivityComplexesService } from './complexes.service'
|
|||||||
import { CreateComplexDto, UpdateComplexDto } from './dto/complex.dto'
|
import { CreateComplexDto, UpdateComplexDto } from './dto/complex.dto'
|
||||||
|
|
||||||
@ApiTags('AdminBusinessActivityComplexes')
|
@ApiTags('AdminBusinessActivityComplexes')
|
||||||
@Controller('admin/users/:userId/business_activities/:businessActivityId/complexes')
|
@Controller(
|
||||||
|
'admin/consumers/:consumerId/business_activities/:businessActivityId/complexes',
|
||||||
|
)
|
||||||
export class BusinessActivityComplexesController {
|
export class BusinessActivityComplexesController {
|
||||||
constructor(private readonly service: BusinessActivityComplexesService) {}
|
constructor(private readonly service: BusinessActivityComplexesService) {}
|
||||||
|
|
||||||
@Get()
|
@Get()
|
||||||
async findAll(
|
async findAll(
|
||||||
@Param('userId') userId: string,
|
@Param('consumerId') consumerId: string,
|
||||||
@Param('businessActivityId') businessActivityId: string,
|
@Param('businessActivityId') businessActivityId: string,
|
||||||
) {
|
) {
|
||||||
return this.service.findAll(userId, businessActivityId)
|
return this.service.findAll(consumerId, businessActivityId)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get(':id')
|
@Get(':id')
|
||||||
async findOne(
|
async findOne(
|
||||||
@Param('userId') userId: string,
|
@Param('consumerId') consumerId: string,
|
||||||
@Param('businessActivityId') businessActivityId: string,
|
@Param('businessActivityId') businessActivityId: string,
|
||||||
@Param('id') id: string,
|
@Param('id') id: string,
|
||||||
) {
|
) {
|
||||||
return this.service.findOne(userId, businessActivityId, id)
|
return this.service.findOne(consumerId, businessActivityId, id)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Post()
|
@Post()
|
||||||
@@ -36,11 +38,11 @@ export class BusinessActivityComplexesController {
|
|||||||
@Patch(':id')
|
@Patch(':id')
|
||||||
async update(
|
async update(
|
||||||
@Param('id') id: string,
|
@Param('id') id: string,
|
||||||
@Param('userId') userId: string,
|
@Param('consumerId') consumerId: string,
|
||||||
@Param('businessActivityId') businessActivityId: string,
|
@Param('businessActivityId') businessActivityId: string,
|
||||||
@Body() data: UpdateComplexDto,
|
@Body() data: UpdateComplexDto,
|
||||||
) {
|
) {
|
||||||
return this.service.update(userId, businessActivityId, id, data)
|
return this.service.update(consumerId, businessActivityId, id, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Delete(':id')
|
// @Delete(':id')
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common'
|
||||||
|
import { AdminUsersService } from './consumers.service'
|
||||||
|
import { CreateConsumerDto, UpdateConsumerDto } from './dto/consumer.dto'
|
||||||
|
|
||||||
|
@Controller('admin/consumers')
|
||||||
|
export class AdminUsersController {
|
||||||
|
constructor(private readonly usersService: AdminUsersService) {}
|
||||||
|
|
||||||
|
@Get()
|
||||||
|
async findAll() {
|
||||||
|
return this.usersService.findAll()
|
||||||
|
}
|
||||||
|
|
||||||
|
@Get(':id')
|
||||||
|
async findOne(@Param('id') id: string) {
|
||||||
|
return this.usersService.findOne(id)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Post()
|
||||||
|
async create(@Body() data: CreateConsumerDto) {
|
||||||
|
return this.usersService.create(data)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Patch(':id')
|
||||||
|
async update(@Param('id') id: string, @Body() data: UpdateConsumerDto) {
|
||||||
|
return this.usersService.update(id, data)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Delete(':id')
|
||||||
|
async delete(@Param('id') id: string) {
|
||||||
|
return this.usersService.delete(id)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import { PrismaModule } from '@/prisma/prisma.module'
|
||||||
|
import { Module } from '@nestjs/common'
|
||||||
|
import { AdminUserAccountsModule } from './accounts/accounts.module'
|
||||||
|
import { AdminConsumerBusinessActivitiesModule } from './business-activities/business-activities.module'
|
||||||
|
import { AdminUsersController } from './consumers.controller'
|
||||||
|
import { AdminUsersService } from './consumers.service'
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [PrismaModule, AdminUserAccountsModule, AdminConsumerBusinessActivitiesModule],
|
||||||
|
controllers: [AdminUsersController],
|
||||||
|
providers: [AdminUsersService],
|
||||||
|
exports: [AdminUserAccountsModule],
|
||||||
|
})
|
||||||
|
export class AdminConsumersModule {}
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
import { PasswordUtil } from '@/common/utils/password.util'
|
||||||
|
import { AccountStatus, AccountType, ConsumerRole } from '@/generated/prisma/enums'
|
||||||
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
|
import { Injectable } from '@nestjs/common'
|
||||||
|
import { ResponseMapper } from 'common/response/response-mapper'
|
||||||
|
import { CreateConsumerDto, UpdateConsumerDto } from './dto/consumer.dto'
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class AdminUsersService {
|
||||||
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
|
async findAll() {
|
||||||
|
const [consumers, count] = await this.prisma.$transaction([
|
||||||
|
this.prisma.consumer.findMany({
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
first_name: true,
|
||||||
|
last_name: true,
|
||||||
|
mobile_number: true,
|
||||||
|
status: true,
|
||||||
|
created_at: true,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
this.prisma.consumer.count(),
|
||||||
|
])
|
||||||
|
return ResponseMapper.paginate(
|
||||||
|
consumers.map(consumer => ({
|
||||||
|
...consumer,
|
||||||
|
fullname: `${consumer.first_name} ${consumer.last_name}`,
|
||||||
|
})),
|
||||||
|
{ count },
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
async findOne(id: string) {
|
||||||
|
const consumer = await this.prisma.consumer.findUniqueOrThrow({
|
||||||
|
where: { id },
|
||||||
|
select: {
|
||||||
|
id: true,
|
||||||
|
first_name: true,
|
||||||
|
last_name: true,
|
||||||
|
mobile_number: true,
|
||||||
|
status: true,
|
||||||
|
created_at: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
return ResponseMapper.single({
|
||||||
|
...consumer,
|
||||||
|
fullname: `${consumer?.first_name} ${consumer?.last_name}`,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
async create(data: CreateConsumerDto) {
|
||||||
|
const { username, password, ...rest } = data
|
||||||
|
return this.prisma.consumer.create({
|
||||||
|
data: {
|
||||||
|
...rest,
|
||||||
|
accounts: {
|
||||||
|
create: {
|
||||||
|
role: ConsumerRole.OWNER,
|
||||||
|
account: {
|
||||||
|
create: {
|
||||||
|
username,
|
||||||
|
password: await PasswordUtil.hash(password),
|
||||||
|
type: AccountType.CONSUMER,
|
||||||
|
status: AccountStatus.ACTIVE,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
async update(id: string, data: UpdateConsumerDto) {
|
||||||
|
return this.prisma.admin.update({ where: { id }, data })
|
||||||
|
}
|
||||||
|
|
||||||
|
async delete(id: string) {
|
||||||
|
return this.prisma.admin.delete({ where: { id } })
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { ConsumerStatus } from '@/generated/prisma/enums'
|
||||||
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||||
|
import { IsEnum, IsString } from 'class-validator'
|
||||||
|
|
||||||
|
export class CreateConsumerDto {
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
mobile_number: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
first_name: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
last_name: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
username: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
password: string
|
||||||
|
}
|
||||||
|
export class UpdateConsumerDto extends PartialType(CreateConsumerDto) {
|
||||||
|
@IsEnum(ConsumerStatus)
|
||||||
|
@ApiProperty({ enum: ConsumerStatus })
|
||||||
|
status: ConsumerStatus
|
||||||
|
}
|
||||||
@@ -14,15 +14,16 @@ export class GoodsService {
|
|||||||
base_sale_price: true,
|
base_sale_price: true,
|
||||||
is_default_guild_good: true,
|
is_default_guild_good: true,
|
||||||
local_sku: true,
|
local_sku: true,
|
||||||
guild_id: true,
|
|
||||||
} as GoodOmit
|
} as GoodOmit
|
||||||
|
|
||||||
async findAll(guildId: string) {
|
async findAll(guildId: string) {
|
||||||
const [goods, count] = await this.prisma.$transaction([
|
const [goods, count] = await this.prisma.$transaction([
|
||||||
this.prisma.good.findMany({
|
this.prisma.good.findMany({
|
||||||
where: {
|
where: {
|
||||||
guild_id: guildId,
|
|
||||||
is_default_guild_good: true,
|
is_default_guild_good: true,
|
||||||
|
category: {
|
||||||
|
guild_id: guildId,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
include: {
|
include: {
|
||||||
category: {
|
category: {
|
||||||
@@ -44,9 +45,11 @@ export class GoodsService {
|
|||||||
async findOne(guild_id: string, id: string) {
|
async findOne(guild_id: string, id: string) {
|
||||||
const good = await this.prisma.good.findUnique({
|
const good = await this.prisma.good.findUnique({
|
||||||
where: {
|
where: {
|
||||||
guild_id,
|
|
||||||
id,
|
id,
|
||||||
is_default_guild_good: true,
|
is_default_guild_good: true,
|
||||||
|
category: {
|
||||||
|
guild_id,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
include: {
|
include: {
|
||||||
@@ -69,11 +72,6 @@ export class GoodsService {
|
|||||||
|
|
||||||
const good = await this.prisma.good.create({
|
const good = await this.prisma.good.create({
|
||||||
data: {
|
data: {
|
||||||
guild: {
|
|
||||||
connect: {
|
|
||||||
id: guild_id,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
category: {
|
category: {
|
||||||
connect: {
|
connect: {
|
||||||
id: category_id,
|
id: category_id,
|
||||||
|
|||||||
@@ -1,16 +1,32 @@
|
|||||||
import { IsNumber, IsOptional, IsString } from 'class-validator'
|
import { PartnerStatus } from '@/generated/prisma/enums'
|
||||||
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||||
|
import { IsEnum, IsNumber, IsOptional, IsString } from 'class-validator'
|
||||||
|
|
||||||
export class CreatePartnerDto {
|
export class CreatePartnerDto {
|
||||||
@IsString()
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
name: string
|
name: string
|
||||||
|
|
||||||
@IsOptional()
|
|
||||||
@IsString()
|
@IsString()
|
||||||
code?: string
|
@ApiProperty({ required: true })
|
||||||
|
code: string
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsNumber()
|
@IsNumber()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
license_quota?: number
|
license_quota?: number
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
username: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
password: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UpdatePartnerDto extends CreatePartnerDto {}
|
export class UpdatePartnerDto extends PartialType(CreatePartnerDto) {
|
||||||
|
@IsEnum(PartnerStatus)
|
||||||
|
@ApiProperty({ enum: PartnerStatus })
|
||||||
|
status: PartnerStatus
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,101 +8,100 @@ export class PartnerLicensesService {
|
|||||||
constructor(private readonly prisma: PrismaService) {}
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
async findAll(partnerId: string) {
|
async findAll(partnerId: string) {
|
||||||
const licenses = await this.prisma.license.findMany({
|
// const licenses = await this.prisma.license.findMany({
|
||||||
where: { partner_id: partnerId },
|
// where: { partner_id: partnerId },
|
||||||
include: {
|
// include: {
|
||||||
pos: {
|
// pos: {
|
||||||
include: {
|
// include: {
|
||||||
complex: true,
|
// complex: true,
|
||||||
provider: true,
|
// provider: true,
|
||||||
|
// accounts: {
|
||||||
accounts: {
|
// include: {
|
||||||
include: {
|
// user: true,
|
||||||
user: true,
|
// },
|
||||||
},
|
// omit: {
|
||||||
omit: {
|
// business_id: true,
|
||||||
business_id: true,
|
// partner_id: true,
|
||||||
partner_id: true,
|
// provider_id: true,
|
||||||
provider_id: true,
|
// pos_id: true,
|
||||||
pos_id: true,
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// device: {
|
||||||
device: {
|
// include: {
|
||||||
include: {
|
// brand: true,
|
||||||
brand: true,
|
// },
|
||||||
},
|
// omit: {
|
||||||
omit: {
|
// brand_id: true,
|
||||||
brand_id: true,
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// omit: {
|
||||||
omit: {
|
// pos_id: true,
|
||||||
pos_id: true,
|
// partner_id: true,
|
||||||
partner_id: true,
|
// },
|
||||||
},
|
// })
|
||||||
})
|
// return ResponseMapper.list(
|
||||||
return ResponseMapper.list(
|
// licenses.map(license => {
|
||||||
licenses.map(license => {
|
// const { pos, ...rest } = license
|
||||||
const { pos, ...rest } = license
|
// const { accounts, ...posRest } = pos
|
||||||
const { accounts, ...posRest } = pos
|
// return {
|
||||||
return {
|
// account: accounts[0],
|
||||||
account: accounts[0],
|
// pos: posRest,
|
||||||
pos: posRest,
|
// ...rest,
|
||||||
...rest,
|
// }
|
||||||
}
|
// }),
|
||||||
}),
|
// )
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async findOne(partnerId: string, id: string) {
|
async findOne(partnerId: string, id: string) {
|
||||||
const license = await this.prisma.license.findFirst({
|
// const license = await this.prisma.license.findFirst({
|
||||||
where: { id, partner_id: partnerId },
|
// where: { id, partner_id: partnerId },
|
||||||
include: {
|
// include: {
|
||||||
pos: {
|
// pos: {
|
||||||
include: {
|
// include: {
|
||||||
complex: true,
|
// complex: true,
|
||||||
provider: true,
|
// provider: true,
|
||||||
|
|
||||||
accounts: {
|
// accounts: {
|
||||||
include: {
|
// include: {
|
||||||
user: true,
|
// user: true,
|
||||||
},
|
// },
|
||||||
omit: {
|
// omit: {
|
||||||
business_id: true,
|
// business_id: true,
|
||||||
partner_id: true,
|
// partner_id: true,
|
||||||
provider_id: true,
|
// provider_id: true,
|
||||||
pos_id: true,
|
// pos_id: true,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
device: {
|
// device: {
|
||||||
include: {
|
// include: {
|
||||||
brand: true,
|
// brand: true,
|
||||||
},
|
// },
|
||||||
omit: {
|
// omit: {
|
||||||
brand_id: true,
|
// brand_id: true,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
omit: {
|
// omit: {
|
||||||
pos_id: true,
|
// pos_id: true,
|
||||||
partner_id: true,
|
// partner_id: true,
|
||||||
},
|
// },
|
||||||
})
|
// })
|
||||||
if (license) {
|
// if (license) {
|
||||||
const { pos, ...rest } = license
|
// const { pos, ...rest } = license
|
||||||
const { accounts, ...posRest } = pos
|
// const { accounts, ...posRest } = pos
|
||||||
return ResponseMapper.single({
|
// return ResponseMapper.single({
|
||||||
account: accounts[0],
|
// account: accounts[0],
|
||||||
pos: posRest,
|
// pos: posRest,
|
||||||
...rest,
|
// ...rest,
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
|
||||||
return ResponseMapper.single(license)
|
return ResponseMapper.single({})
|
||||||
}
|
}
|
||||||
|
|
||||||
async create(partnerId: string, data: CreatePartnerLicenseDto) {
|
async create(partnerId: string, data: CreatePartnerLicenseDto) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common'
|
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common'
|
||||||
import { AccountsService } from './accounts.service'
|
import { AccountsService } from './accounts.service'
|
||||||
import { CreateAccountDto, UpdateAccountDto } from './dto/account.dto'
|
import { CreatePartnerAccountDto, UpdateAccountDto } from './dto/account.dto'
|
||||||
|
|
||||||
@Controller('admin/partners/:partnerId/accounts')
|
@Controller('admin/partners/:partnerId/accounts')
|
||||||
export class AccountsController {
|
export class AccountsController {
|
||||||
@@ -17,7 +17,10 @@ export class AccountsController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Post()
|
@Post()
|
||||||
async create(@Param('partnerId') partnerId: string, @Body() data: CreateAccountDto) {
|
async create(
|
||||||
|
@Param('partnerId') partnerId: string,
|
||||||
|
@Body() data: CreatePartnerAccountDto,
|
||||||
|
) {
|
||||||
return this.accountsService.create(partnerId, data)
|
return this.accountsService.create(partnerId, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,67 +1,66 @@
|
|||||||
|
import { PartnerAccountSelect } from '@/generated/prisma/models'
|
||||||
import { PrismaService } from '@/prisma/prisma.service'
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
import { Injectable } from '@nestjs/common'
|
import { Injectable } from '@nestjs/common'
|
||||||
import { ResponseMapper } from 'common/response/response-mapper'
|
import { ResponseMapper } from 'common/response/response-mapper'
|
||||||
import { PasswordUtil } from 'common/utils/password.util'
|
import { PasswordUtil } from 'common/utils/password.util'
|
||||||
import { AccountStatus, AccountType } from 'generated/prisma/enums'
|
import { AccountStatus, AccountType, PartnerRole } from 'generated/prisma/enums'
|
||||||
import { CreateAccountDto, UpdateAccountDto } from './dto/account.dto'
|
import { CreatePartnerAccountDto, UpdateAccountDto } from './dto/account.dto'
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AccountsService {
|
export class AccountsService {
|
||||||
constructor(private readonly prisma: PrismaService) {}
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
async findAll(partnerId: string) {
|
private readonly defaultSelect = {
|
||||||
const accounts = await this.prisma.account.findMany({
|
id: true,
|
||||||
where: { partner_id: partnerId },
|
role: true,
|
||||||
omit: {
|
created_at: true,
|
||||||
password: true,
|
account: {
|
||||||
user_id: true,
|
select: {
|
||||||
partner_id: true,
|
username: true,
|
||||||
type: true,
|
status: true,
|
||||||
pos_id: true,
|
|
||||||
provider_id: true,
|
|
||||||
business_id: true,
|
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
} as PartnerAccountSelect
|
||||||
|
|
||||||
|
async findAll(partnerId: string) {
|
||||||
|
const accounts = await this.prisma.partnerAccount.findMany({
|
||||||
|
where: { user_id: partnerId },
|
||||||
|
select: this.defaultSelect,
|
||||||
})
|
})
|
||||||
return ResponseMapper.list(accounts)
|
return ResponseMapper.list(accounts)
|
||||||
}
|
}
|
||||||
|
|
||||||
async findOne(id: string) {
|
async findOne(id: string) {
|
||||||
const account = await this.prisma.account.findUnique({
|
const account = await this.prisma.partnerAccount.findUnique({
|
||||||
where: { id },
|
where: { id },
|
||||||
omit: { password: true, user_id: true },
|
select: this.defaultSelect,
|
||||||
include: {
|
|
||||||
partner: true,
|
|
||||||
user: true,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
return ResponseMapper.single(account)
|
return ResponseMapper.single(account)
|
||||||
}
|
}
|
||||||
|
|
||||||
async create(partnerId: string, data: CreateAccountDto) {
|
async create(partnerId: string, data: CreatePartnerAccountDto) {
|
||||||
const { username, password, ...userData } = data
|
const { username, password } = data
|
||||||
|
|
||||||
const result = await this.prisma.$transaction(async tx => {
|
const result = await this.prisma.$transaction(async tx => {
|
||||||
let user = await tx.user.upsert({
|
|
||||||
where: {
|
|
||||||
mobile_number: userData.mobile_number,
|
|
||||||
},
|
|
||||||
update: {},
|
|
||||||
create: userData,
|
|
||||||
})
|
|
||||||
|
|
||||||
const hashedPassword = await PasswordUtil.hash(password)
|
const hashedPassword = await PasswordUtil.hash(password)
|
||||||
|
|
||||||
const dataToCreate = {
|
const account = await tx.partnerAccount.create({
|
||||||
username,
|
data: {
|
||||||
status: AccountStatus.ACTIVE,
|
role: PartnerRole.MANAGER,
|
||||||
password: hashedPassword,
|
account: {
|
||||||
user_id: user.id,
|
create: {
|
||||||
type: AccountType.PARTNER,
|
username,
|
||||||
partner_id: partnerId, // Connect account to partner
|
password: hashedPassword,
|
||||||
}
|
status: AccountStatus.ACTIVE,
|
||||||
|
type: AccountType.PARTNER,
|
||||||
const account = await tx.account.create({
|
},
|
||||||
data: dataToCreate,
|
},
|
||||||
|
user: {
|
||||||
|
connect: {
|
||||||
|
id: partnerId,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
return account
|
return account
|
||||||
|
|||||||
@@ -1,37 +1,20 @@
|
|||||||
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||||
import { IsEnum, IsOptional, IsString } from 'class-validator'
|
import { IsEnum, IsOptional, IsString } from 'class-validator'
|
||||||
import { AccountStatus, AccountType } from 'generated/prisma/enums'
|
import { PartnerRole } from 'generated/prisma/enums'
|
||||||
import { CreateUserDto } from '../../../users/dto/user.dto'
|
|
||||||
|
|
||||||
export class CreateAccountDto extends CreateUserDto {
|
export class CreatePartnerAccountDto {
|
||||||
@IsString()
|
@IsString()
|
||||||
|
@ApiProperty({})
|
||||||
username: string
|
username: string
|
||||||
|
|
||||||
@IsOptional()
|
|
||||||
@IsEnum(AccountType)
|
|
||||||
type?: AccountType
|
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
|
@ApiProperty({})
|
||||||
password: string
|
password: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UpdateAccountDto {
|
export class UpdateAccountDto extends PartialType(CreatePartnerAccountDto) {
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsString()
|
@IsEnum(PartnerRole)
|
||||||
username?: string
|
@ApiProperty({ enum: PartnerRole })
|
||||||
|
role?: PartnerRole
|
||||||
@IsOptional()
|
|
||||||
@IsEnum(AccountType)
|
|
||||||
type?: AccountType
|
|
||||||
|
|
||||||
@IsOptional()
|
|
||||||
@IsEnum(AccountStatus)
|
|
||||||
status?: AccountStatus
|
|
||||||
|
|
||||||
@IsOptional()
|
|
||||||
@IsString()
|
|
||||||
password?: string
|
|
||||||
|
|
||||||
// @IsOptional()
|
|
||||||
// @IsString()
|
|
||||||
// user_id?: string
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
import { PasswordUtil } from '@/common/utils/password.util'
|
||||||
|
import {
|
||||||
|
AccountStatus,
|
||||||
|
AccountType,
|
||||||
|
PartnerRole,
|
||||||
|
PartnerStatus,
|
||||||
|
} from '@/generated/prisma/enums'
|
||||||
import { PrismaService } from '@/prisma/prisma.service'
|
import { PrismaService } from '@/prisma/prisma.service'
|
||||||
import { Injectable } from '@nestjs/common'
|
import { Injectable } from '@nestjs/common'
|
||||||
import { ResponseMapper } from 'common/response/response-mapper'
|
import { ResponseMapper } from 'common/response/response-mapper'
|
||||||
@@ -8,23 +15,7 @@ export class PartnersService {
|
|||||||
constructor(private readonly prisma: PrismaService) {}
|
constructor(private readonly prisma: PrismaService) {}
|
||||||
|
|
||||||
async findAll() {
|
async findAll() {
|
||||||
// const partners = await this.prisma.$transaction(async tx => {
|
|
||||||
// const partners = await this.prisma.partner.findMany().then()
|
|
||||||
// const preparedPartners = await partners.map(async partner => {
|
|
||||||
// const relatedLicenseCount = await this.prisma.license.count({
|
|
||||||
// where: {
|
|
||||||
// partner_id: partner.id,
|
|
||||||
// },
|
|
||||||
// })
|
|
||||||
|
|
||||||
// return {
|
|
||||||
// ...partner,
|
|
||||||
// remained_license: Math.min((partner?.licenseQuota, 0) - relatedLicenseCount, 0),
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// console.log(preparedPartners)
|
|
||||||
const partners = await this.prisma.partner.findMany()
|
const partners = await this.prisma.partner.findMany()
|
||||||
|
|
||||||
return ResponseMapper.list(partners)
|
return ResponseMapper.list(partners)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,14 +30,37 @@ export class PartnersService {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
])
|
])
|
||||||
|
|
||||||
return ResponseMapper.single({
|
return ResponseMapper.single({
|
||||||
...partner,
|
...partner,
|
||||||
remained_license: Math.min((partner?.license_quota, 0) - relatedLicenseCount, 0),
|
remained_license: Math.max(
|
||||||
|
(partner?.license_quota || 0) - (relatedLicenseCount || 0),
|
||||||
|
0,
|
||||||
|
),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
async create(data: CreatePartnerDto) {
|
async create(data: CreatePartnerDto) {
|
||||||
const partner = await this.prisma.partner.create({ data })
|
const { username, password, ...rest } = data
|
||||||
|
const partner = await this.prisma.partner.create({
|
||||||
|
data: {
|
||||||
|
...rest,
|
||||||
|
status: PartnerStatus.ACTIVE,
|
||||||
|
accounts: {
|
||||||
|
create: {
|
||||||
|
role: PartnerRole.OWNER,
|
||||||
|
account: {
|
||||||
|
create: {
|
||||||
|
username,
|
||||||
|
password: await PasswordUtil.hash(data.password),
|
||||||
|
status: AccountStatus.ACTIVE,
|
||||||
|
type: AccountType.PARTNER,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
return ResponseMapper.create(partner)
|
return ResponseMapper.create(partner)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,23 @@
|
|||||||
import { ApiProperty } from '@nestjs/swagger'
|
import { ApiProperty, PartialType } from '@nestjs/swagger'
|
||||||
import { IsOptional, IsString } from 'class-validator'
|
import { IsOptional, IsString } from 'class-validator'
|
||||||
|
|
||||||
export class CreateProviderDto {
|
export class CreateProviderDto {
|
||||||
@IsString()
|
@IsString()
|
||||||
@ApiProperty()
|
@ApiProperty({ required: true })
|
||||||
name: string
|
name: string
|
||||||
|
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsString()
|
@IsString()
|
||||||
@ApiProperty()
|
@ApiProperty()
|
||||||
code?: string
|
code: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
username: string
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@ApiProperty({ required: true })
|
||||||
|
password: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UpdateProviderDto extends CreateProviderDto {}
|
export class UpdateProviderDto extends PartialType(CreateProviderDto) {}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user