You are on page 1of 2

tbl_tabdil_anbar

column
*PK id: int +FK_tbl_tabdil_anbar_tbl_tabdil_mat
thedate: datetime = create default ... 0..*
amount: bigint = create default ...
*FK tabdilmat_id: int

PK
+ PK_tbl_tabdil_anbar(int)
FK
tbl_dam_talghih + FK_tbl_tabdil_anbar_tbl_tabdil_mat(int)
column
*PK id: int
* num: tinyint = create default ...
thedate: datetime = create default ...
*FK zayesh_id: int

PK
+ PK_tbl_dam_talghih(int)
FK
+ FK_tbl_dam_talghih_tbl_dam_zayesh(int)

+FK_tbl_dam_talghih_tbl_dam_zayesh 0..*

tbl_dam_zayesh

column
*PK id: int
* num: tinyint = create default ...
thedate: datetime = create default ...
(zayesh_id+PK_tbl_dam_zayesh
= id) success: bit = create default ...
+PK_tbl_dam_zayesh
(zayesh_id = id)
*FK dam_earnum: int 1
1

PK
(zayesh_id = id) +PK_tbl_dam_zayesh + PK_tbl_dam_zayesh(int)
1 FK
+ FK_tbl_dam_zayesh_tbl_dam(int)

+FK_tbl_dam_zayesh_tbl_dam 0..*

K_tbl_dam_shir_tbl_dam_zayesh 0..*

tbl_dam_shir
+FK_tbl_dam_hasel_tbl_dam_zayesh 0..*
column
tbl_dam_hasel
*PK id: int
thedate: datetime = create default ...
column
amount: bigint = create default ...
*pfK zayesh_id: int
charbi: tinyint = create default ...
*pfK hasel_earnum: int
prot: tinyint = create default ... (dam_earnum = earnum)
*FK dam_earnum: int
PK
FK zayesh_id: int
+ PK_tbl_dam_hasel(int, int)
FK
PK
+ FK_tbl_dam_hasel_tbl_dam(int)
+ PK_tbl_dam_shir(int)
+ FK_tbl_dam_hasel_tbl_dam_zayesh(int)
FK
+ FK_tbl_dam_shir_tbl_dam(int) +FK_tbl_dam_hasel_tbl_dam 0..*
+ FK_tbl_dam_shir_tbl_dam_zayesh(int)

+FK_tbl_dam_shir_tbl_dam 0..*

+PK_tbl_dam 1
+FK_tbl_dam_tbl_dam 0..*
+FK_tbl_dam_tbl_dam1 0..*
tbl_dam
(pearnum ==earnum)
(mearnum earnum)
column +PK_tbl_dam 1
*PK earnum: int
bodynum: int
FK pearnum: int
(dam_earnum = earnum) +PK_tbl_dam FK mearnum: int +PK_tbl_dam (hasel_earnum = earnum)
1 * gen: bit = create default ... 1

PK
(dam_earnum = earnum) +PK_tbl_dam tbl_check
+ PK_tbl_dam(int)
1 FK column
+ FK_tbl_dam_tbl_dam(int) *PK check_id: int
+ FK_tbl_dam_tbl_dam1(int) check_number: nvarchar(1000) +PK_tbl_check (check_id = check_id)
check_payee: nvarchar(1000)
check_date: datetime = create default ... 1
check_amount: bigint = create default ...

PK
+FK_tbl_dam_bimari_tbl_dam 0..* + PK_tbl_check(int)

tbl_dam_bimari

column
*PK id: int
bimari: nvarchar(4000)
daroo: nvarchar(4000)
FK dam_earnum: int

PK
+ PK_tbl_dam_bimari(int)
FK
+ FK_tbl_dam_bimari_tbl_dam(int)
tbl_tabdil_mat

column tbl_mak_out
*PK id: int
(tabdilmat_id = id) +PK_tbl_tabdil_mat
name: nvarchar(1000) column
1 *PK out_id: int
PK * thedate: datetime
+ PK_tbl_tabdil_mat(int) * amount: bigint

+PK_tbl_tabdil_mat 1 PK
+ PK_tbl_mak_out(int)
(tabdilmat_id = id)

+FK_tbl_tabdil_sellmat_tbl_tabdil_mat 0..*

tbl_mak_sell tbl_tabdil_sellmat
tbl_tabdil_getshir
column column
*PK sell_id: int *PK id: int column
* thedate: datetime thedate: datetime = create default ... *PK id: int
* amount: bigint amount: bigint = create default ... thedate: datetime = create default ...
+FK_tbl_mak_sell_tbl_cust
hesab: nvarchar(4000) *FK cust_id: int amount: bigint = create default ...
+FK_tbl_tabdil_getshir_cust_tbl_cust
*FK cust_id: int 0..* *FK tabdilmat_id: int fromcenter: bit = create default ...
0..* FK cust_id: int
PK PK
+ PK_tbl_mak_sell(int) + PK_tbl_tabdil_sellmat(int) PK
FK FK + PK_tbl_tabdil_getshir_cust(int)
+ FK_tbl_mak_sell_tbl_cust(int) + FK_tbl_tabdil_sellmat_tbl_cust(int) FK
+ FK_tbl_tabdil_sellmat_tbl_tabdil_mat(int) + FK_tbl_tabdil_getshir_cust_tbl_cust(int)
+FK_tbl_tabdil_sellmat_tbl_cust 0..*

(cust_id = id)

(cust_id = id)
(cust_id = id)

tbl_center_sellalaf
tbl_tahvilshir
column
+PK_tbl_cust 1
*PK id: int column
+PK_tbl_cust
thedate: datetime = create default ... tbl_cust *PK id: int
amount: bigint = create default ... 1 thedate: datetime = create default ...
unitprice: bigint = create default ... column amount: bigint = create default ...
+FK_tbl_center_sellalaf_tbl_cust +PK_tbl_cust
*FK cust_id: int (cust_id = id) *PK id: int tofactory: bit = create default ...
+PK_tbl_cust name: nvarchar(1000)
0..* 1 1 FK cust_id: int
PK
PK +PK_tbl_cust+FK_tbl_tahvilshir_cust_tbl_cust
(cust_id = id)
+ PK_tbl_center_sellalaf(int) PK
FK + PK_tbl_cust(int) 1 0..* + PK_tbl_tahvilshir_cust(int)
+ FK_tbl_center_sellalaf_tbl_cust(int) +PK_tbl_cust
+PK_tbl_cust
1+PK_tbl_cust
1 1 FK
+ FK_tbl_tahvilshir_cust_tbl_cust(int)

(cust_id = id) (cust_id = id)


tbl_center_buyshir
(cust_id = id)
column tbl_mat_sell
*PK id: int
column
thedate: datetime = create default ...
+FK_tbl_center_sellshir_tbl_cust +FK_tbl_mat_sell_tbl_cust *PK sell_id: int
amount: bigint = create default ...
* thedate: datetime
unitprice: bigint = create default ... 0..* 0..*
dansite: tinyint = create default ... * amount: bigint
prot: tinyint = create default ... +FK_tbl_in_tbl_cust 0..* hesab: nvarchar(4000)
*FK mat_id: int
charbi: tinyint = create default ...
tbl_in *FK cust_id: int
water: tinyint = create default ...
drymat: tinyint = create default ... column
FK cust_id: int PK
*PK in_id: int
+ PK_tbl_mat_sell(int)
thedate: datetime = create default ...
PK FK
amount: bigint = create default ...
+ PK_tbl_center_sellshir(int) +FK_tbl_in_tbl_mat + FK_tbl_mat_sell_tbl_cust(int)
FK mat_id: int
FK + FK_tbl_mat_sell_tbl_mat(int)
FK cust_id: int 0..*
+ FK_tbl_center_sellshir_tbl_cust(int) +FK_tbl_mat_sell_tbl_mat 0..*
PK
(in_id = in_id) +PK_tbl_in + PK_tbl_in(int)
FK (mat_id = id)
1
+ FK_tbl_in_tbl_cust(int)
+ FK_tbl_in_tbl_mat(int) (mat_id = id)
+FK_tbl_inchecks_tbl_in 0..*

tbl_inchecks
+PK_tbl_mat 1
column
tbl_mat
*pfK in_id: int
+FK_tbl_inchecks_tbl_check *pfK check_id: int tbl_mat_out column
+PK_tbl_mat *PK id: int
0..* PK column
1 name: nvarchar(1000)
+ PK_tbl_inchecks(int, int) *PK out_id: int +FK_tbl_mat_out_tbl_mat
(mat_id = id) +PK_tbl_mat
FK * thedate: datetime PK
* amount: bigint 0..* 1
+ FK_tbl_inchecks_tbl_check(int) + PK_tbl_mat(int)
+ FK_tbl_inchecks_tbl_in(int) *FK mat_id: int
+PK_tbl_mat 1
PK
+ PK_tbl_mat_out(int)
FK (mat_id = id)
+ FK_tbl_mat_out_tbl_mat(int)

+FK_tbl_mak_contents_tbl_mat 0..*

tbl_mak_contents

tbl_mak column
*pfK mak_id: int
column *pfK mat_id: int
*PK mak_id: int +PK_tbl_mak (mak_id = mak_id) +FK_tbl_mak_contents_tbl_mak * amount: bigint
* thedate: datetime
1 0..*
PK
PK + PK_tbl_mak_contents(int, int)
+ PK_tbl_mak(int) FK
+ FK_tbl_mak_contents_tbl_mak(int)
+ FK_tbl_mak_contents_tbl_mat(int)

You might also like