import { SessionEntity } from 'src/entities/session.entity'; export const ISessionRepository = 'ISessionRepository'; type E = SessionEntity; export interface ISessionRepository { create>(dto: T): Promise; update>(dto: T): Promise; delete(id: string): Promise; getByToken(token: string): Promise; getByUserId(userId: string): Promise; }