const DEFAULT_DB_NAME = 'with_you.db';
const DB_NAME_PREFIX = 'with_you_';

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