Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HeroBase (0.26 sec)

  1. docs/en/docs/tutorial/sql-databases.md

    With SQLModel, we can use **inheritance** to **avoid duplicating** all the fields in all the cases.
    
    #### `HeroBase` - the base class
    
    Let's start with a `HeroBase` model that has all the **fields that are shared** by all the models:
    
    * `name`
    * `age`
    
    {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[7:9] hl[7:9] *}
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top