diff options
| author | Adam Soltys <[email protected]> | 2022-09-28 12:34:01 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-28 12:34:01 -0700 |
| commit | b27ba2ec17a686762dcf6e6506812f49faea1671 (patch) | |
| tree | 271abc528d5567b87030d3a4ca56d795166d2527 /db/models | |
| parent | a8bacacaa5deadc48c2eb3e6ee5102b25da42292 (diff) | |
| download | coinos-server-b27ba2ec17a686762dcf6e6506812f49faea1671.tar.gz coinos-server-b27ba2ec17a686762dcf6e6506812f49faea1671.zip | |
uuid column
Diffstat (limited to 'db/models')
| -rw-r--r-- | db/models/users.js | 9 |
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, |
