ZAZ
ZAZ
DTDrizzle Team
Created by ZAZ on 5/6/2024 in #help
deleted_at column to be defaulted empty on creating a new record
How can I have my deleted_at column to be defaulted empty on creating a new record?
deletedAt: timestamp('deleted_at', { mode: 'string' }).default('NULL'),
deletedAt: timestamp('deleted_at', { mode: 'string' }).default('NULL'),
or is this not possible? I'm not adding .defaultNow(), but it seems to do it anyway.
3 replies