📚
Szczurowsky Industries
RatORM
RatORM
  • 🖐️Welcome!
  • ⚡Quick Start
  • 🎓Features
  • 🧑‍🎓Basic
    • Model
    • Operation
  • 🙉Annotations
    • Model
    • ModelField
Powered by GitBook
On this page
  • What is @ModelField
  • Parameters
  1. Annotations

ModelField

If there's more than one primary key then last one will be picked

@ModelField(name="field-name", isPrimaryKey = true, isForeignKey = true)

What is @ModelField

ModelField annotation is responsible for look of field in database and it's behaviour

Parameters

  • name - Name of field in datbase

  • (boolean default true) isPrimaryKey - Is this field set as primary field

  • (boolean default true) isForeignKey - Is this field foreign key

PreviousModel

Last updated 3 years ago

🙉