Files
17th-Battalion-Tracker/api/db/models/Member.model.js
IndigoFox 9f2473801c Initial commit
TODO: change api.conf URL references to use environment variables and add these variables to the docker-compose configuration for host domain
2023-03-28 00:08:50 -07:00

53 lines
1.0 KiB
JavaScript

const Sequelize = require('sequelize');
module.exports = {
name: {
type: Sequelize.DataTypes.STRING(100),
allowNull: false,
unique: true
},
email: {
type: Sequelize.DataTypes.STRING(100),
allowNull: true,
// validate: {
// isEmail: true
// }
},
password: {
type: Sequelize.DataTypes.STRING(100),
allowNull: true
},
website: {
type: Sequelize.DataTypes.STRING(240),
allowNull: true,
// validate: {
// isUrl: true
// }
},
steamId64: {
type: Sequelize.DataTypes.STRING(17),
allowNull: true,
unique: true
},
steamProfileName: {
type: Sequelize.DataTypes.STRING(32),
allowNull: true
},
discordId: {
type: Sequelize.DataTypes.STRING(18),
unique: true,
allowNull: true
},
discordUsername: {
type: Sequelize.DataTypes.STRING(32),
allowNull: true
},
createdById: {
type: Sequelize.DataTypes.INTEGER,
allowNull: false,
},
lastModifiedById: {
type: Sequelize.DataTypes.INTEGER,
allowNull: false,
},
};