-------------------------------------------------------------------------------------------------
--
-- Database for application version
-- Generated for MS-SQL 2000+ using adl2mssql.xsl $Revision: 1.4 $
--
-- 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)
ADL: WARNING: type='serial' is deprecated; add a generator with type='native' instead
IDENTITY( 1, 1)
"" NOT NULL DEFAULT
''
"" DEFAULT NOT NULL
ADL: WARNING: entity '' has a compound primary key;
adl2mssql is not yet clever enough to generate appropriate code
ICollection<>
ICollection<>
DATETIME
DATETIME
VARCHAR( )
TEXT
BIT
TIMESTAMP
INT
DOUBLE PRECISION
DECIMAL
INT IDENTITY( 1, 1)
[sql:unknown? []]
0
-1
1