Overview
Add a handwritten boolean to notes.
Proposal
In src\server\db\schema\file.ts add handwirtten: boolean().notNull().default(false), to the file schema. Then push these changes to the database by running these commands in the terminal.
npm run drizzle:generate
npm run drizzle:push
The above will also be done in #120.
After that, set this boolean when a user creates a new note. Update the createFileFormSchema in src\utils\formSchemas.ts to take a handwritten value. Update the create trpc procedure in src\server\api\routers\file.ts to insert that handwritten value into the db. Finally, add a MUI checkbox to src\app\notes\create\NoteForm.tsx to allow the user to select whether their note is handwritten.
Overview
Add a handwritten boolean to notes.
Proposal
In
src\server\db\schema\file.tsaddhandwirtten: boolean().notNull().default(false),to the file schema. Then push these changes to the database by running these commands in the terminal.The above will also be done in #120.
After that, set this boolean when a user creates a new note. Update the
createFileFormSchemainsrc\utils\formSchemas.tsto take ahandwrittenvalue. Update thecreatetrpc procedure insrc\server\api\routers\file.tsto insert thathandwrittenvalue into the db. Finally, add a MUI checkbox tosrc\app\notes\create\NoteForm.tsxto allow the user to select whether their note is handwritten.