------------------------------------------------------------------------------------------------- -- -- Database for application version -- Generated for MS-SQL 2000+ using adl2mssql.xsl $Revision: 1.3 $ -- -- Code generator (c) 2007 Cygnet Solutions Ltd -- ------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- -- authentication roles ------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- -- primary tables, views and permissions ------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- -- link tables ------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- -- primary referential integrity constraints ------------------------------------------------------------------------------------------------- CASCADE CASCADE CASCADE NO ACTION ------------------------------------------------------------------------------------------------- -- end of file ------------------------------------------------------------------------------------------------- execute sp_addrole @rolename = '' GO ALTER TABLE "" ADD FOREIGN KEY ( "") REFERENCES "" ON DELETE GO ------------------------------------------------------------------------------------------------- -- primary table ------------------------------------------------------------------------------------------------- CREATE TABLE "" ( , ) GO ---- permissions ------------------------------------------------------------------------------ , PRIMARY KEY( "", ) ""."" + ' ' + GRANT SELECT ON "" TO GO GRANT INSERT ON "" TO GO GRANT SELECT, INSERT ON "" TO GO GRANT SELECT, INSERT, UPDATE ON "" TO GO GRANT SELECT, INSERT, UPDATE, DELETE ON "" TO GO REVOKE ALL ON "" FROM GO true true false true false ------------------------------------------------------------------------------------------------- -- link table joining with ------------------------------------------------------------------------------------------------- CREATE TABLE "" ( "Id" INT NOT NULL, "Id" INT NOT NULL, ) GO ---- permissions ------------------------------------------------------------------------------ ---- referential integrity -------------------------------------------------------------------- -- Suppressing generation of , as it is not my responsibility -- Suppressing output of property , -- as it is the 'one' end of a one-to-many relationship INT IDENTITY( 1, 1) IDENTITY( 1, 1) "" NOT NULL DEFAULT '' "" DEFAULT NOT NULL ICollection<> ICollection<> DATETIME DATETIME VARCHAR( ) TEXT BIT TIMESTAMP INT DOUBLE PRECISION DECIMAL INT IDENTITY( 1, 1) [sql:unknown? []] 0 -1 1