I want to use table names in Postgres like "TableName". In Aqueduct the suggested class name is _tablename.
As I read the manual I can use @Table(name: "TableName") but that doesn't seem to work (or probably not understood correctly).
Is there a way to use a different table name in Postgres versus the private class name in Aqueduct?
@Table(name: "UserName")
class User extends ManagedObject<_User> implements _User {
@Serialize()
String get fullname => '$firstname $lastname';
@override
void willUpdate() {
// Add anything here to change prior to being updated.
}
@override
void willInsert() {
// Add anything here to change prior to being inserted.
}
}
class _User {
@primaryKey
int id;
@Column(nullable: false)
String firstname;
@Column(nullable: false)
String lastname;
@Column(nullable: false)
String email;
}