Creating a new Form
Create a database table
- Log into Xata.io and open the
nmsud-submission
database - Create a new table
- Specify the data types per column, it is better to keep the fields
not null
. It helps with the Typescript typings
- Specify the data types per column, it is better to keep the fields
- Run
npm run db:generate
in the project to get the latest types
- Log into Xata.io and open the
Add new item to the
IApiSegment
interface inapi.ts