------------------------------------------------------------------------------------------------- -- -- Database for application version -- Generated for MS-SQL 2000+ using adl2mssql.xsl $Revision: 1.1 $ -- -- Code generator (c) 2007 Cygnet Solutions Ltd -- ------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- -- authentication roles ------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- -- tables, views and permissions ------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- -- 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 "" ( Id INT IDENTITY( 1, 1) PRIMARY KEY ) GO ---- permissions ------------------------------------------------------------------------------ ---- link tables ------------------------------------------------------------------------------ ""."" + ' ' + 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 -- Responsibility = '' ------------------------------------------------------------------------------------------------- -- 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 DEFAULT NOT NULL, "" VARCHAR( ) INT DOUBLE PRECISION DEFAULT NOT NULL, -- SQL Server doesn't have proper booleans! "" BIT DEFAULT 1 DEFAULT 0 NOT NULL, "" VARCHAR( ) DEFAULT '' NOT NULL, "" DATETIME DEFAULT NOT NULL, "" INT DEFAULT NOT NULL, "" DOUBLE PRECISION DEFAULT NOT NULL, "" DEFAULT NOT NULL, 0 -1 1