# Custom id column
Name of the identifier column can be changed by setting the static idColumn property of a model class. Composite key can be defined by using an array of column names.
class Person extends Model {
static get idColumn() {
return 'person_id';
}
}
Composite key:
class Person extends Model {
static get idColumn() {
return ['someColumn', 'someOtherColumn'];
}
}