You are on page 1of 13

Data type Size PK NN BIN UN UQ ZF AI

1
iduser VARCHAR
2
position INT
3
status VARCHAR
4
turn VARCHAR
5
professionalicense VARCHAR
6
ife VARCHAR
7
rfc VARCHAR
8
curp VARCHAR
9
phone VARCHAR
10
mobile VARCHAR
11
marital VARCHAR
12
age INT
13
borndate DATE
14
sex VARCHAR
15
street VARCHAR
16
numberstreet VARCHAR
17
colony VARCHAR
18
community VARCHAR
19
municipality VARCHAR
20
postcode INT
21
state VARCHAR
22
createdate DATETIME
23
modifydate DATETIME
UserDatas Name table
Names of the fields
PK - Primary Key
NN - Not Null
BIN - Binary
UN - Unsigned
UQ - Create/remove Unique Key
ZF - Zero-Filled
AI - Auto Incremenent
Data type Size PK NN BIN UN UQ ZF AI
1
iduser VARCHAR
2
name VARCHAR
3
lastpaternal VARCHAR
4
lastmaternal VARCHAR
5
email VARCHAR
6
password VARCHAR
7
userlevel INT
Name table UserLogin
Names of the fields
Data type Size PK NN BIN UN UQ ZF AI
1
idmodule INT
2
namemodule VARCHAR
3
iduser VARCHAR
4
status INT
Name table UserLevelModule
Names of the fields
Data type Size PK NN BIN UN UQ ZF AI
1
idregistration VARCHAR
2
clinicname VARCHAR
3
director VARCHAR
4
phone VARCHAR
5
street VARCHAR
6
numberstreet VARCHAR
7
colony VARCHAR
8
community VARCHAR
9
municipality VARCHAR
10
postcode INT
11
state VARCHAR
12
ip VARCHAR
13
openingdate DATE
Name table ClinicDatas
Names of the fields
Data type Size PK NN BIN UN
1
idcodebar VARCHAR
2
amountprevious INT
3
productnew INT
4
amountactual INT
salesproduct INT
5
createdate DATE
6
createhour Time
Name table UpdateMedicalProduct
Names of the fields
UQ ZF AI
UpdateMedicalProduct
Data type Size PK NN BIN UN UQ ZF AI
1
idcodebar INT
2
nationalcode VARCHAR
3
clasifcation INT
4
commertialname VARCHAR
5
activesubstance VARCHAR
6
description VARCHAR
7
laboratory VARCHAR
8
expirationdate DATE
9
adquisitionprice INT
10
saleprice INT
11
creationdate DATETIME
12
modifydtae DATETIME
Name table MedicalProduct
Names of the fields
Data type Size PK NN BIN
1
idcodebar INT
2
unitys INT
3
createdate DATETIME
4
modifydate DATETIME
Name table TotalStock
Names of the fields
UN UQ ZF AI
TotalStock
Data type Size PK NN BIN UN UQ ZF AI
1
idsalespharmacy INT
2
descount DOUBLE
3
subtotal DOUBLE
4
total DOUBLE
5
datesale DATE
6
hoursale TIME
7
typepay INT
8
iduser VARCHAR
Names of the fields
Name table SalesPharmacy
Data type Size PK NN BIN UN UQ ZF AI
1
idsalesdescription INT
2
idcodebar INT
3
descount INT
4
unitys INT
Name table SalesPharmacyDescription
Names of the fields
Data type Size PK NN BIN UN UQ ZF AI
1
idtypepay INT
2
namepay VARCHAR
Name table TypePaying
Names of the fields

You might also like