aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-28 12:34:01 -0700
committerAdam Soltys <[email protected]>2022-09-28 12:34:01 -0700
commitb27ba2ec17a686762dcf6e6506812f49faea1671 (patch)
tree271abc528d5567b87030d3a4ca56d795166d2527
parenta8bacacaa5deadc48c2eb3e6ee5102b25da42292 (diff)
downloadcoinos-server-b27ba2ec17a686762dcf6e6506812f49faea1671.tar.gz
coinos-server-b27ba2ec17a686762dcf6e6506812f49faea1671.zip
uuid column
-rw-r--r--db/models/users.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/models/users.js b/db/models/users.js
index 7cbaf8e6..58a42e65 100644
--- a/db/models/users.js
+++ b/db/models/users.js
@@ -11,6 +11,15 @@ const attributes = {
comment: null,
field: "id"
},
+ uuid: {
+ type: DataTypes.STRING,
+ allowNull: false,
+ defaultValue: DataTypes.UUIDV4,
+ primaryKey: true,
+ autoIncrement: true,
+ comment: null,
+ field: "uuid"
+ },
address: {
type: DataTypes.STRING,
allowNull: true,