USE WirtualnySklep
GO

CREATE TABLE tZamowienia
  (
    ZamowienieID int NOT NULL PRIMARY KEY,
    KlientID int NOT NULL,
    DataZamowienia smalldatetime NOT NULL,
    DataTransportu smalldatetime NOT NULL,
    DataWystawieniaRachunku smalldatetime NOT NULL,
    DataZaplaty smalldatetime NOT NULL,
    StatusProduktu char (10) NOT NULL,
    StatusRachunku char (10) NOT NULL,
    RodzajTransportu char (10) NOT NULL,
    SumaPosrednia smallmoney NOT NULL,
    Rabat int NOT NULL,
    Podatek int NOT NULL,
    OplataTransportowa smallmoney NOT NULL,
    RazemDoZaplaty smallmoney NOT NULL
   )
GO