valid-attribute-properties.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // ██╗ ██╗ █████╗ ██╗ ██╗██████╗
  2. // ██║ ██║██╔══██╗██║ ██║██╔══██╗
  3. // ██║ ██║███████║██║ ██║██║ ██║
  4. // ╚██╗ ██╔╝██╔══██║██║ ██║██║ ██║
  5. // ╚████╔╝ ██║ ██║███████╗██║██████╔╝
  6. // ╚═══╝ ╚═╝ ╚═╝╚══════╝╚═╝╚═════╝
  7. //
  8. // ██████╗ ██████╗ ██████╗ ██████╗ ███████╗██████╗ ████████╗██╗███████╗███████╗
  9. // ██╔══██╗██╔══██╗██╔═══██╗██╔══██╗██╔════╝██╔══██╗╚══██╔══╝██║██╔════╝██╔════╝
  10. // ██████╔╝██████╔╝██║ ██║██████╔╝█████╗ ██████╔╝ ██║ ██║█████╗ ███████╗
  11. // ██╔═══╝ ██╔══██╗██║ ██║██╔═══╝ ██╔══╝ ██╔══██╗ ██║ ██║██╔══╝ ╚════██║
  12. // ██║ ██║ ██║╚██████╔╝██║ ███████╗██║ ██║ ██║ ██║███████╗███████║
  13. // ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝
  14. //
  15. module.exports = [
  16. // Basic semantics:
  17. 'type',
  18. 'defaultsTo',
  19. 'required',
  20. 'allowNull',
  21. 'autoUpdatedAt',
  22. 'autoCreatedAt',
  23. // Auto-migrations:
  24. 'autoMigrations',
  25. // High-level validation rules:
  26. 'validations',
  27. // Associations:
  28. 'through',
  29. 'collection',
  30. 'model',
  31. 'via',
  32. 'dominant',
  33. // Adapter:
  34. 'columnName',
  35. 'meta',
  36. // At-rest encryption:
  37. 'encrypt',
  38. // Advisory
  39. 'description',
  40. 'extendedDescription',
  41. 'moreInfoUrl',
  42. 'example',
  43. 'protect',
  44. ];