Skip to main content

Columns

Tables provides a diverse range of column types and constraints, enabling you to create tables that cater to a wide variety of use cases. From simple text fields to complex JSON objects, Tables ensures your data is stored efficiently and meaningfully. Below is a comprehensive overview of the supported data types and constraints.

Data Types

Text

  • Description: Stores short, single-line text.
  • Character Limit: Up to 255 characters.
  • Use Cases: Ideal for labels, titles, or single-line descriptions.

Long Text

  • Description: Designed to store multiline or extended text.
  • Character Limit: Up to 10,000 characters.
  • Use Cases: Useful for storing detailed notes, long descriptions, or comments.

Email

  • Description: Stores email addresses in a valid format.
  • Character Limit: Up to 254 characters.
  • Use Cases: Great for user contact information or customer emails.

Number

  • Description: Stores numeric data, with customizable decimal precision.

  • Precision Options:

    FormatDescriptionExample
    00No decimal places123
    0.01 decimal place123.4
    0.002 decimal places123.45
    0.0003 decimal places123.456
    0.00004 decimal places123.4567
    0.000005 decimal places123.45678
    0.0000006 decimal places123.456789
  • Use Cases: Perfect for storing financial data, statistical values, or metrics.

Checkbox

  • Description: Represents boolean values (True or False).
  • Use Cases: Ideal for tracking binary decisions, toggles, or completion statuses (e.g., "Done/Not Done").
  • Description: Stores URLs or hyperlinks.
  • Character Limit: Up to 2048 characters.
  • Use Cases: Use for website links, resource URLs, or file paths.

JSON

  • Description: Stores structured JSON objects.
  • Use Cases: Great for scenarios requiring nested or hierarchical data (e.g., user preferences, settings).
  • Description: Provides a predefined list of options for selection.
  • Features:
    • Single Select: Allows one option to be selected.
    • Multi-Select: Allows multiple options to be selected.
  • Use Cases: Useful for categories, tags, or statuses (e.g., "In Progress", "Completed").

Date Time

  • Description: Stores dates and times with flexible format options.

  • Supported Formats:

    Date Formats
    FormatExample
    MM/DD/YY12/31/99
    MM/DD/YYYY12/31/1999
    MM-DD-YYYY12-31-1999
    DD-MM-YYYY31-12-1999
    DD/MM/YYYY31/12/1999
    YYYY-MM-DD1999-12-31
    MMMM DD YYYYDecember 31 1999
    ddd MMM DD YYYYFri Dec 31 1999
    Time Formats
    FormatExample
    HH:mm:ss14:30:45
    HH:mm:ss.SSSSSS14:30:45.123456
    HH:mm AM/PM02:30 PM
    HH:mm:ss AM/PM02:30:45 PM
  • Use Cases: Perfect for scheduling, timestamps, or event management.

Phone Number

  • Description: Stores phone numbers in standardized formats.
  • Supported Formats:
FormatExample
+91 123 456 7890+91 123 456 7890
(123) 456-7890(123) 456-7890
+1 (123) 456-7890+1 (123) 456-7890
+91 12 3456 7890+91 12 3456 7890
  • Use Cases: Perfect for contact details or customer support numbers.

Currency

  • Description: Stores monetary values with specific currency formatting.

  • Customization Options:

    • Currency symbols (e.g., $, €, ₹).
    • Precision for decimal places.
    • Localized formatting for thousands and decimals.
  • Use Cases: Ideal for pricing, revenue tracking, or budgeting.

    Tables supports a wide range of currency formats. Below is the tabular data representation of the available currencies.

    Country/RegionCurrency CodeSymbol (Grapheme)Currency Name
    AfghanistanAFN؋Afghanistan Afghani
    AlbaniaALLLekAlbania Lek
    AlgeriaDZD.د.جAlgerian Dinar
    AngolaAOAisAngola Kwanza
    ArgentinaARS$Argentine Peso
    ArmeniaAMDԴArmenian Dram
    ArubaAWGƒAruban Florin
    AustraliaAUD$Australian Dollar
    AzerbaijanAZNAzerbaijanian Manat
    BahamasBSD$Bahamian Dollar
    BahrainBHDب.دBahraini Dinar
    BangladeshBDTBangladesh Taka
    BarbadosBBD$Barbados Dollar
    BelarusBYNBrBelarussian Ruble
    BelizeBZDBZ$Belize Dollar
    BermudaBMD$Bermudian Dollar
    BhutanBTNNuBhutan Ngultrum
    BoliviaBOB$bBoliviano
    Bosnia and HerzegovinaBAMKMConvertible Mark
    BotswanaBWPPBotswana Pula
    BrazilBRLR$Brazilian Real
    BruneiBND$Brunei Dollar
    BulgariaBGNлвBulgarian Lev
    CanadaCAD$Canadian Dollar
    Cape VerdeCVEescCabo Verde Escudo
    ChileCLP$Chilean Peso
    ChinaCNY¥Yuan Renminbi
    ColombiaCOP$Colombian Peso
    CongoCDFFCCongolese Franc
    Costa RicaCRCCosta Rican Colon
    CubaCUPCuban Peso
    Czech RepublicCZKCzech Koruna
    DenmarkDKKkrDanish Krone
    Dominican RepublicDOPRD$Dominican Peso
    EgyptEGP£Egyptian Pound
    EritreaERNNkfEritrean Nakfa
    EthiopiaETBBrEthiopian Birr
    EurozoneEUREU Euro
    FijiFJD$Fiji Dollar
    Falkland IslandsFKP£Falkland Islands Pound
    GeorgiaGELGELGeorgian Lari
    GhanaGHS¢Ghana Cedi
    GibraltarGIP£Gibraltar Pound
    GuatemalaGTQQGuatemalan Quetzal
    GuyanaGYD$Guyanese Dollar
    Hong KongHKD$Hong Kong Dollar
    HondurasHNLLHonduran Lempira
    HungaryHUFFtHungarian Forint
    IndiaINRIndian Rupee
    IndonesiaIDRRpIndonesian Rupiah
    IsraelILSNew Israeli Sheqel
    JapanJPY¥Japanese Yen
    KazakhstanKZTKazakhstan Tenge
    KuwaitKWD.د.كKuwaiti Dinar
    LaosLAKLaos Kip
    MyanmarMMKKMyanmar Kyat
    Netherlands AntillesANGƒNetherlands Antillean Guilder
    New ZealandNZD$New Zealand Dollar
    NorwayNOKkrNorwegian Krone
    PakistanPKRPakistani Rupee
    PhilippinesPHPPhilippine Peso
    RussiaRUBRussian Ruble
    Saudi ArabiaSARSaudi Riyal
    SingaporeSGD$Singapore Dollar
    South AfricaZARRSouth African Rand
    South KoreaKRWKorean Won
    Sri LankaLKRSri Lankan Rupee
    ThailandTHB฿Thai Baht
    TurkeyTRYTurkish Lira
    United Arab EmiratesAEDد.إUAE dirham
    United KingdomGBP£Pound Sterling
    United StatesUSD$US Dollar
    VietnamVNDVietnamese Dong

Constraints

Tables supports a variety of constraints to maintain data integrity, enforce business rules, and streamline workflows. Below are the constraints you can apply to your table columns:

Default Value

  • Description: Assigns a predefined value to a column when no input is provided during row creation.
  • Use Cases: Ensures consistency and reduces manual input, e.g., setting a default status as "Pending" for new entries.

Make It Unique Key

  • Description: Ensures that all values in a column are distinct, preventing duplicate entries within the table.
  • Use Cases: Useful for identifiers like email addresses, phone numbers, or unique codes.

Allow Empty Value

  • Description: Specifies whether a column can have empty (null) values.
  • Use Cases: Allowing empty values for optional fields like comments or secondary phone numbers.

By leveraging these data types and constraints, you can customize your tables to meet diverse requirements while maintaining data integrity and consistency.