suffix

Allows placing any text after the column definition when ensureSchema is ran.

Useful for stuff like "NOT NULL", or "CHECK (x > y)", ...

Do not use to create foreign keys, use @FK instead.

Examples

@relation("testy")
struct Test
{
   @serial @PK int id;
   @suffix("NOT NULL") string username; // will produce "username TEXT NOT NULL"
}

Meta