floor icon indicating copy to clipboard operation
floor copied to clipboard

Couldnt make the primary key a combination of multiple columns.

Open josmilan opened this issue 3 years ago • 1 comments

josmilan avatar Aug 19 '22 10:08 josmilan

@josmilan you can do it by specifying columns in the Entity annotation

@Entity(primaryKeys: ['id', 'name'])
class Person {
  final int id;

  final String name;

  Person(this.id, this.name);
}

dkaera avatar Aug 19 '22 10:08 dkaera