eggbird
software development and
knowledge engineering

Mail

English Nederlands

BAS - Breeder Assistant Software

BAS Database

BAS stores information about the animals in two tables of a MySQL database. The name of the database, the database user and the password must be stored in db_info.php. At the moment, BAS can not create the required tables itself, and simply assumes that these tables exist. The definition of the required tables is given below.

Table - animals

The table animals stores the pedigree information.

#NameTypeExtraDescription
1idintAUTO_INCREMENTUnique identifier of an animal
2fatherintRefers to the father of the animal
3motherintRefers to the mother of the animal
4birthdatedateBirthdate of the animal, must be ISO format
5genderenum('unknown','male','female')Gender of the animal
6registervarchar(20)Registration number of the animal in an official registry
7namevarchar(40)Name of the animal

Table - features

The features table below is specific for the Frisian Water Dog population. For other animals it is probably useful to put other features into this table. At the moment this would require some adjustments to the PHP code.

#NameTypeExtraDescription
1idintUnique identifier of an animal
2weightintWeight of animal
3heightintHeight of animal
4hdchar(1)Hipdisplasia
5scidenum('unknown','free','carrier')Severe Combined Imunodeficiency Disease
6colourchar(4)Genotype for colour and pattern
7cityvarchar(20)City where the animal lives

BAS slaat informatie over de dieren op in twee tabellen van een MySQL database. De naam van de database, de database gebruiker en het passwoord moeten worden opgeslagen in db_info.php. Op dit moment, kan BAS niet zelf de benodigde tabellen aanmaken, en gaat er vanuit dat deze tabellen bestaan. De definitie van de benodigde tabellen staat hieronder.

Tabel - animals

In de tabel animals staat de stamboom informatie.

#NaamTypeExtraBeschrijving
1idintAUTO_INCREMENTUnieke identifier (=nummer) van een dier
2fatherintDe unieke identifier van de vader
3motherintDe unieke identifier van de vader
4birthdatedateDe geboortedatum van het dier, moet in ISO formaat
5genderenum('unknown','male','female')Geslacht van het dier
6registervarchar(20)Registratie nummer van het dier in een officieel stamboek
7namevarchar(40)Naam van het dier

Tabel - features

De features tabel hieronder is specifiek voor de wetterhoun populatie. Voor andere dieren is het waarschijnlijk nodig om andere kenmerken in deze tabel op te slaan. Momenteel zal dat betekenen dat de PHP code moet worden aangepast.

#NaamTypeExtraBeschrijving
1idintUnieke identifier (=nummer) van een dier
2weightintGewicht van dier
3heightintHoogte van dier
4hdchar(1)Heupdysplasie
5scidenum('unknown','free','carrier')Severe Combined Imunodeficiency Disease
6colourchar(4)Genotype voor kleur en patroon
7cityvarchar(20)Stad waar dier woont