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

Last updated