import { CollectionConfig } from "payload";

export const HabbitCategories: CollectionConfig = {
  slug: 'habbitCategories',
  admin: {
    useAsTitle: 'name',
    group: 'Habbits',
  },
  fields: [
    {
      name: 'name',
      type: 'text',
      unique: true,
    },
    {
      name: 'description',
      type: 'textarea',
    },
  ],
}
