Build your model.
Get the Python file.
Create Peewee model definitions and the bro-sba-py configuration methods with form controls. Watch the Python output update as you configure fields, APIs, admin behavior, and actions.
Project and model
The generated model uses the existing db object from your project. Change this import if yours lives elsewhere.
Fields
Define each Peewee field, then choose how bro-sba-py should use it when generating forms, search, and admin tables.
03 · ADMINAdmin dashboard and permissions⌄
Optional role lists protect API operations when authentication is enabled. Leave blank to use the project’s default access rules.
04 · AUTHAuthentication configuration⌄
Enable this on the model you want to use for project authentication. Also select the matching fields below.
Custom actions
Add an API action, generate a supported operation, or create a stub for your own business logic.
06 · ADVANCEDCustom Python methods⌄
Optional Python code added inside the model class. The generator’s built-in settings are created above; this area is for methods specific to your app.