@mrnafisia/type-query
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -20,3 +20,3 @@ import { Table } from './types/Table'; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -39,3 +39,3 @@ default: false; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -59,3 +59,3 @@ default: true; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -80,25 +80,5 @@ default: "value"; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
default: "value"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
value: string; | ||
}) | ({ | ||
type: import("./types/postgres").PostgresType; | ||
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at"; | ||
nullable: boolean; | ||
title?: string; | ||
reference?: { | ||
table: Table; | ||
onUpdate?: import("./types/Table").ReferenceActions; | ||
onDelete?: import("./types/Table").ReferenceActions; | ||
column: string; | ||
}; | ||
} & { | ||
primary?: true; | ||
nullable: false; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
} & { | ||
default: "value"; | ||
type: "date" | "timestamp without time zone" | "timestamp with time zone"; | ||
@@ -121,3 +101,3 @@ value: Date; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -381,3 +361,3 @@ default: "value"; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -403,3 +383,3 @@ maxLength?: number; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -426,3 +406,3 @@ maxLength?: number; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -529,3 +509,3 @@ maxLength?: number; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -547,3 +527,3 @@ default: false; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -566,3 +546,3 @@ default: true; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -586,24 +566,5 @@ default: "value"; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
default: "value"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
value: string; | ||
}) | ({ | ||
type: import("./types/postgres").PostgresType; | ||
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at"; | ||
nullable: boolean; | ||
title?: string; | ||
reference?: { | ||
table: Table; | ||
onUpdate?: import("./types/Table").ReferenceActions; | ||
onDelete?: import("./types/Table").ReferenceActions; | ||
column: string; | ||
}; | ||
} & { | ||
nullable: true; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
} & { | ||
default: "value"; | ||
type: "date" | "timestamp without time zone" | "timestamp with time zone"; | ||
@@ -625,3 +586,3 @@ value: Date; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -873,3 +834,3 @@ default: "value"; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -894,3 +855,3 @@ maxLength?: number; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -916,3 +877,3 @@ maxLength?: number; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -919,0 +880,0 @@ maxLength?: number; |
@@ -34,3 +34,3 @@ import Decimal from 'decimal.js'; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -53,3 +53,3 @@ default: false; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -73,3 +73,3 @@ default: true; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -94,25 +94,5 @@ default: "value"; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
default: "value"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
value: string; | ||
}) | ({ | ||
type: import("./types/postgres").PostgresType; | ||
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at"; | ||
nullable: boolean; | ||
title?: string; | ||
reference?: { | ||
table: Table; | ||
onUpdate?: import("./types/Table").ReferenceActions; | ||
onDelete?: import("./types/Table").ReferenceActions; | ||
column: string; | ||
}; | ||
} & { | ||
primary?: true; | ||
nullable: false; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
} & { | ||
default: "value"; | ||
type: "date" | "timestamp without time zone" | "timestamp with time zone"; | ||
@@ -135,3 +115,3 @@ value: Date; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -395,3 +375,3 @@ default: "value"; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -417,3 +397,3 @@ maxLength?: number; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -440,3 +420,3 @@ maxLength?: number; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -543,3 +523,3 @@ maxLength?: number; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -561,3 +541,3 @@ default: false; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -580,3 +560,3 @@ default: true; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -600,24 +580,5 @@ default: "value"; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
default: "value"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
value: string; | ||
}) | ({ | ||
type: import("./types/postgres").PostgresType; | ||
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at"; | ||
nullable: boolean; | ||
title?: string; | ||
reference?: { | ||
table: Table; | ||
onUpdate?: import("./types/Table").ReferenceActions; | ||
onDelete?: import("./types/Table").ReferenceActions; | ||
column: string; | ||
}; | ||
} & { | ||
nullable: true; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
} & { | ||
default: "value"; | ||
type: "date" | "timestamp without time zone" | "timestamp with time zone"; | ||
@@ -639,3 +600,3 @@ value: Date; | ||
} & { | ||
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb"; | ||
type: "boolean" | "date" | "json" | "jsonb"; | ||
} & { | ||
@@ -887,3 +848,3 @@ default: "value"; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -908,3 +869,3 @@ maxLength?: number; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -930,3 +891,3 @@ maxLength?: number; | ||
} & { | ||
type: "character" | "character varying" | "uuid"; | ||
type: "character" | "character varying" | "text" | "uuid"; | ||
minLength?: number; | ||
@@ -933,0 +894,0 @@ maxLength?: number; |
@@ -24,3 +24,3 @@ import Decimal from 'decimal.js'; | ||
type Types = { | ||
type: 'boolean' | 'text' | 'uuid' | 'date' | 'json' | 'jsonb'; | ||
type: 'boolean' | 'date' | 'json' | 'jsonb'; | ||
} | { | ||
@@ -41,3 +41,3 @@ type: 'smallint' | 'integer' | 'real' | 'double precision'; | ||
} | { | ||
type: 'character' | 'character varying' | 'uuid'; | ||
type: 'character' | 'character varying' | 'text' | 'uuid'; | ||
minLength?: number; | ||
@@ -44,0 +44,0 @@ maxLength?: number; |
{ | ||
"name": "@mrnafisia/type-query", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "mini-orm with full type support for postgres.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
586624
9063