mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 00:18:17 +00:00
twitch event logs schema wip
This commit is contained in:
1 parent
838934880f
commit
07923bb34f
2 files changed
+25
-2
No files matched your search
@@ -1 +1,5 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
-- noinspection SqlDialectInspectionForFile
|
||||
-- noinspection SqlNoDataSourceInspectionForFile
|
||||
-- noinspection SqlResolveForFile
|
||||
|
||||
DROP TABLE twitch_event_match_logs;
|
||||
@@ -1 +1,20 @@
|
||||
-- Your SQL goes here
|
||||
-- noinspection SqlDialectInspectionForFile
|
||||
-- noinspection SqlNoDataSourceInspectionForFile
|
||||
-- noinspection SqlResolveForFile
|
||||
|
||||
-- Log any event matching (bits, channel points, etc.)
|
||||
CREATE TABLE twitch_event_match_logs(
|
||||
-- Not used for anything except replication.
|
||||
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
|
||||
-- Type of event, eg.
|
||||
event_type VARCHAR(32) NOT NULL,
|
||||
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
deleted_at TIMESTAMP DEFAULT NULL,
|
||||
|
||||
-- INDICES --
|
||||
PRIMARY KEY (id)
|
||||
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
||||
Reference in new issue
Block a user