30 lines
1.6 KiB
Transact-SQL
30 lines
1.6 KiB
Transact-SQL
USE [CPMIndiaBusinessInsight]
|
|
GO
|
|
/****** Object: Table [dbo].[Sales] Script Date: 5/18/2026 5:34:09 PM ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
CREATE TABLE [dbo].[Sales](
|
|
[Id] [bigint] IDENTITY(1,1) NOT NULL,
|
|
[Project_Id] [int] NOT NULL,
|
|
[Mid] [bigint] NULL,
|
|
[SuperVisorId] [int] NOT NULL,
|
|
[EmpID] [int] NOT NULL,
|
|
[StoreId] [int] NOT NULL,
|
|
[ChainId] [int] NOT NULL,
|
|
[ChannelId] [int] NOT NULL,
|
|
[StoreTypeId] [int] NOT NULL,
|
|
[VisitDate] [date] NOT NULL,
|
|
[ProductId] [int] NOT NULL,
|
|
[MSL] [int] NOT NULL,
|
|
[PTR] [decimal](8, 2) NOT NULL,
|
|
[MRP] [decimal](8, 2) NOT NULL,
|
|
[Sale] [int] NOT NULL,
|
|
[Value] [decimal](10, 2) NOT NULL,
|
|
[CreateDate] [datetime] NOT NULL,
|
|
[CreateBy] [varchar](50) NOT NULL,
|
|
[SalesType] [varchar](50) NULL
|
|
) ON [PRIMARY]
|
|
GO
|