Builder returned by a Sporades field helper such as String() or Boolean().
String()
Boolean()
Field builders describe app schema. Call .default(...) when a field should be filled automatically during inserts that omit it.
.default(...)
import { Boolean, String, table } from "sporades/server";const todos = table({ text: String(), done: Boolean().default(false),}); Copy
import { Boolean, String, table } from "sporades/server";const todos = table({ text: String(), done: Boolean().default(false),});
Builder returned by a Sporades field helper such as
String()orBoolean().Field builders describe app schema. Call
.default(...)when a field should be filled automatically during inserts that omit it.Example