import { MdLocalMovies as icon } from 'react-icons/md'
export default {
name: 'film',
title: 'Film',
type: 'document',
icon,
fields: [
{
name: 'title',
title: 'Title',
type: 'localeString',
validation: Rule => Rule.required()
},
{
name: 'filmId',
title: 'Film Id',
type: 'string'
},
{
name: 'latinTitle',
title: 'Latin Title',
type: 'string'
},
{
name: 'slug',
title: 'Slug',
type: 'slug',
options: {
source: 'latinTitle',
maxLength: 200 // will be ignored if slugify is set
},
validation: Rule => Rule.required()
},
{
name: 'releaseDate',
title: 'Release date',
type: 'number'
},
{
name: 'subject',
title: 'Subject',
type: 'localeString',
},
{
name: 'productionId',
title: 'Production ID',
type: 'string'
},
{
name: 'type',
title: 'Type',
type: 'localeString',
},
{
name: 'abstract',
title: 'Abstract',
type: 'localeString',
},
{
title: 'Keywords',
name: 'keywords',
type: 'localeArray'
},
{
title: 'Latin Keywords',
name: 'latinKeywords',
type: 'array',
of: [{ type: 'string' }]
},
{
name: 'studio',
title: 'Studio',
type: 'localeString',
},
{
name: 'director',
title: 'Director',
type: 'localeString'
},
{
name: 'operators',
title: 'Operators',
type: 'localeString'
},
{
name: 'otherCreators',
title: 'Other Creators',
type: 'localeString'
},
{
name: 'sound',
title: 'Sound',
type: 'string'
},
{
name: 'color',
title: 'Color',
type: 'string'
},
{
name: 'numberOfParts',
title: 'Number of Parts',
type: 'number'
},
{
name: 'meterage',
title: 'Meterage',
type: 'string'
},
{
name: 'oldUrl',
title: 'Old URL',
type: 'url',
readOnly: true
}
]
}