module.exports = (sequelize, DataTypes) => {
	const CocTeam = sequelize.define(
		'CocTeam',
		{
			id: {
				type: DataTypes.UUID,
				defaultValue: DataTypes.UUIDV4,
				primaryKey: true,
				allowNull: false,
			},
			name: {
				type: DataTypes.STRING,
				allowNull: false,
			},
			email: {
				type: DataTypes.STRING,
				allowNull: false,
			},
			image: {
				type: DataTypes.STRING,
				allowNull: false,
			},
			order: {
				type: DataTypes.INTEGER,
				allowNull: false,
				defaultValue: 1,
			},
			createdAt: {
				type: DataTypes.DATE,
				allowNull: false,
				defaultValue: DataTypes.NOW,
			},
		},
		{
			tableName: 'coc_team',
			timestamps: false,
		},
	);

	return CocTeam;
};
