Files
g.hnyhua.cn/user_sign_log.sql
2026-02-07 15:22:35 +08:00

23 lines
1.4 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
if exists (select * from sysobjects where id = OBJECT_ID('[user_sign_log]') and OBJECTPROPERTY(id, 'IsUserTable') = 1)
DROP TABLE [user_sign_log]
CREATE TABLE [user_sign_log] (
[id] [int] IDENTITY (1, 1) NOT NULL,
[user_id] [int] NOT NULL DEFAULT (0),
[before_point] [decimal] (18,2) NOT NULL DEFAULT (0),
[point] [decimal] (18,2) NOT NULL DEFAULT (0),
[after_point] [decimal] (18,2) NOT NULL DEFAULT (0),
[number_day] [int] NULL DEFAULT (0),
[class_id] [int] NULL DEFAULT (0),
[create_day] [varchar] (50) NULL,
[create_time] [datetime] NULL DEFAULT (getdate()),
[remark] [nvarchar] (500) NULL)
ALTER TABLE [user_sign_log] WITH NOCHECK ADD CONSTRAINT [PK_user_sign_log] PRIMARY KEY NONCLUSTERED ( [id] )
SET IDENTITY_INSERT [user_sign_log] ON
INSERT [user_sign_log] ([id],[user_id],[before_point],[point],[after_point],[number_day],[class_id],[create_day],[create_time],[remark]) VALUES ( 1,160017,1450.00,5.00,1455.00,1,1,N'2026-02-03',N'2026/2/3 14:53:13',N'用户编号160017日期2026-02-03第1天签到成功获得5兑换券更新前兑换券数量1450更新后兑换券数量1455')
INSERT [user_sign_log] ([id],[user_id],[before_point],[point],[after_point],[number_day],[class_id],[create_day],[create_time],[remark]) VALUES ( 2,160017,1000.00,5.00,1005.00,2,1,N'2026-02-06',N'2026/2/6 10:09:53',N'用户编号160017日期2026-02-06第2天签到成功获得5兑换券更新前兑换券数量1000更新后兑换券数量1005')
SET IDENTITY_INSERT [user_sign_log] OFF