Open Garthi opened 2 months ago
Have you tried the following?
@primayKey int? id;
Take a look at the examples in packages/orm/angel_orm_test.
Hi, we found two solutions one is
@Column(type: ColumnType.serial, indexType: IndexType.primaryKey)
int? get id;
but with this version you can't add references, then the type alias generates a big int the second solution is
@Column(type: ColumnType.int, indexType: IndexType.primaryKey, length: 10, defaultValue: 'NULL AUTO_INCREMENT')
int? get id;
this version is a bit hacki but is works for us :-)
The first solution should work. Will schedule it to be fixed.
Hello, we are currently searching for an ORM plugin for our new DART project and we tested the angel3_orm. But we can't find an auto increment definition for the entity.
Does it really not exist in your ORM or did we just not find the correct way to implement it? Could you give me some feedback regarding this matter? Thank you!