==================
Field with InitValue property
==================

table 50000 "Test Table"
{
    fields
    {
        field(1; "IC Inbox Type"; Option)
        {
            Caption = 'IC Inbox Type';
            InitValue = Database;
            OptionMembers = "File Location",Database;
        }
    }
}

---

(source_file
  (table_declaration
    (table_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (fields_section
      (fields_keyword)
      (field_declaration
        id: (integer)
        name: (quoted_identifier)
        type: (type_specification
          (option_type))
        (property
          name: (property_name)
          value: (string_literal))
        (property
          name: (property_name)
          value: (keyword_identifier))
        (property
          name: (property_name)
          value: (option_member_list
            (option_member
              (quoted_identifier))
            (option_member
              (keyword_identifier))))))))

==================
Field with MinValue and MaxValue properties
==================

table 50001 "Test Table 2"
{
    fields
    {
        field(1; Amount; Decimal)
        {
            MinValue = 0;
            MaxValue = 1000000;
        }
    }
}

---

(source_file
  (table_declaration
    (table_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (fields_section
      (fields_keyword)
      (field_declaration
        id: (integer)
        name: (identifier)
        type: (type_specification
          (basic_type))
        (property
          name: (property_name)
          value: (integer))
        (property
          name: (property_name)
          value: (integer))))))

==================
Field with NotBlank and Numeric properties
==================

table 50002 "Test Table 3"
{
    fields
    {
        field(1; "Code"; Code[20])
        {
            NotBlank = true;
        }
        field(2; "Value"; Text[30])
        {
            Numeric = true;
        }
    }
}

---

(source_file
  (table_declaration
    (table_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (fields_section
      (fields_keyword)
      (field_declaration
        id: (integer)
        name: (quoted_identifier)
        type: (type_specification
          (code_type
            length: (integer)))
        (property
          name: (property_name)
          value: (boolean)))
      (field_declaration
        id: (integer)
        name: (quoted_identifier)
        type: (type_specification
          (text_type
            length: (integer)))
        (property
          name: (property_name)
          value: (boolean))))))

==================
Mixed case validation properties
==================

table 50003 "Test Table 4"
{
    fields
    {
        field(1; TestField; Integer)
        {
            INITVALUE = 100;
            minvalue = 0;
            MaxValue = 200;
            notblank = true;
            NUMERIC = false;
        }
    }
}

---

(source_file
  (table_declaration
    (table_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (fields_section
      (fields_keyword)
      (field_declaration
        id: (integer)
        name: (identifier)
        type: (type_specification
          (basic_type))
        (property
          name: (property_name)
          value: (integer))
        (property
          name: (property_name)
          value: (integer))
        (property
          name: (property_name)
          value: (integer))
        (property
          name: (property_name)
          value: (boolean))
        (property
          name: (property_name)
          value: (boolean))))))
