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.

ColumnSuffixAttribute
suffix
(
string suffix
)

Examples

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

Meta