EventCategory.ts 529 B

1234567891011121314151617181920212223242526
  1. import { Str, Uid } from 'pinia-orm/dist/decorators'
  2. import ApiResource from '~/models/ApiResource'
  3. /**
  4. * Event Category model
  5. *
  6. * Represents a category for events with family, subfamily, and gender information
  7. */
  8. export default class EventCategory extends ApiResource {
  9. static entity = 'event-categories'
  10. @Uid()
  11. declare id: number | string | null
  12. @Str('')
  13. declare label: string
  14. @Str('')
  15. declare famillyLabel: string
  16. @Str('')
  17. declare subfamillyLabel: string
  18. @Str('')
  19. declare genderLabel: string
  20. }