CREATE TABLE  USER (
  ID bigint IDENTITY (1,1) NOT NULL PRIMARY KEY,
  NAME varchar(30) NOT NULL UNIQUE,
  SURNAME varchar(30) NOT NULL,
  EMAIL varchar(30) NOT NULL,
  BIRTH_DATE smalldatetime NOT NULL,
  IMAGE image NOT NULL,
  AGE smallint NOT NULL,
  CONSTRAINT FK_NAME FOREIGN KEY REFERENCES USER_GROUP (NAME)
);
CREATE UNIQUE INDEX SK_EMAIL on USER (EMAIL);
