schemaMultiPk top-level constant

CollectionSchema const schemaMultiPk

Implementation

const schemaMultiPk = CollectionSchema(
  tableNameMultiPK,
  properties: [
    PropertySchema(
      "first_name",
      type: PropertyType.text,
      primaryKey: true,
      nullable: false,
    ),
    PropertySchema(
      "last_name",
      type: PropertyType.text,
      primaryKey: true,
      nullable: false,
    ),
    PropertySchema(
      "age",
      type: PropertyType.integer,
      primaryKey: false,
      nullable: false,
    ),
  ],
);