summaryrefslogtreecommitdiff
path: root/src/services/accounts/index.ts
blob: fc3a83076b9c9ce5d3888f1922e0f0dd8aacc7d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { ServiceParams } from '../../lib/ServiceContext';
import { Account } from '../types';

const service: ServiceParams<Account> = {
  route: 'accounts',
  name: 'Счета',
  nameSingular: 'Счёт',
  tableFields: [
    { key: 'name', label: 'Название' },
    { key: 'balance', label: 'Баланс' },
  ],
  searchBy: ['name'],
  default: {
    name: '',
    balance: 0,
  },
};

export default service;