import { Mongo } from 'meteor/mongo';
import { Class } from 'meteor/jagi:astronomy';

const Committee = Class.create({
  name:       'Committee',
  collection: new Mongo.Collection('committees'),
  fields:     {
    order: {
      type:    Number,
      default: 20
    },
    logo:            {
      type:    String,
      default: '',
    },
    photo:           {
      type:    String,
      default: '',
    },
    code:            {
      type:    String,
      default: '',
    },
    director:        {
      type:    String,
      default: '',
    },
    unit:            {
      type:    String,
      default: '',
    },
    title:           {
      type:    String,
      default: '',
    },
    post:            {
      type:    String,
      default: '',
    },
    description:     {
      type:    String,
      default: '',
    },
    address:         {
      type:    String,
      default: '',
    },
    website:     {
      type:     String,
      optional: true,
    },
  },
});

export default Committee;
