CBaker
CBaker
DTDrizzle Team
Created by CBaker on 7/13/2024 in #help
Am i correctly created a unique email input for my form?
DO you know how to make an intem have a constraint that makes sure it is unique is the real quesitons. Is that not possible with Drizzle?
15 replies
DTDrizzle Team
Created by CBaker on 7/13/2024 in #help
Am i correctly created a unique email input for my form?
all I want to do is make sure the email entered is unique. Like .unqiue() added to the end like in sequelize
15 replies
DTDrizzle Team
Created by CBaker on 7/13/2024 in #help
Am i correctly created a unique email input for my form?
These are the current imports
import { desc, sql, SQL} from "drizzle-orm";
import {
index,
pgTableCreator,
serial,
time,
timestamp,
varchar,
integer,
boolean,
numeric, //percision how man digits and scale how many decimal places
uniqueIndex,
pgTable,
} from "drizzle-orm/pg-core";
import { stat } from "fs";
import { desc, sql, SQL} from "drizzle-orm";
import {
index,
pgTableCreator,
serial,
time,
timestamp,
varchar,
integer,
boolean,
numeric, //percision how man digits and scale how many decimal places
uniqueIndex,
pgTable,
} from "drizzle-orm/pg-core";
import { stat } from "fs";
15 replies
DTDrizzle Team
Created by CBaker on 7/13/2024 in #help
Am i correctly created a unique email input for my form?
im getting read error lines unnder lower. Should that be importedd form somehwere, I dont see anything about it in the docs
15 replies