Menu

[r713]: / ch.sahits.codegen.test / fragments / SQLServerCreateScript.sql  Maximize  Restore  History

Download this file

12 lines (11 with data), 365 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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);
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.