Jaguar-dart / jaguar_orm

Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
https://jaguar-dart.github.io
BSD 3-Clause "New" or "Revised" License
217 stars 52 forks source link

How to specify unique columns in table #120

Open jamespet77 opened 5 years ago

jamespet77 commented 5 years ago

I tried using

@Column(isNullable: false, uniqueGroup: "nls_unique_idx")
  int family;
 @Column(isNullable: false, uniqueGroup: "nls_unique_idx")
  int profile;

But this did not seem to accomplish what I thought it was.

tejainece commented 5 years ago

@linuxjet I will take a look.