- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for owner_id (0.19 sec)
-
docs/em/docs/how-to/sql-databases-peewee.md
{!../../../docs_src/sql_databases_peewee/sql_app/models.py!} ``` !!! tip 🏒 ✍ 📚 🎱 🔢. ⚫️ 🔜 🔁 🚮 `id` 🔢 🔢 👑 🔑. ⚫️ 🔜 ⚒ 📛 🏓 ⚓️ 🔛 🎓 📛. `Item`, ⚫️ 🔜 ✍ 🔢 `owner_id` ⏮️ 🔢 🆔 `User`. ✋️ 👥 🚫 📣 ⚫️ 🙆. ## ✍ Pydantic 🏷 🔜 ➡️ ✅ 📁 `sql_app/schemas.py`. !!! tip
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 19.2K bytes - Viewed (0) -
docs/en/docs/how-to/sql-databases-peewee.md
It will automatically add an `id` attribute as an integer to be the primary key. It will chose the name of the tables based on the class names. For the `Item`, it will create an attribute `owner_id` with the integer ID of the `User`. But we don't declare it anywhere. ## Create the Pydantic models Now let's check the file `sql_app/schemas.py`. !!! tip
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 16 13:23:25 GMT 2024 - 23.6K bytes - Viewed (1)