Const
Marks a property as the SQL primary key for a model.
Every @D1 class must define exactly one primary key.
@D1
A primary key property cannot be nullable.
Example:
@D1export class User { @PrimaryKey id: number; name: string;} Copy
@D1export class User { @PrimaryKey id: number; name: string;}
Marks a property as the SQL primary key for a model.
Every
@D1class must define exactly one primary key.A primary key property cannot be nullable.
Example: