xebia-functional / xef

Building applications with LLMs through composability, in Kotlin, Scala, ...

Home Page:https://xef.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update Xef Server database to allow Authentication

Montagon opened this issue · comments

The objective of this issue is to add a migration to the xef-db-postgres.

This is the general structure:

flowchart TD
    A[Users]
    B[Projects]
    C[Organisation] 
    D[Tokens]
    A -->|n - n| C
    B -->|1 - n| C
    D -->|1 - n| A
    D -->|1 - 1| B
Loading

The user will have an email and password as the current way to log in. At this point, when the server starts, it should have a default User, organisation and project.