# Gambas Database Template File 3.0
{ Table
  Name="shapes"
  PrimaryKey=["id"]
  { Field
    Name="id"
    Type=db.Serial
  }
  { Field
    Name="sshape"
    Type=db.Blob
  }
  { Field
    Name="skey"
    Type=db.String
    Length=255
  }
  { Field
    Name="itag"
    Type=db.Integer
    Default=0
  }
  { Index
    Name="shapes_IndexKey"
    Unique=False
    Fields=["skey"]
  }
  { Index
    Name="shapes_IndexProject"
    Unique=False
    Fields=["itag"]
  }
}
{ Table
  Name="tag"
  PrimaryKey=["id"]
  { Field
    Name="id"
    Type=db.Serial
  }
  { Field
    Name="sname"
    Type=db.String
    Length=255
  }
  { Index
    Name="project_IndexName"
    Unique=True
    Fields=["sname"]
  }
}
