抽奖程序表结构

CREATE TABLE [wall_prize_infos] (
    [id] [int] IDENTITY (1, 1) NOT NULL ,
    [fetion_no] [varchar] (15) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [mocontent] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [mtcontent] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [prizetype] [int] NOT NULL ,
    [isprize] [bigint] NOT NULL ,
    [lucknumber] [int] NOT NULL ,
    [created_at] [datetime] NOT NULL CONSTRAINT [DF__wall_priz__creat__3F115E1A] DEFAULT (getdate()),
    CONSTRAINT [PK_WALL_PRIZE_INFOS] PRIMARY KEY  CLUSTERED
    (
        [id]
    )  ON [PRIMARY]
) ON [PRIMARY]
GO


CREATE TABLE [wall_prize_basedatas] (
    [id] [int] IDENTITY (1, 1) NOT NULL ,
    [type] [int] NOT NULL ,
    [allcount] [int] NOT NULL ,
    [startdate] [datetime] NOT NULL ,
    [enddate] [datetime] NOT NULL ,
    [memo] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
    CONSTRAINT [PK_WALL_PRIZE_BASEDATAS] PRIMARY KEY  CLUSTERED
    (
        [id]
    )  ON [PRIMARY]
) ON [PRIMARY]
GO


CREATE TABLE [wall_set_prizies] (
    [id] [int] IDENTITY (1, 1) NOT NULL ,
    [prizetype] [int] NOT NULL ,
    [lucknumber] [int] NOT NULL ,
    [edatecount] [int] NOT NULL ,
    [prizedate] [datetime] NOT NULL ,
    [created_at] [datetime] NULL CONSTRAINT [DF__wall_set___creat__3C34F16F] DEFAULT (getdate()),
    CONSTRAINT [PK_WALL_SET_PRIZIES] PRIMARY KEY  CLUSTERED
    (
        [id]
    )  ON [PRIMARY]
) ON [PRIMARY]
GO


CREATE TABLE [wall_user_scores] (
    [id] [int] IDENTITY (1, 1) NOT NULL ,
    [fetion_no] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
    [send_score] [int] NULL CONSTRAINT [DF__wall_user__send___04E4BC85] DEFAULT (0),
    [recv_score] [int] NULL CONSTRAINT [DF__wall_user__recv___05D8E0BE] DEFAULT (0),
    CONSTRAINT [PK_WALL_USER_SCORES] PRIMARY KEY  CLUSTERED
    (
        [id]
    )  ON [PRIMARY]
) ON [PRIMARY]
GO


CREATE TABLE [wall_user_wish_relations] (
    [id] [int] IDENTITY (1, 1) NOT NULL ,
    [send_fetion] [varchar] (20) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    [recv_fetion] [varchar] (20) COLLATE Chinese_PRC_CI_AS NOT NULL ,
    CONSTRAINT [PK_WALL_USER_WISH_RELATIONS] PRIMARY KEY  CLUSTERED
    (
        [id]
    )  ON [PRIMARY]
) ON [PRIMARY]
GO

你可能感兴趣的:(Go)