<commit_before>﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://static.gigobyte.com/schema/v1/xddl.xsd"
           xmlns="http://static.gigobyte.com/schema/v1/xddl.xsd"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           elementFormDefault="qualified">
  <xs:element name="schema">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="table"
                    type="Table"
                    minOccurs="0"
                    maxOccurs="unbounded" />

        <xs:element name="script"
                    type="xs:string"
                    minOccurs="0" />
      </xs:sequence>

      <xs:attribute name="name"
                    type="xs:string"
                    use="optional" />

      <xs:attribute name="author"
                    type="xs:string"
                    use="optional" />
    </xs:complexType>
  </xs:element>

  <!-- XSD TYPES -->
  <!-- C -->

  <xs:complexType name="Column">
    <xs:sequence>
      <xs:element name="comment"
                  type="xs:string"
                  minOccurs="0" />

      <xs:element name="dataType"
                  type="DataType" />

      <xs:element name="modifier"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="unbounded" />
    </xs:sequence>

    <xs:attribute name="name"
                  type="xs:string"
                  use="required" />

    <xs:attribute name="nullable"
                  type="xs:boolean"
                  use="optional"
                  default="0" />

    <xs:attribute name="autoIncrement"
                  type="xs:boolean"
                  default="0"
                  use="optional" />
  </xs:complexType>

  <!-- D -->

  <xs:complexType name="DataType">
    <xs:simpleContent>
      <xs:extension base="TypeName">
        <xs:attribute name="scale"
                      type="xs:int"
                      use="optional" />

        <xs:attribute name="precision"
                      type="xs:int"
                      use="optional" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

  <!-- F -->

  <xs:complexType name="ForeignKey">
    <xs:all>
      <xs:element name="onUpdate"
                  type="ForeignKeyRule"
                  minOccurs="0" />

      <xs:element name="onDelete"
                  type="ForeignKeyRule"
                  minOccurs="0" />
    </xs:all>

    <xs:attribute name="name"
                  type="xs:string"<commit_msg>Add table property to column.cs and foreignkey.cs<commit_after>﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://static.gigobyte.com/schema/v1/xddl.xsd"
           xmlns="http://static.gigobyte.com/schema/v1/xddl.xsd"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           elementFormDefault="qualified">
  <xs:element name="schema">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="table"
                    type="Table"
                    minOccurs="0"
                    maxOccurs="unbounded" />

        <xs:element name="script"
                    type="xs:string"
                    minOccurs="0" />
      </xs:sequence>

      <xs:attribute name="name"
                    type="xs:string"
                    use="optional" />

      <xs:attribute name="author"
                    type="xs:string"
                    use="optional" />

      <xs:attribute name="lastUpdate"
                    type="xs:dateTime"
                    use="optional" />
    </xs:complexType>
  </xs:element>

  <!-- XSD TYPES -->
  <!-- C -->

  <xs:complexType name="Column">
    <xs:sequence>
      <xs:element name="comment"
                  type="xs:string"
                  minOccurs="0" />

      <xs:element name="dataType"
                  type="DataType" />

      <xs:element name="modifier"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="unbounded" />
    </xs:sequence>

    <xs:attribute name="name"
                  type="xs:string"
                  use="required" />

    <xs:attribute name="nullable"
                  type="xs:boolean"
                  use="optional"
                  default="0" />

    <xs:attribute name="autoIncrement"
                  type="xs:boolean"
                  default="0"
                  use="optional" />
  </xs:complexType>

  <!-- D -->

  <xs:complexType name="DataType">
    <xs:simpleContent>
      <xs:extension base="TypeName">
        <xs:attribute name="scale"
                      type="xs:int"
                      use="optional" />

        <xs:attribute name="precision"
                      type="xs:int"
                      use="optional" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>

  <!-- F -->

  <xs:complexType name="ForeignKey">
    <xs:all>
      <xs:element name="onUpdate"
                  type="ForeignKeyRule"
                  minOccurs="0" />

      <xs:element name="onDelete"
                  type="ForeignKeyRule"
                  minOccurs="0" />
    </xs:all>

    <xs:attribute name="name"
                  type="xs:string"
                  use="optional" />

    <xs:attribute name="table"
                  type="xs:string"
{'fraction_non_alphanumeric': 0.1488673139158576, 'fraction_numerical': 0.006853226727584237, 'mean_word_length': 1.4655091506335054, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 2, '>': 83, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4957897', 'n_tokens_mistral': 1582, 'n_tokens_neox': 1465, 'n_words': 211}