CREATE TABLE [dbo].[InvLocation](
[id] [int] IDENTITY(1,1) NOT NULL,
[Name] varchar(max) ,
[Description] varchar(max) ,
CONSTRAINT [PK_InvLocation] PRIMARY KEY CLUSTERED
(
[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]
-- InvItems
CREATE TABLE [dbo].[InvItems](
[id] [int] IDENTITY(1,1) NOT NULL,
[Number] varchar(max) ,
[Name] varchar(max) ,
[Description] varchar(max) ,
CONSTRAINT [PK_InvItems] PRIMARY KEY CLUSTERED
(
[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]
-- Inventory
CREATE TABLE [dbo].[Inventory](
[id] [int] IDENTITY(1,1) NOT NULL,
[ItemId] bigint ,
[LocationId] bigint ,
[Quantity] int ,
[CreatedDate] datetime ,
[ParentId] bigint ,
[Description] varchar(max) ,
CONSTRAINT [PK_Inventory] PRIMARY KEY CLUSTERED
(
[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]
Thursday, November 15, 2012
dotnetnuke inventory system database script
Thursday, November 1, 2012
dotnetnuke inventory system database scheme
Dotnuke inventory module installs following tables.
Location
InvLocation table , contains information about locations# | Field name | Field type | Description |
1 | id | bigint | Primary key |
2 | Name | varchar(max) | - Location name |
3 | Description | varchar(max) | - contains more detailed information about Location |
Items
InvItems table - contains information about types of products# | Field name | Field type | Description |
1 | id | bigint | Primary key |
2 | Number | varchar(max) | - contains item number |
3 | Name | varchar(max) | - item name |
4 | Description | varchar(max) | - contains more detailed information about Location |
Inventory
Inventory table - contains records about product amount for specific locations# | Field name | Field type | Description |
1 | InvId | bigint | Primary key |
2 | ItemId | bigint | Item |
3 | LocationId | bigint | Location |
4 | Quantity | int | amount |
5 | CreatedDate | datetime | - record created date |
6 | ParentId | bigint | link to parent item |
7 | Description | varchar(max) | - contains more detailed information about this particular items |
Subscribe to:
Posts (Atom)