const DEFAULT_DB_NAME = 'carrot_bbs.db';
const DB_NAME_PREFIX = 'carrot_bbs_';

export function getDbName(userId: string | null): string {
  return userId ? `${DB_NAME_PREFIX}${userId}.db` : DEFAULT_DB_NAME;
}