I have a few questions in regards to some data typ...
# orm-help
b
I have a few questions in regards to some data types I have that are critical. Such as
BINARY
,
VARBINARY
,
TIMESTAMP
,
JSON
(This is a custom parser using
json-bigint
npm package). Then I also have
nodejs-snowflake
npm package I also use which is for all of our major identities. Basically right before a record is inserted if it has an auto-increment with SnowflakeId it will perform the new generated ID. How can I make these possible with Prisma?
✅ 1
n
Hi Benjamin 👋 If I understand this correctly you are looking to use some custom types which are not supported by Prisma. Did you had a look at
Unsupported
field type docs here?
b
Thanks for getting back to me on this. The most types that I use are TIMESTAMP, BINARY, VARBINARY (not LONGBLOB) and a custom one called SNOWFLAKE. This uses nodejs-snowflake concept basically before an object is created with auto-increment with the datatype SNOWFLAKE I call a special function that will auto-set the field before it is created aka SQL generated and insert the database. This is what currently is giving me a road-block on our product. I will be using PRISMA on another project in the future that doesn't use Snowflake and uses SQLite
👍 1