Item request notifications
This commit is contained in:
@@ -57,6 +57,18 @@ const ForumPost = sequelize.define('ForumPost', {
|
||||
allowNull: true,
|
||||
defaultValue: []
|
||||
},
|
||||
zipCode: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true
|
||||
},
|
||||
latitude: {
|
||||
type: DataTypes.DECIMAL(10, 8),
|
||||
allowNull: true
|
||||
},
|
||||
longitude: {
|
||||
type: DataTypes.DECIMAL(11, 8),
|
||||
allowNull: true
|
||||
},
|
||||
isDeleted: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
defaultValue: false
|
||||
|
||||
@@ -142,6 +142,15 @@ const User = sequelize.define(
|
||||
defaultValue: "user",
|
||||
allowNull: false,
|
||||
},
|
||||
itemRequestNotificationRadius: {
|
||||
type: DataTypes.INTEGER,
|
||||
defaultValue: 10,
|
||||
allowNull: true,
|
||||
validate: {
|
||||
min: 1,
|
||||
max: 100,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
hooks: {
|
||||
|
||||
Reference in New Issue
Block a user