schema.ts file in your confect/ directory, and should be the default export of that file.
Tables are defined using the Table.make function, and are added to the database schema with the addTable method. Indexes are defined on tables the same way as in the base Convex APIs.
confect/schema.ts
Deriving table Schemas
Fields
ATable’s Fields property contains an Effect Schema for the user-defined fields of a table.
Doc
ATable’s Doc property contains an Effect Schema for the table’s document, meaning the table’s user-defined Fields plus its system fields (_id and _creationTime).