schema top-level constant
CollectionSchema
const schema
Implementation
const schema = CollectionSchema(
tableName,
properties: [
PropertySchema(
"id",
type: PropertyType.text,
primaryKey: true,
nullable: false,
),
PropertySchema("name", type: PropertyType.text),
PropertySchema("age", type: PropertyType.integer),
PropertySchema("height", type: PropertyType.double),
PropertySchema("isStaff", type: PropertyType.boolean),
PropertySchema("createdAt", type: PropertyType.datetime),
PropertySchema("profilePicture", type: PropertyType.blob),
],
);