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.
# | Name | Type | Extra | Description |
---|---|---|---|---|
1 | id | int | AUTO_INCREMENT | Unique identifier of an animal |
2 | father | int | Refers to the father of the animal | |
3 | mother | int | Refers to the mother of the animal | |
4 | birthdate | date | Birthdate of the animal, must be ISO format | |
5 | gender | enum('unknown','male','female') | Gender of the animal | |
6 | register | varchar(20) | Registration number of the animal in an official registry | |
7 | name | varchar(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.# | Name | Type | Extra | Description |
---|---|---|---|---|
1 | id | int | Unique identifier of an animal | |
2 | weight | int | Weight of animal | |
3 | height | int | Height of animal | |
4 | hd | char(1) | Hipdisplasia | |
5 | scid | enum('unknown','free','carrier') | Severe Combined Imunodeficiency Disease | |
6 | colour | char(4) | Genotype for colour and pattern | |
7 | city | varchar(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.
# | Naam | Type | Extra | Beschrijving |
---|---|---|---|---|
1 | id | int | AUTO_INCREMENT | Unieke identifier (=nummer) van een dier |
2 | father | int | De unieke identifier van de vader | |
3 | mother | int | De unieke identifier van de vader | |
4 | birthdate | date | De geboortedatum van het dier, moet in ISO formaat | |
5 | gender | enum('unknown','male','female') | Geslacht van het dier | |
6 | register | varchar(20) | Registratie nummer van het dier in een officieel stamboek | |
7 | name | varchar(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.# | Naam | Type | Extra | Beschrijving |
---|---|---|---|---|
1 | id | int | Unieke identifier (=nummer) van een dier | |
2 | weight | int | Gewicht van dier | |
3 | height | int | Hoogte van dier | |
4 | hd | char(1) | Heupdysplasie | |
5 | scid | enum('unknown','free','carrier') | Severe Combined Imunodeficiency Disease | |
6 | colour | char(4) | Genotype voor kleur en patroon | |
7 | city | varchar(20) | Stad waar dier woont |