123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533 |
- /*
- 注意:仅仅需要 Quartz 定时任务的场景,可选!!!
- Date: 30/04/2024 09:54:18
- */
- -- ----------------------------
- -- Table structure for QRTZ_BLOB_TRIGGERS
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_BLOB_TRIGGERS]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_BLOB_TRIGGERS]
- GO
- CREATE TABLE [dbo].[QRTZ_BLOB_TRIGGERS] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_GROUP] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [BLOB_DATA] varbinary(max) NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_BLOB_TRIGGERS] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_BLOB_TRIGGERS
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Table structure for QRTZ_CALENDARS
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_CALENDARS]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_CALENDARS]
- GO
- CREATE TABLE [dbo].[QRTZ_CALENDARS] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [CALENDAR_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [CALENDAR] varbinary(max) NOT NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_CALENDARS] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_CALENDARS
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Table structure for QRTZ_CRON_TRIGGERS
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_CRON_TRIGGERS]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_CRON_TRIGGERS]
- GO
- CREATE TABLE [dbo].[QRTZ_CRON_TRIGGERS] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_GROUP] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [CRON_EXPRESSION] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TIME_ZONE_ID] varchar(80) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_CRON_TRIGGERS] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_CRON_TRIGGERS
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Table structure for QRTZ_FIRED_TRIGGERS
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_FIRED_TRIGGERS]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_FIRED_TRIGGERS]
- GO
- CREATE TABLE [dbo].[QRTZ_FIRED_TRIGGERS] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [ENTRY_ID] varchar(95) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_GROUP] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [INSTANCE_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [FIRED_TIME] bigint NOT NULL,
- [SCHED_TIME] bigint NOT NULL,
- [PRIORITY] int NOT NULL,
- [STATE] varchar(16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [JOB_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
- [JOB_GROUP] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
- [IS_NONCONCURRENT] varchar(1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
- [REQUESTS_RECOVERY] varchar(1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_FIRED_TRIGGERS] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_FIRED_TRIGGERS
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Table structure for QRTZ_JOB_DETAILS
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_JOB_DETAILS]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_JOB_DETAILS]
- GO
- CREATE TABLE [dbo].[QRTZ_JOB_DETAILS] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [JOB_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [JOB_GROUP] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [DESCRIPTION] varchar(250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
- [JOB_CLASS_NAME] varchar(250) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [IS_DURABLE] varchar(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [IS_NONCONCURRENT] varchar(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [IS_UPDATE_DATA] varchar(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [REQUESTS_RECOVERY] varchar(1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [JOB_DATA] varbinary(max) NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_JOB_DETAILS] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_JOB_DETAILS
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Table structure for QRTZ_LOCKS
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_LOCKS]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_LOCKS]
- GO
- CREATE TABLE [dbo].[QRTZ_LOCKS] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [LOCK_NAME] varchar(40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_LOCKS] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_LOCKS
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_PAUSED_TRIGGER_GRPS]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_PAUSED_TRIGGER_GRPS]
- GO
- CREATE TABLE [dbo].[QRTZ_PAUSED_TRIGGER_GRPS] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_GROUP] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_PAUSED_TRIGGER_GRPS] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_PAUSED_TRIGGER_GRPS
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Table structure for QRTZ_SCHEDULER_STATE
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_SCHEDULER_STATE]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_SCHEDULER_STATE]
- GO
- CREATE TABLE [dbo].[QRTZ_SCHEDULER_STATE] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [INSTANCE_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [LAST_CHECKIN_TIME] bigint NOT NULL,
- [CHECKIN_INTERVAL] bigint NOT NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_SCHEDULER_STATE] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_SCHEDULER_STATE
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Table structure for QRTZ_SIMPLE_TRIGGERS
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_SIMPLE_TRIGGERS]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_SIMPLE_TRIGGERS]
- GO
- CREATE TABLE [dbo].[QRTZ_SIMPLE_TRIGGERS] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_GROUP] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [REPEAT_COUNT] bigint NOT NULL,
- [REPEAT_INTERVAL] bigint NOT NULL,
- [TIMES_TRIGGERED] bigint NOT NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_SIMPLE_TRIGGERS] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_SIMPLE_TRIGGERS
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Table structure for QRTZ_SIMPROP_TRIGGERS
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_SIMPROP_TRIGGERS]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_SIMPROP_TRIGGERS]
- GO
- CREATE TABLE [dbo].[QRTZ_SIMPROP_TRIGGERS] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_GROUP] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [STR_PROP_1] varchar(512) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
- [STR_PROP_2] varchar(512) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
- [STR_PROP_3] varchar(512) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
- [INT_PROP_1] int NULL,
- [INT_PROP_2] int NULL,
- [LONG_PROP_1] bigint NULL,
- [LONG_PROP_2] bigint NULL,
- [DEC_PROP_1] numeric(13,4) NULL,
- [DEC_PROP_2] numeric(13,4) NULL,
- [BOOL_PROP_1] varchar(1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
- [BOOL_PROP_2] varchar(1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_SIMPROP_TRIGGERS] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_SIMPROP_TRIGGERS
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Table structure for QRTZ_TRIGGERS
- -- ----------------------------
- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[QRTZ_TRIGGERS]') AND type IN ('U'))
- DROP TABLE [dbo].[QRTZ_TRIGGERS]
- GO
- CREATE TABLE [dbo].[QRTZ_TRIGGERS] (
- [SCHED_NAME] varchar(120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_GROUP] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [JOB_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [JOB_GROUP] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [DESCRIPTION] varchar(250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
- [NEXT_FIRE_TIME] bigint NULL,
- [PREV_FIRE_TIME] bigint NULL,
- [PRIORITY] int NULL,
- [TRIGGER_STATE] varchar(16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [TRIGGER_TYPE] varchar(8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
- [START_TIME] bigint NOT NULL,
- [END_TIME] bigint NULL,
- [CALENDAR_NAME] varchar(200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
- [MISFIRE_INSTR] smallint NULL,
- [JOB_DATA] varbinary(max) NULL
- )
- GO
- ALTER TABLE [dbo].[QRTZ_TRIGGERS] SET (LOCK_ESCALATION = TABLE)
- GO
- -- ----------------------------
- -- Records of QRTZ_TRIGGERS
- -- ----------------------------
- BEGIN TRANSACTION
- GO
- COMMIT
- GO
- -- ----------------------------
- -- Primary Key structure for table QRTZ_CALENDARS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_CALENDARS] ADD CONSTRAINT [PK_QRTZ_CALENDARS] PRIMARY KEY CLUSTERED ([SCHED_NAME], [CALENDAR_NAME])
- WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
- ON [PRIMARY]
- GO
- -- ----------------------------
- -- Indexes structure for table QRTZ_CRON_TRIGGERS
- -- ----------------------------
- CREATE NONCLUSTERED INDEX [IX_QRTZ_CRON_TRIGGERS_QRTZ_TRIGGERS]
- ON [dbo].[QRTZ_CRON_TRIGGERS] (
- [SCHED_NAME] ASC,
- [TRIGGER_NAME] ASC,
- [TRIGGER_GROUP] ASC
- )
- GO
- -- ----------------------------
- -- Primary Key structure for table QRTZ_CRON_TRIGGERS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_CRON_TRIGGERS] ADD CONSTRAINT [PK_QRTZ_CRON_TRIGGERS] PRIMARY KEY CLUSTERED ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP])
- WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
- ON [PRIMARY]
- GO
- -- ----------------------------
- -- Primary Key structure for table QRTZ_FIRED_TRIGGERS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_FIRED_TRIGGERS] ADD CONSTRAINT [PK_QRTZ_FIRED_TRIGGERS] PRIMARY KEY CLUSTERED ([SCHED_NAME], [ENTRY_ID])
- WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
- ON [PRIMARY]
- GO
- -- ----------------------------
- -- Primary Key structure for table QRTZ_JOB_DETAILS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_JOB_DETAILS] ADD CONSTRAINT [PK_QRTZ_JOB_DETAILS] PRIMARY KEY CLUSTERED ([SCHED_NAME], [JOB_NAME], [JOB_GROUP])
- WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
- ON [PRIMARY]
- GO
- -- ----------------------------
- -- Primary Key structure for table QRTZ_LOCKS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_LOCKS] ADD CONSTRAINT [PK_QRTZ_LOCKS] PRIMARY KEY CLUSTERED ([SCHED_NAME], [LOCK_NAME])
- WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
- ON [PRIMARY]
- GO
- -- ----------------------------
- -- Primary Key structure for table QRTZ_PAUSED_TRIGGER_GRPS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_PAUSED_TRIGGER_GRPS] ADD CONSTRAINT [PK_QRTZ_PAUSED_TRIGGER_GRPS] PRIMARY KEY CLUSTERED ([SCHED_NAME], [TRIGGER_GROUP])
- WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
- ON [PRIMARY]
- GO
- -- ----------------------------
- -- Primary Key structure for table QRTZ_SCHEDULER_STATE
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_SCHEDULER_STATE] ADD CONSTRAINT [PK_QRTZ_SCHEDULER_STATE] PRIMARY KEY CLUSTERED ([SCHED_NAME], [INSTANCE_NAME])
- WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
- ON [PRIMARY]
- GO
- -- ----------------------------
- -- Indexes structure for table QRTZ_SIMPLE_TRIGGERS
- -- ----------------------------
- CREATE NONCLUSTERED INDEX [IX_QRTZ_SIMPLE_TRIGGERS_QRTZ_TRIGGERS]
- ON [dbo].[QRTZ_SIMPLE_TRIGGERS] (
- [SCHED_NAME] ASC,
- [TRIGGER_NAME] ASC,
- [TRIGGER_GROUP] ASC
- )
- GO
- -- ----------------------------
- -- Primary Key structure for table QRTZ_SIMPLE_TRIGGERS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_SIMPLE_TRIGGERS] ADD CONSTRAINT [PK_QRTZ_SIMPLE_TRIGGERS] PRIMARY KEY CLUSTERED ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP])
- WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
- ON [PRIMARY]
- GO
- -- ----------------------------
- -- Indexes structure for table QRTZ_SIMPROP_TRIGGERS
- -- ----------------------------
- CREATE NONCLUSTERED INDEX [IX_QRTZ_SIMPROP_TRIGGERS_QRTZ_TRIGGERS]
- ON [dbo].[QRTZ_SIMPROP_TRIGGERS] (
- [SCHED_NAME] ASC,
- [TRIGGER_NAME] ASC,
- [TRIGGER_GROUP] ASC
- )
- GO
- -- ----------------------------
- -- Primary Key structure for table QRTZ_SIMPROP_TRIGGERS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_SIMPROP_TRIGGERS] ADD CONSTRAINT [PK_QRTZ_SIMPROP_TRIGGERS] PRIMARY KEY CLUSTERED ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP])
- WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
- ON [PRIMARY]
- GO
- -- ----------------------------
- -- Indexes structure for table QRTZ_TRIGGERS
- -- ----------------------------
- CREATE NONCLUSTERED INDEX [IX_QRTZ_TRIGGERS_QRTZ_JOB_DETAILS]
- ON [dbo].[QRTZ_TRIGGERS] (
- [SCHED_NAME] ASC,
- [TRIGGER_NAME] ASC,
- [TRIGGER_GROUP] ASC
- )
- GO
- -- ----------------------------
- -- Primary Key structure for table QRTZ_TRIGGERS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_TRIGGERS] ADD CONSTRAINT [PK_QRTZ_TRIGGERS] PRIMARY KEY CLUSTERED ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP])
- WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
- ON [PRIMARY]
- GO
- -- ----------------------------
- -- Foreign Keys structure for table QRTZ_BLOB_TRIGGERS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_BLOB_TRIGGERS] ADD CONSTRAINT [FK_QRTZ_BLOB_TRIGGERS_QRTZ_TRIGGERS] FOREIGN KEY ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP]) REFERENCES [dbo].[QRTZ_TRIGGERS] ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP]) ON DELETE CASCADE ON UPDATE NO ACTION
- GO
- -- ----------------------------
- -- Foreign Keys structure for table QRTZ_CRON_TRIGGERS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_CRON_TRIGGERS] ADD CONSTRAINT [FK_QRTZ_CRON_TRIGGERS_QRTZ_TRIGGERS] FOREIGN KEY ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP]) REFERENCES [dbo].[QRTZ_TRIGGERS] ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP]) ON DELETE CASCADE ON UPDATE NO ACTION
- GO
- -- ----------------------------
- -- Foreign Keys structure for table QRTZ_SIMPLE_TRIGGERS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_SIMPLE_TRIGGERS] ADD CONSTRAINT [FK_QRTZ_SIMPLE_TRIGGERS_QRTZ_TRIGGERS] FOREIGN KEY ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP]) REFERENCES [dbo].[QRTZ_TRIGGERS] ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP]) ON DELETE CASCADE ON UPDATE NO ACTION
- GO
- -- ----------------------------
- -- Foreign Keys structure for table QRTZ_SIMPROP_TRIGGERS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_SIMPROP_TRIGGERS] ADD CONSTRAINT [FK_QRTZ_SIMPROP_TRIGGERS_QRTZ_TRIGGERS] FOREIGN KEY ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP]) REFERENCES [dbo].[QRTZ_TRIGGERS] ([SCHED_NAME], [TRIGGER_NAME], [TRIGGER_GROUP]) ON DELETE CASCADE ON UPDATE NO ACTION
- GO
- -- ----------------------------
- -- Foreign Keys structure for table QRTZ_TRIGGERS
- -- ----------------------------
- ALTER TABLE [dbo].[QRTZ_TRIGGERS] ADD CONSTRAINT [FK_QRTZ_TRIGGERS_QRTZ_JOB_DETAILS] FOREIGN KEY ([SCHED_NAME], [JOB_NAME], [JOB_GROUP]) REFERENCES [dbo].[QRTZ_JOB_DETAILS] ([SCHED_NAME], [JOB_NAME], [JOB_GROUP]) ON DELETE NO ACTION ON UPDATE NO ACTION
- GO
|