Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for BaseModel (0.14 sec)

  1. docs/es/docs/tutorial/body.md

    ///
    
    ## Importar `BaseModel` de Pydantic
    
    Primero, necesitas importar `BaseModel` de `pydantic`:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    ## Crea tu modelo de datos
    
    Luego, declaras tu modelo de datos como una clase que hereda de `BaseModel`.
    
    Usa tipos estándar de Python para todos los atributos:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/body.md

    ///
    
    ## Importieren Sie Pydantics `BaseModel`
    
    Zuerst müssen Sie `BaseModel` von `pydantic` importieren:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    ## Erstellen Sie Ihr Datenmodell
    
    Dann deklarieren Sie Ihr Datenmodell als eine Klasse, die von `BaseModel` erbt.
    
    Verwenden Sie Standard-Python-Typen für die Klassenattribute:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body.md

    ///
    
    ## Import Pydantic's `BaseModel` { #import-pydantics-basemodel }
    
    First, you need to import `BaseModel` from `pydantic`:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    ## Create your data model { #create-your-data-model }
    
    Then you declare your data model as a class that inherits from `BaseModel`.
    
    Use standard Python types for all the attributes:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:58:56 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/body.md

    ///
    
    ## Importe o `BaseModel` do Pydantic
    
    Primeiro, você precisa importar `BaseModel` do `pydantic`:
    
    {* ../../docs_src/body/tutorial001.py hl[4] *}
    
    ## Crie seu modelo de dados
    
    Então você declara seu modelo de dados como uma classe que herda `BaseModel`.
    
    Utilize os tipos Python padrão para todos os atributos:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. schema/model_test.go

    	DeletedAt    *mytime
    	Active       mybool
    	Admin        *mybool
    }
    
    type BaseModel struct {
    	ID        uint
    	CreatedAt time.Time
    	CreatedBy *int
    	Created   *VersionUser `gorm:"foreignKey:CreatedBy"`
    	UpdatedAt time.Time
    	DeletedAt gorm.DeletedAt `gorm:"index"`
    }
    
    type VersionModel struct {
    	BaseModel
    	Version int
    }
    
    type VersionUser struct {
    	VersionModel
    	Name     string
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. docs/uk/docs/tutorial/body.md

    ///
    
    ## Імпортуйте `BaseModel` від Pydantic
    
    Спочатку вам потрібно імпортувати `BaseModel` з `pydantic`:
    
    {* ../../docs_src/body/tutorial001.py hl[4] *}
    
    ## Створіть свою модель даних
    
    Потім ви оголошуєте свою модель даних як клас, який успадковується від `BaseModel`.
    
    Використовуйте стандартні типи Python для всіх атрибутів:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/body.md

    ///
    
    ## Импортирование `BaseModel` из Pydantic
    
    Первое, что вам необходимо сделать, это импортировать `BaseModel` из пакета `pydantic`:
    
    {* ../../docs_src/body/tutorial001.py hl[4] *}
    
    ## Создание вашей собственной модели
    
    После этого вы описываете вашу модель данных как класс, наследующий от `BaseModel`.
    
    Используйте аннотации типов Python для всех атрибутов:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. docs/fr/docs/tutorial/body.md

    ///
    
    ## Importez le `BaseModel` de Pydantic
    
    Commencez par importer la classe `BaseModel` du module `pydantic` :
    
    {* ../../docs_src/body/tutorial001.py hl[4] *}
    
    ## Créez votre modèle de données
    
    Déclarez ensuite votre modèle de données en tant que classe qui hérite de `BaseModel`.
    
    Utilisez les types Python standard pour tous les attributs :
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/body.md

    ⚫️ 🚫, 🎓 🩺 ⏮️ 🦁 🎚 🏆 🚫 🎦 🧾 💪 🕐❔ ⚙️ `GET`, & 🗳 🖕 💪 🚫 🐕‍🦺 ⚫️.
    
    ///
    
    ## 🗄 Pydantic `BaseModel`
    
    🥇, 👆 💪 🗄 `BaseModel` ⚪️➡️ `pydantic`:
    
    {* ../../docs_src/body/tutorial001.py hl[4] *}
    
    ## ✍ 👆 💽 🏷
    
    ⤴️ 👆 📣 👆 💽 🏷 🎓 👈 😖 ⚪️➡️ `BaseModel`.
    
    ⚙️ 🐩 🐍 🆎 🌐 🔢:
    
    {* ../../docs_src/body/tutorial001.py hl[7:11] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. schema/schema_test.go

    	}
    
    	fields := []schema.Field{
    		{Name: "ID", DBName: "id", BindNames: []string{"VersionModel", "BaseModel", "ID"}, DataType: schema.Uint, PrimaryKey: true, Size: 64, HasDefaultValue: true, AutoIncrement: true},
    		{Name: "CreatedBy", DBName: "created_by", BindNames: []string{"VersionModel", "BaseModel", "CreatedBy"}, DataType: schema.Uint, Size: 64},
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Aug 28 02:57:17 UTC 2025
    - 13.3K bytes
    - Viewed (0)
Back to top