<?php return [
  'menuName' => 'TV Shows',
  '_tableName' => 'tv_shows',
  '_primaryKey' => 'num',
  'menuType' => 'multi',
  'listPageFields' => 'title, network, tracking_status, hidden',
  'listPageOrder' => 'title',
  'listPageSearchFields' => '_all_',
  '_filenameFields' => 'title',
  '_description' => 'Track your favorite TV shows with episode schedules and streaming information',
  '_detailPage' => '/tv/shows/detail.php',
  '_listPage' => '/tv/shows/index.php',
  '_perPageDefault' => 50,
  'menuPrefixIcon' => 'fa-duotone fa-solid fa-tv',

  'num' => [
    'type' => 'none',
    'label' => 'Record Number',
    'isSystemField' => '1',
  ],

  'createdDate' => [
    'type' => 'none',
    'label' => 'Created',
    'isSystemField' => '1',
  ],

  'createdByUserNum' => [
    'type' => 'none',
    'label' => 'Created By',
    'isSystemField' => '1',
  ],

  'updatedDate' => [
    'type' => 'none',
    'label' => 'Last Updated',
    'isSystemField' => '1',
  ],

  'updatedByUserNum' => [
    'type' => 'none',
    'label' => 'Last Updated By',
    'isSystemField' => '1',
  ],

  '__tabGroup001__' => [
    'label' => 'Show Information',
    'type' => 'tabGroup',
  ],

  'hidden' => [
    'label' => 'Hidden',
    'type' => 'checkbox',
    'description' => 'If checked, this show will not display on the dashboard',
    'checkedValue' => 'Yes',
    'uncheckedValue' => 'No',
  ],

  'tracking_status' => [
    'label' => 'Tracking Status',
    'type' => 'list',
    'isRequired' => '1',
    'listType' => 'pulldown',
    'optionsType' => 'text',
    'optionsText' => 'Watching
On Hold
Completed
Plan to Watch
Dropped',
    'defaultValue' => 'Watching',
  ],

  'title' => [
    'label' => 'Show Title',
    'type' => 'textfield',
    'fieldWidth' => 'medium',
    'isRequired' => '1',
    'isUnique' => '1',
  ],

  'status' => [
    'label' => 'Show Status',
    'type' => 'list',
    'isRequired' => '1',
    'listType' => 'pulldown',
    'optionsType' => 'text',
    'optionsText' => 'Returning Series
Ended
Canceled
On Hiatus
In Production',
    'defaultValue' => 'Returning Series',
  ],

  '__separator001__' => [
    'type' => 'separator',
    'separatorType' => 'blank line',
  ],

  'api_source' => [
    'label' => 'API Source',
    'type' => 'list',
    'listType' => 'pulldown',
    'optionsType' => 'text',
    'optionsText' => 'TVMaze
TMDB
Manual',
    'defaultValue' => 'TVMaze',
    'helpMessage' => 'Which API to use for fetching episode data',
  ],

  'api_id' => [
    'label' => 'API ID',
    'type' => 'textfield',
    'fieldWidth' => 'tiny',
    'helpMessage' => 'TVMaze Show ID or TMDB Show ID for automatic updates',
    'isRequired' => '1',
    'charsetRule' => 'allow',
    'charset' => '0123456789',
  ],

  'tvmaze_url' => [
    'label' => 'TVMaze URL',
    'type' => 'textfield',
    'fieldWidth' => 'medium',
    'helpMessage' => 'Full URL to the show on TVMaze.com',
  ],

  '__separator002__' => [
    'type' => 'separator',
    'separatorType' => 'blank line',
  ],

  'genre' => [
    'label' => 'Genre',
    'type' => 'list',
    'listType' => 'pulldownMulti',
    'optionsType' => 'text',
    'optionsText' => 'Action
Adventure
Animation
Comedy
Crime
Documentary
Drama
Family
Fantasy
History
Horror
Music
Mystery
Reality
Romance
Sci-Fi
Thriller
War
Western',
  ],

  '__tabGroup002__' => [
    'label' => 'Show Description',
    'type' => 'tabGroup',
  ],

  'description' => [
    'label' => 'Description',
    'type' => 'wysiwyg',
    'allowUploads' => '0',
    'fieldHeight' => '200',
  ],

  '__tabGroup003__' => [
    'label' => 'Where To Watch',
    'type' => 'tabGroup',
  ],

  'last_updated_api' => [
    'label' => 'Last API Update',
    'type' => 'date',
    'defaultDate' => 'none',
    'showTime' => '1',
    'showSeconds' => '0',
    'helpMessage' => 'Last time episode data was fetched from API',
  ],

  'network' => [
    'label' => 'Network',
    'type' => 'textfield',
    'fieldWidth' => 'small',
    'helpMessage' => 'Original broadcast network (e.g., NBC, CBS, Netflix)',
  ],

  'streaming_services' => [
    'label' => 'Streaming Services',
    'type' => 'list',
    'listType' => 'checkboxes',
    'optionsType' => 'table',
    'optionsTablename' => 'tv_streaming_services',
    'optionsValueField' => 'num',
    'optionsLabelField' => 'service_name',
    'helpMessage' => 'Select all services where this show is available',
  ],

];
