@@ -156,14 +156,14 @@ type NormalizeIndexColumns<
156156
157157/**
158158 * Options for configuring a database table.
159- * - `name `: The name of the table.
159+ * - `accessor `: The name of the table.
160160 * - `public`: Whether the table is publicly accessible. Defaults to `false`.
161161 * - `indexes`: An array of index configurations for the table.
162162 * - `constraints`: An array of constraint configurations for the table.
163163 * - `scheduled`: The name of the reducer to be executed based on the scheduled rows in this table.
164164 */
165165export type TableOpts < Row extends RowObj > = {
166- name : string ;
166+ accessor : string ;
167167 public ?: boolean ;
168168 indexes ?: IndexOpts < keyof Row & string > [ ] ; // declarative multi‑column indexes
169169 constraints ?: ConstraintOpts < keyof Row & string > [ ] ;
@@ -234,17 +234,17 @@ export interface TableMethods<TableDef extends UntypedTableDef>
234234/**
235235 * Defines a database table with schema and options.
236236 *
237- * @param opts - Table configuration including name , indexes, and access control
237+ * @param opts - Table configuration including accessor , indexes, and access control
238238 * @param row - Product type defining the table's row structure
239239 * @returns Table handle for use in schema() function
240240 *
241241 * @example
242242 * ```ts
243243 * const playerTable = table(
244- * { name : 'player', public: true },
244+ * { accessor : 'player', public: true },
245245 * {
246246 * id: t.u32().primaryKey(),
247- * name : t.string().index('btree')
247+ * accessor : t.string().index('btree')
248248 * }
249249 * );
250250 * ```
@@ -284,9 +284,9 @@ export function table<Row extends RowObj, const Opts extends TableOpts<Row>>(
284284 > ,
285285 ]
286286 : [ ]
287- ) : TableSchema < Opts [ 'name ' ] , CoerceRow < Row > , OptsIndices < Opts > > {
287+ ) : TableSchema < Opts [ 'accessor ' ] , CoerceRow < Row > , OptsIndices < Opts > > {
288288 const {
289- name,
289+ accessor : name ,
290290 public : isPublic = false ,
291291 indexes : userIndexes = [ ] ,
292292 scheduled,
0 commit comments