Flama relies on SQLAlchemy to define data models, specifically on SQLAlchemy Core.

Here you can find a simple example of how to define a model, but you can find more complex examples in SQLAlchemy docs.

import sqlalchemy as sa

metadata = sa.MetaData()

user = sa.Table(
    sa.Column("id", sa.Integer, primary_key=True), 
    sa.Column("name", sa.String), 
    sa.Column("age", sa.Integer),

You can also find useful some complete examples under these docs.