import { adapters, newUuid } from '@/services/serviceConfig';
export const auditService = {
  list: () => adapters.database.list('AuditEvent'),
  record: (event_type, record_type, record_uuid, summary, actor_name = 'Workshop Owner', details = '') => adapters.database.create('AuditEvent', { uuid: newUuid('audit'), event_type, record_type, record_uuid, actor_name, summary, details, migration_version: 1 }),
};