Change user attribute data type to JSONB

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/17/head
trivernis 4 years ago
parent 50f92ea8da
commit a32510e2ff
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -40,7 +40,7 @@ impl Table for Users {
email VARCHAR(255) UNIQUE NOT NULL,
password_hash BYTEA NOT NULL,
salt BYTEA NOT NULL,
attributes JSON NOT NULL DEFAULT '{}'
attributes JSONB NOT NULL DEFAULT '{}'
);",
)?;

Loading…
Cancel
Save