flip_api.db.seed.roles

Attributes

CURRENT_ROLES

Functions

seed_roles(→ list[str])

Seed roles into the database.

Module Contents

flip_api.db.seed.roles.CURRENT_ROLES
flip_api.db.seed.roles.seed_roles(session: sqlmodel.Session) list[str]

Seed roles into the database.

Parameters:

session (Session) – The SQLModel session used for reads and inserts.

Returns:

All role names present after seeding.

Return type:

list[str]