Open paslo22 opened 8 months ago
Hey! We are using this lib to generate ours models and works great! But we found the following issue:
CREATE TYPE test_source AS ENUM ('first', 'second'); CREATE TABLE test ( whatever test_source[] DEFAULT '{first}' );
The model created is:
whatever: { type: DataTypes.ARRAY(DataTypes.ENUM("first","second")), defaultValue: [first] }
As far as I understand, the default value should be:
defaultValue: ["first"]
Hey! We are using this lib to generate ours models and works great! But we found the following issue:
The model created is:
As far as I understand, the default value should be: