import { Model } from '@nozbe/watermelondb';
import { field, date } from '@nozbe/watermelondb/decorators';

export type TombstoneEntity = 'categories' | 'tasks' | 'subtasks' | 'repeatProfiles' | 'friendships';

export default class Tombstone extends Model {
  static table = 'tombstones';

  @field('entity') entity!: TombstoneEntity;
  @field('entity_id') entityId!: string;
  @date('deleted_at') deletedAt!: Date;
}
