2022-08-25 19:26:29 -06:00
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"github.com/fastenhealth/fastenhealth-onprem/backend/pkg/models"
|
|
|
|
)
|
|
|
|
|
|
|
|
type DatabaseRepository interface {
|
|
|
|
Close() error
|
2022-08-27 09:39:55 -06:00
|
|
|
GetCurrentUser() models.User
|
2022-08-25 19:26:29 -06:00
|
|
|
|
2022-08-30 22:36:40 -06:00
|
|
|
UpsertProfile(context.Context, *models.Profile) error
|
|
|
|
UpsertOrganziation(context.Context, *models.Organization) error
|
2022-08-30 20:35:01 -06:00
|
|
|
|
2022-08-30 22:36:40 -06:00
|
|
|
CreateSource(context.Context, *models.Source) error
|
|
|
|
GetSources(context.Context) ([]models.Source, error)
|
2022-08-25 19:26:29 -06:00
|
|
|
}
|