import { CollectionConfig } from "payload";

export const InstructorClientTenantRelations: CollectionConfig = {
  slug: 'instructorClientTenantRelations',
  fields: [
    {
      name: 'displayName',
      type: 'text',
    },
    {
      name: 'instructor',
      type: 'relationship',
      relationTo: 'users',
      hasMany: false,
    },
    {
      name: 'client',
      type: 'relationship',
      relationTo: 'users',
      hasMany: false,
    },
    {
      name: 'tenant',
      type: 'relationship',
      relationTo: 'tenants',
      hasMany: false,
    }
  ]
}

export default InstructorClientTenantRelations
