³¤´º¹¤Òµ´óѧÈËÎÄÐÅϢѧԺ 11043113ºÅ ÁÖ°²ç÷±ÏÒµÂÛÎÄ
±í3-7 Óû§ÐÅÏ¢±í(users)
×Ö¶ÎÃû userid username password truename Sex question answer email phone usertype ×Ö¶ÎÀàÐÍ Int Varchar(50) Varchar(50) Varchar(50) Bit Varchar(50) Varchar(50) Varchar(50) Varchar(50) Int ÊÇ·ñΪ¿Õ N N N N N N N Y N Y ˵Ã÷ Óû§Î¨Ò»id£¬×Ô¶¯ÔöÁ¿ ²Ö¿âÃû³Æ ²Ö¿âËùÔÚµØÖ· ²Ö¿âÃèÊö ÐÔ±ð 1±íʾÄУ¬0±íʾŮ ÃÜÂëÎÊÌâ ÎÊÌâ´ð°¸ email µç»° Óû§ÀàÐÍ£¬ÔÝʱδʹÓøÃ×Ö¶Î 3.3.4Êý¾Ý¿âµÄÎïÀí½á¹¹Éè¼Æ 1.´´½¨¿â´æÐÅÏ¢±í
create table stores (
Storeid int(4) primary key not null, Name varchar(200) not null default, Address varchar(200) not null default, Description varchar(200) not null default )
µÚ 24 Ò³
¹² 37 Ò³
³¤´º¹¤Òµ´óѧÈËÎÄÐÅϢѧԺ 11043113ºÅ ÁÖ°²ç÷±ÏÒµÂÛÎÄ
2.´´½¨´æ´¢¹æÔò±í
create table storerule (
Uid bigint primary key not null, Medicalid bigint not null default, Storied int(4) not null default, Topcount int(4) not null default, Basecount int(4) not null default, Curcount int(4) not null default )
3.´´½¨³öÈë¿â¼Ç¼±í
create table outinrecords (
Uid bigint primary key not null, Medicalid bigint not null default, Storied int(4) not null default, Stype bit not null default, Tcunt int(4) not null default, Managerid int(4) not null default, Shandler ivarchar(200) not null default, Opdate smalldatetime not null default )
4.´´½¨Ò©Æ·ÐÅÏ¢±í
create table medical
¹² 37 Ò³
µÚ 25 Ò³
³¤´º¹¤Òµ´óѧÈËÎÄÐÅϢѧԺ 11043113ºÅ ÁÖ°²ç÷±ÏÒµÂÛÎÄ
(
Medicalid bigint primary key not null, Cname varchar(200) not null default, Tiaoma varchar(200) not null default, Bianma varchar(200) not null default, Jiliang varchar(200) not null default, Pici varchar(200) not null default, Jinjia money not null default, Shoujia money not null default, Dazhelv Float not null default, Outdate Smalldatetime not null default, Pertime Smalldatetime not null default, Prodcorp varchar(200) not null default, Provider1 varchar(200) not null default, Provider2 varchar(200) not null default )
5.´´½¨Ò©Æ·²É¹º¼Æ»®±í
create table medical (
uid int primary key not null, status bt not null default, medicalid bigint not null default, Tcount int(4) not null default,
¹² 37 Ò³
µÚ 26 Ò³
³¤´º¹¤Òµ´óѧÈËÎÄÐÅϢѧԺ 11043113ºÅ ÁÖ°²ç÷±ÏÒµÂÛÎÄ
Zongjia money not null default, Provider varchar(200) not null default, Makeuserid int not null default, Makedate Smalldatetime not null default, Execuser varchar(200) not null default, Execdate Smalldatetime not null default )
6.´´½¨ÏúÊۼǼ±í
create table medical (
Uid bigint primary key not null, Opdate smalldatetime not null default, Medicalid bigint not null default, Tcount int not null default, Opuserid int not null default, Zongjia money not null default, Recipeid varchar(50) not null default )
7.´´½¨Óû§ÐÅÏ¢±í
create table users (
userid int primary key not null, username varchar(50) not null default,
¹² 37 Ò³
µÚ 27 Ò³