1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| CREATE TABLE [LISTE_ANIMAUX]
( [typeanimal] TEXT(70),
CONSTRAINT [PRIMARY KEY] PRIMARY KEY ( [typeanimal]) ) ;
CREATE TABLE [CLIENT]
( [numclient ] TEXT(70) ,
[typeclient ] LONG,
[nomclient ] TEXT(70),
[rue] TEXT (70),
[localite] TEXT(70),
[departement] TEXT(70),
[codepostal] TEXT(70),
[telephone] TEXT(70),
[siteweb] TEXT(70),
[clientdepuis ] DATETIME,
[remise ] LONG,
[balance] LONG,
CONSTRAINT [PRIMARY KEY] PRIMARY KEY ( [numclient] ) ) ;
CREATE TABLE [ANIMAL]
( [idanimal] TEXT(70),
[numclient] TEXT (70),
[nomanimal] TEXT(70),
[typeanimal] TEXT(70),
[race] TEXT(70),
[dn] DATETIME,
[sexe] TEXT(70),
[couleur] TEXT(70),
[sterilisation] YESNO,
[taille] LONG,
[poids] LONG ,
[decede] YESNO,
[commentaires] TEXT (250),
CONSTRAINT [FOREIGN KEY] FOREIGN KEY ( [numclient] )
CONSTRAINT [PRIMARY KEY ] PRIMARY KEY ([idanimal] ) ) ; |
Partager