forked from sannlynnhtun-coding/NCTM.POS.App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTbl_Customer.sql
27 lines (27 loc) · 936 Bytes
/
Tbl_Customer.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
USE [NCTM_POS]
GO
/****** Object: Table [dbo].[Tbl_Customer] Script Date: 04/22/2024 2:58:39 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Tbl_Customer](
[CustomerId] [int] IDENTITY(1,1) NOT NULL,
[CustomerCode] AS ('CUS'+right('000'+CONVERT([varchar](3),[CustomerId]),(3))),
[CustomerName] [varchar](50) NOT NULL,
[MobileNo] [varchar](50) NOT NULL,
[DateOfBirth] [date] NOT NULL,
[Gender] [varchar](20) NOT NULL,
[StateCode] [varchar](100) NOT NULL,
[TownShipCode] [varchar](100) NOT NULL,
CONSTRAINT [PK_Tbl_Customer] PRIMARY KEY CLUSTERED
(
[CustomerId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[Tbl_Product] Script Date: 04/22/2024 2:58:39 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO