module.exports = {
  attributes: {
    user: { model: 'utilisateurs', required: true },
    scheduledDate: { type: 'ref', columnType: 'date' },
    status: {
      type: 'string',
      isIn: ['pending', 'processing', 'sent', 'failed', 'skipped'],
      defaultsTo: 'pending'
    },
    channel: { type: 'string', isIn: ['email', 'whatsapp', 'sms'] }, // Ajout de SMS
    type: { type: 'string' } 
  }
};