Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /****** Object: Table [dbo].[as_like_items] Script Date: 02.07.2021 8:42:07 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[as_like_items](
- [id] [INT] IDENTITY(1,1) NOT NULL,
- [typeID] [INT] NULL,
- [itemID] [INT] NULL,
- [VALUE] [FLOAT] NULL,
- [modified] [datetime] NULL,
- CONSTRAINT [PK_as_like_items] 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]
- GO
- /****** Object: Table [dbo].[as_like_log] Script Date: 02.07.2021 8:42:08 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[as_like_log](
- [id] [INT] IDENTITY(1,1) NOT NULL,
- [typeID] [INT] NULL,
- [itemID] [INT] NULL,
- [created] [datetime] NULL,
- [username] [nvarchar](128) NULL,
- [VALUE] [INT] NULL,
- CONSTRAINT [PK_as_like_log] 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]
- GO
- /****** Object: Table [dbo].[as_like_types] Script Date: 02.07.2021 8:42:08 ******/
- SET ANSI_NULLS ON
- GO
- SET QUOTED_IDENTIFIER ON
- GO
- CREATE TABLE [dbo].[as_like_types](
- [id] [INT] IDENTITY(1,1) NOT NULL,
- [code] [nvarchar](32) NULL,
- [mode] [nvarchar](20) NULL,
- CONSTRAINT [PK_as_like_types] 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]
- GO
- ALTER TABLE [dbo].[as_like_items] WITH CHECK ADD CONSTRAINT [FK_as_like_items_as_like_types] FOREIGN KEY([typeID])
- REFERENCES [dbo].[as_like_types] ([id])
- GO
- ALTER TABLE [dbo].[as_like_items] CHECK CONSTRAINT [FK_as_like_items_as_like_types]
- GO
- ALTER TABLE [dbo].[as_like_log] WITH CHECK ADD CONSTRAINT [FK_as_like_log_as_like_types] FOREIGN KEY([typeID])
- REFERENCES [dbo].[as_like_types] ([id])
- GO
- ALTER TABLE [dbo].[as_like_log] CHECK CONSTRAINT [FK_as_like_log_as_like_types]
- GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement