From 82f9acc60b7edbdfee96f1553d0fb1dcc705b866 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 30 Jul 2022 11:10:47 -0700 Subject: don't require auth for invoice, default uuid value --- db/models/invoices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db') diff --git a/db/models/invoices.js b/db/models/invoices.js index a51ee3f9..324da9ad 100644 --- a/db/models/invoices.js +++ b/db/models/invoices.js @@ -76,7 +76,7 @@ const attributes = { uuid: { type: DataTypes.STRING(255), allowNull: true, - defaultValue: null, + defaultValue: DataTypes.UUIDV4, primaryKey: false, autoIncrement: false, comment: null, -- cgit v1.2.3