Professional Documents
Culture Documents
Mo Ta CSDL
Mo Ta CSDL
M t bng li: Mt cng ty kinh doanh cc loi vt t: Gch, thp, xi mng v.v Cc nhn vin trong cng ty c nhim v cp nht vt trn my tnh. Khi xut vt t th t cp nht li s lng tn vi qui tc ngy xut phi sau ngy giao v s lng xut phi nh hn hoc bng s lng giao. Mi nhn vin c phn quyn khc nhau a trn RoleId.
Name
Constraint
Primary key FK
Name
Constraint
Primary key (t tng)
>=1000000, <=9000000
c. Table Vt t
Field Name
Mavt Tenvt Dvt int
Type
Constraint
Primary key (t tng) Unique
nvarchar(50) nvarchar(50)
Makho
int
FK
d. Table Kho
Field Name
Makho Tenkho Diachi int
Type
Constraint
Primary key (t tng) Unique
nvarchar(50) nvarchar(50)
Constraint
Primary key Primary key Primary key >0 >0
Name
UserID Mavt Ngaynhap Soluong_nhap Dongia int int Datetime Int int
Soluongton int >=0 Kha chnh: UserID+ Mavt+ Ngaynhap f. Table Xut vt t Type Field
Constraint
Primary key Primary key Primary key >0
Name
UserID Mavt Ngayxuat Soluong_xuat int int Datetime Int
Dongia int >0 Kha chnh: UserID+ Mavt+ Ngayxuat g. Table Role
Field Name
Roleid int
Type
Constraint
Primary key (t tng)
Rolename
nvarchar(50)
Unique
Diagram