import type { Migration } from '../migrate';
import models from '../models';

export const up: Migration = async ({ context }) => {
  await context.createTable('archive_metadata', models.ArchiveMetadata.GENESIS_ATTRIBUTES);
  await context.createTable('archive_locks', models.ArchiveLock.GENESIS_ATTRIBUTES);
};

export const down: Migration = async ({ context }) => {
  await context.dropTable('archive_metadata');
  await context.dropTable('archive_locks');
};
