import { DateField } from '@dvn/core/doldurma/src/fields/date';
import { DateDataType } from '@dvn/core/doldurma/src/fields/date/date';
import { TextField } from '@dvn/core/doldurma/src/fields/text';
import { DataModel } from '@dvn/core/models/data-model';
import { Space } from '@dvn/core/models/space';
import services from '../../../configs/services';
export const damgaSpace = Space.decode({
  _id: 'asdqweasd',
  _created: new Date(),
  _updated: new Date(),
  name: 'Asdqweasd',
});
export const dataConfigs = {
  'damga-domains': DataModel.decode({
    _id: 'damga-domains',
    base: services.base,
    fields: [
      new DateField('_created', 'Created')
        .setDataType(DateDataType.Unix)
        .setDateFormat('DD MMM YYYY HH:mm'),
      new TextField('domain', 'Domain').setInputType('url'),
    ],
    name: 'damga-domains',
    space: damgaSpace,
  }),
};
