USE [NHibernateIntro] GO /****** Object: Table [dbo].[tbOrder] Script Date: 10/22/2008 00:07:43 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[tbOrder]( [pk_order_id] [int] IDENTITY(1,1) NOT NULL, [fk_customer_id] [int] NOT NULL, [order_amount] [decimal](18, 2) NOT NULL, [order_date] [datetime] NOT NULL, [product_name] [nvarchar](50) NOT NULL, [quantity] [int] NOT NULL, CONSTRAINT [PK_tbOrder] PRIMARY KEY CLUSTERED ( [pk_order_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[tbStore] Script Date: 10/22/2008 00:07:43 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[tbStore]( [pk_store_id] [int] IDENTITY(1,1) NOT NULL, [name] [nvarchar](50) NOT NULL, [accounting_code] [nvarchar](50) NOT NULL, CONSTRAINT [PK_tbAddress] PRIMARY KEY CLUSTERED ( [pk_store_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[tbCustomer] Script Date: 10/22/2008 00:07:43 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[tbCustomer]( [pk_customer_id] [int] IDENTITY(1,1) NOT NULL, [first_name] [nvarchar](50) NOT NULL, [last_name] [nvarchar](50) NOT NULL, [created_date] [datetime] NOT NULL, [fk_store_id] [int] NULL, CONSTRAINT [PK_Customer] PRIMARY KEY CLUSTERED ( [pk_customer_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO