Creating a schema using app.eraser.io involves a few steps to structure your data properly. Here’s a step-by-step guide to help you create a schema on the platform:
- Sign Up / Log In:
- First, you need to sign up or log in to your account on app.eraser.io.
- Accessing the Schema Creation Tool:
- Once logged in, navigate to the section of the app where you can create new projects or schemas. This might be under a menu labeled “Schemas,” “Projects,” “Databases,” or similar.
- Creating a New Schema:
- Look for an option to create a new schema. This might be a button labeled “New Schema,” “Create Schema,” “Add Schema,” or similar.
- Define Schema Structure:
- You will need to define the structure of your schema, which includes specifying the fields and data types. Typically, this process involves:
- Adding Fields: Click on an option to add a new field.
- Naming Fields: Give each field a descriptive name.
- Setting Data Types: Choose the data type for each field (e.g., string, integer, boolean, date).
- Customize Field Properties:
- For each field, you may be able to set additional properties, such as:
- Required: Specify if the field is mandatory.
- Default Values: Set default values for the field.
- Validation Rules: Define any validation rules or constraints.
- Save the Schema:
- After defining all the fields and their properties, save the schema. There should be a save button or option to finalize the schema creation.
- Using the Schema:
- Once the schema is created, you can use it to structure data input in your projects or databases within the app. This might involve linking the schema to a specific data collection form or database table.
Example of Schema Fields
Here’s an example to illustrate what your schema might look like:
- Field Name:
name - Data Type:
string - Required:
yes - Field Name:
age - Data Type:
integer - Required:
no - Default Value:
0 - Field Name:
email - Data Type:
string - Required:
yes - Validation Rule:
must be a valid email address - Field Name:
date_of_birth - Data Type:
date - Required:
no
Tips for Creating a Schema
- Plan Ahead: Before creating the schema, plan out the structure and types of data you need to collect.
- Keep it Simple: Start with a simple schema and add complexity as needed.
- Validation: Implement validation rules to ensure data integrity.
- Documentation: Document the schema for future reference and for other team members.