managedPrimaryKey top-level constant

const managedPrimaryKey = const ManagedColumnAttributes(primaryKey: true, databaseType: ManagedPropertyType.bigInteger, autoincrement: true)

Metadata to mark a property as a primary key.

This is a convenience for primary key, database type big integer, and autoincrementing. The corresponding property type must be int. The underlying database indexes and uniques the backing column.

Implementation

const ManagedColumnAttributes managedPrimaryKey = const ManagedColumnAttributes(
    primaryKey: true,
    databaseType: ManagedPropertyType.bigInteger,
    autoincrement: true)