We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schema
export const Table = { note: { name: "note", columns: [ { name: "deleted_at", type: "string", isOptional: true, isIndexed: true } ] satisfies ColumnSchema[] } } as const; export default appSchema({ version: 13, tables: [ tableSchema({ name: Table.note.name, columns: Table.note.columns }) ] });
model
import { Table } from "./schema"; export default class Note extends Model { static table = Table.note.name; @date("deleted_at") deletedAt!: Date | null; @readonly @date("created_at") createdAt!: Date; @date("updated_at") updatedAt!: Date; }
changing deletedAt column to use @field works
@field("deleted_at") deletedAt!: string| null; @readonly @date("created_at") createdAt!: Date; @date("updated_at") updatedAt!: Date; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
schema
model
changing deletedAt column to use @field works
The text was updated successfully, but these errors were encountered: