Field Types
To Know the types of fields are available.
Fireapis allows you to use almost all types of fields and by default, fireapis will add validation to that field type. Here is the list of fields supported
Field Type | Field Description | Field Option |
---|---|---|
String | Can store any type of data passed as a string | Can be optional, Can be unique |
Number | Can store number with number validation | Can be optional, Can be unique |
Foreign Key | Add a relationship of another API resource with this field type. Read more | Can be optional, Can be unique |
JSON | A data JSON can be stored it may be an object or array, it accepts only JSON. | Can be optional only |
Boolean | The boolean type will accept only true or false, null can be passed if is made optional | Can be optional only |
Primary Key | This field is an important type, by default id is added as a primary key. Read more | Can be unique only |
Date Time | Field can be used to store the timestamp in ISO format with UTC timezone. It accepts only timestamps. Read more | Can be optional , can have auto-create and auto-update time |
URL | Accepts only a valid URL. | Can be optional, Can be unique |
UUID | Accepts only a valid UUID | Can be optional, Can be unique |
FLOAT | Accepts decimals numbers only. Like 2.0,9.2.., | Can be optional, Can be unique |
IP ADDRESS | Accepts a valid ip address. Like 255:255:255 | Can be optional, Can be unique |
Date | Accepts a valid date format as yyyy-mm-dd. | Can be optional, can have auto-create and auto-update time |
Time | Accepts a valid date format as HH:MM:SS as 24-hour format | Can be optional, can have auto-create and auto-update time |
Last modified 1yr ago