diff --git a/development/creds.example.env b/development/creds.example.env index 34f27de1..fef92421 100644 --- a/development/creds.example.env +++ b/development/creds.example.env @@ -29,7 +29,7 @@ MYSQL_PASSWORD=${NAUTOBOT_DB_PASSWORD} # = Chat Platforms =================== # - Mattermost ----------------------- -MATTERMOST_API_TOKEN="5qsffxoapt883qfdygbdgf17jy" +MATTERMOST_API_TOKEN="nsutx44ibbd69r5hjjmd3hx4sw" # - Microsoft Teams ------------------ # MICROSOFT_APP_ID="changeme" diff --git a/development/mattermost/docker-compose.yml b/development/mattermost/docker-compose.yml index f1041801..db35af18 100644 --- a/development/mattermost/docker-compose.yml +++ b/development/mattermost/docker-compose.yml @@ -10,10 +10,11 @@ services: worker: <<: *nautobot mattermost: - image: "mattermost/mattermost-preview:7.8.9" + image: "mattermost/mattermost-preview:9.0.1" hostname: "mattermost" environment: MM_LOGSETTINGS_SENDCRASHREPORTS: "false" + MM_SERVICESETTINGS_ALLOWCORSFROM: "*" MM_SERVICESETTINGS_ALLOWEDUNTRUSTEDINTERNALCONNECTIONS: "0.0.0.0/0" MM_SERVICESETTINGS_ENABLEDEVELOPER: "true" MM_SERVICESETTINGS_ENABLEDIAGNOSTICS: "false" @@ -23,6 +24,6 @@ services: - "8065:8065" volumes: - "./mattermost/dump.sql:/docker-entrypoint-initdb.d/dump.sql" - - "mattermost-data:/var/lib/mysql" + - "mattermost-data:/var/lib/postgresql/data" volumes: mattermost-data: {} diff --git a/development/mattermost/dump.sql b/development/mattermost/dump.sql index f0e3cb82..f353bb8d 100644 --- a/development/mattermost/dump.sql +++ b/development/mattermost/dump.sql @@ -1,1863 +1,4130 @@ +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 12.16 (Debian 12.16-1.pgdg120+1) +-- Dumped by pg_dump version 12.16 (Debian 12.16-1.pgdg120+1) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +-- +-- Name: channel_type; Type: TYPE; Schema: public; Owner: mmuser +-- + +CREATE TYPE public.channel_type AS ENUM ( + 'P', + 'G', + 'O', + 'D' +); + + +ALTER TYPE public.channel_type OWNER TO mmuser; + +-- +-- Name: team_type; Type: TYPE; Schema: public; Owner: mmuser +-- + +CREATE TYPE public.team_type AS ENUM ( + 'I', + 'O' +); + + +ALTER TYPE public.team_type OWNER TO mmuser; + +-- +-- Name: upload_session_type; Type: TYPE; Schema: public; Owner: mmuser +-- + +CREATE TYPE public.upload_session_type AS ENUM ( + 'attachment', + 'import' +); + + +ALTER TYPE public.upload_session_type OWNER TO mmuser; + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: audits; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.audits ( + id character varying(26) NOT NULL, + createat bigint, + userid character varying(26), + action character varying(512), + extrainfo character varying(1024), + ipaddress character varying(64), + sessionid character varying(26) +); + + +ALTER TABLE public.audits OWNER TO mmuser; + +-- +-- Name: bots; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.bots ( + userid character varying(26) NOT NULL, + description character varying(1024), + ownerid character varying(190), + createat bigint, + updateat bigint, + deleteat bigint, + lasticonupdate bigint +); + + +ALTER TABLE public.bots OWNER TO mmuser; + +-- +-- Name: channelmemberhistory; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.channelmemberhistory ( + channelid character varying(26) NOT NULL, + userid character varying(26) NOT NULL, + jointime bigint NOT NULL, + leavetime bigint +); + + +ALTER TABLE public.channelmemberhistory OWNER TO mmuser; + +-- +-- Name: channelmembers; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.channelmembers ( + channelid character varying(26) NOT NULL, + userid character varying(26) NOT NULL, + roles character varying(256), + lastviewedat bigint, + msgcount bigint, + mentioncount bigint, + notifyprops jsonb, + lastupdateat bigint, + schemeuser boolean, + schemeadmin boolean, + schemeguest boolean, + mentioncountroot bigint, + msgcountroot bigint, + urgentmentioncount bigint +); + + +ALTER TABLE public.channelmembers OWNER TO mmuser; + +-- +-- Name: channels; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.channels ( + id character varying(26) NOT NULL, + createat bigint, + updateat bigint, + deleteat bigint, + teamid character varying(26), + type public.channel_type, + displayname character varying(64), + name character varying(64), + header character varying(1024), + purpose character varying(250), + lastpostat bigint, + totalmsgcount bigint, + extraupdateat bigint, + creatorid character varying(26), + schemeid character varying(26), + groupconstrained boolean, + shared boolean, + totalmsgcountroot bigint, + lastrootpostat bigint DEFAULT '0'::bigint +); + + +ALTER TABLE public.channels OWNER TO mmuser; + +-- +-- Name: clusterdiscovery; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.clusterdiscovery ( + id character varying(26) NOT NULL, + type character varying(64), + clustername character varying(64), + hostname character varying(512), + gossipport integer, + port integer, + createat bigint, + lastpingat bigint +); + + +ALTER TABLE public.clusterdiscovery OWNER TO mmuser; + +-- +-- Name: commands; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.commands ( + id character varying(26) NOT NULL, + token character varying(26), + createat bigint, + updateat bigint, + deleteat bigint, + creatorid character varying(26), + teamid character varying(26), + trigger character varying(128), + method character varying(1), + username character varying(64), + iconurl character varying(1024), + autocomplete boolean, + autocompletedesc character varying(1024), + autocompletehint character varying(1024), + displayname character varying(64), + description character varying(128), + url character varying(1024), + pluginid character varying(190) +); + + +ALTER TABLE public.commands OWNER TO mmuser; + +-- +-- Name: commandwebhooks; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.commandwebhooks ( + id character varying(26) NOT NULL, + createat bigint, + commandid character varying(26), + userid character varying(26), + channelid character varying(26), + rootid character varying(26), + usecount integer +); + + +ALTER TABLE public.commandwebhooks OWNER TO mmuser; + +-- +-- Name: compliances; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.compliances ( + id character varying(26) NOT NULL, + createat bigint, + userid character varying(26), + status character varying(64), + count integer, + "desc" character varying(512), + type character varying(64), + startat bigint, + endat bigint, + keywords character varying(512), + emails character varying(1024) +); + + +ALTER TABLE public.compliances OWNER TO mmuser; + +-- +-- Name: db_lock; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.db_lock ( + id character varying(64) NOT NULL, + expireat bigint +); + + +ALTER TABLE public.db_lock OWNER TO mmuser; + +-- +-- Name: db_migrations; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.db_migrations ( + version bigint NOT NULL, + name character varying NOT NULL +); + + +ALTER TABLE public.db_migrations OWNER TO mmuser; + +-- +-- Name: drafts; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.drafts ( + createat bigint, + updateat bigint, + deleteat bigint, + userid character varying(26) NOT NULL, + channelid character varying(26) NOT NULL, + rootid character varying(26) DEFAULT ''::character varying NOT NULL, + message character varying(65535), + props character varying(8000), + fileids character varying(300), + priority text +); + + +ALTER TABLE public.drafts OWNER TO mmuser; + +-- +-- Name: emoji; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.emoji ( + id character varying(26) NOT NULL, + createat bigint, + updateat bigint, + deleteat bigint, + creatorid character varying(26), + name character varying(64) +); + + +ALTER TABLE public.emoji OWNER TO mmuser; + +-- +-- Name: fileinfo; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.fileinfo ( + id character varying(26) NOT NULL, + creatorid character varying(26), + postid character varying(26), + createat bigint, + updateat bigint, + deleteat bigint, + path character varying(512), + thumbnailpath character varying(512), + previewpath character varying(512), + name character varying(256), + extension character varying(64), + size bigint, + mimetype character varying(256), + width integer, + height integer, + haspreviewimage boolean, + minipreview bytea, + content text, + remoteid character varying(26), + archived boolean DEFAULT false NOT NULL, + channelid character varying(26) +) +WITH (autovacuum_vacuum_scale_factor='0.1', autovacuum_analyze_scale_factor='0.05'); + + +ALTER TABLE public.fileinfo OWNER TO mmuser; + +-- +-- Name: groupchannels; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.groupchannels ( + groupid character varying(26) NOT NULL, + autoadd boolean, + schemeadmin boolean, + createat bigint, + deleteat bigint, + updateat bigint, + channelid character varying(26) NOT NULL +); + + +ALTER TABLE public.groupchannels OWNER TO mmuser; + +-- +-- Name: groupmembers; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.groupmembers ( + groupid character varying(26) NOT NULL, + userid character varying(26) NOT NULL, + createat bigint, + deleteat bigint +); + + +ALTER TABLE public.groupmembers OWNER TO mmuser; + +-- +-- Name: groupteams; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.groupteams ( + groupid character varying(26) NOT NULL, + autoadd boolean, + schemeadmin boolean, + createat bigint, + deleteat bigint, + updateat bigint, + teamid character varying(26) NOT NULL +); + + +ALTER TABLE public.groupteams OWNER TO mmuser; + +-- +-- Name: incomingwebhooks; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.incomingwebhooks ( + id character varying(26) NOT NULL, + createat bigint, + updateat bigint, + deleteat bigint, + userid character varying(26), + channelid character varying(26), + teamid character varying(26), + displayname character varying(64), + description character varying(500), + username character varying(255), + iconurl character varying(1024), + channellocked boolean +); + + +ALTER TABLE public.incomingwebhooks OWNER TO mmuser; + +-- +-- Name: ir_category; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_category ( + id character varying(26) NOT NULL, + name character varying(512) NOT NULL, + teamid character varying(26) NOT NULL, + userid character varying(26) NOT NULL, + collapsed boolean DEFAULT false, + createat bigint NOT NULL, + updateat bigint DEFAULT 0 NOT NULL, + deleteat bigint DEFAULT 0 NOT NULL +); + + +ALTER TABLE public.ir_category OWNER TO mmuser; + +-- +-- Name: ir_category_item; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_category_item ( + type character varying(1) NOT NULL, + categoryid character varying(26) NOT NULL, + itemid character varying(26) NOT NULL +); + + +ALTER TABLE public.ir_category_item OWNER TO mmuser; + +-- +-- Name: ir_channelaction; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_channelaction ( + id character varying(26) NOT NULL, + channelid character varying(26), + enabled boolean DEFAULT false, + deleteat bigint DEFAULT 0 NOT NULL, + actiontype character varying(65535) NOT NULL, + triggertype character varying(65535) NOT NULL, + payload json NOT NULL +); + + +ALTER TABLE public.ir_channelaction OWNER TO mmuser; + +-- +-- Name: ir_incident; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_incident ( + id character varying(26) NOT NULL, + name character varying(1024) NOT NULL, + description character varying(4096) NOT NULL, + isactive boolean NOT NULL, + commanderuserid character varying(26) NOT NULL, + teamid character varying(26) NOT NULL, + channelid character varying(26) NOT NULL, + createat bigint NOT NULL, + endat bigint DEFAULT 0 NOT NULL, + deleteat bigint DEFAULT 0 NOT NULL, + activestage bigint NOT NULL, + postid character varying(26) DEFAULT ''::text NOT NULL, + playbookid character varying(26) DEFAULT ''::text NOT NULL, + checklistsjson json NOT NULL, + activestagetitle character varying(1024) DEFAULT ''::text, + reminderpostid character varying(26), + broadcastchannelid character varying(26) DEFAULT ''::text, + previousreminder bigint DEFAULT 0 NOT NULL, + remindermessagetemplate character varying(65535) DEFAULT ''::text, + currentstatus character varying(1024) DEFAULT 'Active'::text NOT NULL, + reporteruserid character varying(26) DEFAULT ''::text NOT NULL, + concatenatedinviteduserids character varying(65535) DEFAULT ''::text, + defaultcommanderid character varying(26) DEFAULT ''::text, + announcementchannelid character varying(26) DEFAULT ''::text, + concatenatedwebhookoncreationurls character varying(65535) DEFAULT ''::text, + concatenatedinvitedgroupids character varying(65535) DEFAULT ''::text, + retrospective character varying(65535) DEFAULT ''::text, + messageonjoin character varying(65535) DEFAULT ''::text, + retrospectivepublishedat bigint DEFAULT 0 NOT NULL, + retrospectivereminderintervalseconds bigint DEFAULT 0 NOT NULL, + retrospectivewascanceled boolean DEFAULT false, + concatenatedwebhookonstatusupdateurls character varying(65535) DEFAULT ''::text, + laststatusupdateat bigint DEFAULT 0, + exportchannelonfinishedenabled boolean DEFAULT false NOT NULL, + categorizechannelenabled boolean DEFAULT false, + categoryname character varying(65535) DEFAULT ''::text, + concatenatedbroadcastchannelids character varying(65535), + channelidtorootid character varying(65535) DEFAULT ''::text, + remindertimerdefaultseconds bigint DEFAULT 0 NOT NULL, + statusupdateenabled boolean DEFAULT true, + retrospectiveenabled boolean DEFAULT true, + statusupdatebroadcastchannelsenabled boolean DEFAULT false, + statusupdatebroadcastwebhooksenabled boolean DEFAULT false, + summarymodifiedat bigint DEFAULT 0 NOT NULL, + createchannelmemberonnewparticipant boolean DEFAULT true, + removechannelmemberonremovedparticipant boolean DEFAULT true, + runtype character varying(32) DEFAULT 'playbook'::character varying +); + + +ALTER TABLE public.ir_incident OWNER TO mmuser; + +-- +-- Name: ir_metric; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_metric ( + incidentid character varying(26) NOT NULL, + metricconfigid character varying(26) NOT NULL, + value bigint, + published boolean NOT NULL +); + + +ALTER TABLE public.ir_metric OWNER TO mmuser; + +-- +-- Name: ir_metricconfig; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_metricconfig ( + id character varying(26) NOT NULL, + playbookid character varying(26) NOT NULL, + title character varying(512) NOT NULL, + description character varying(4096) NOT NULL, + type character varying(32) NOT NULL, + target bigint, + ordering smallint DEFAULT 0 NOT NULL, + deleteat bigint DEFAULT 0 NOT NULL +); + + +ALTER TABLE public.ir_metricconfig OWNER TO mmuser; + +-- +-- Name: ir_playbook; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_playbook ( + id character varying(26) NOT NULL, + title character varying(1024) NOT NULL, + description character varying(4096) NOT NULL, + teamid character varying(26) NOT NULL, + createpublicincident boolean NOT NULL, + createat bigint NOT NULL, + deleteat bigint DEFAULT 0 NOT NULL, + checklistsjson json NOT NULL, + numstages bigint DEFAULT 0 NOT NULL, + numsteps bigint DEFAULT 0 NOT NULL, + broadcastchannelid character varying(26) DEFAULT ''::text, + remindermessagetemplate character varying(65535) DEFAULT ''::text, + remindertimerdefaultseconds bigint DEFAULT 0 NOT NULL, + concatenatedinviteduserids character varying(65535) DEFAULT ''::text, + inviteusersenabled boolean DEFAULT false, + defaultcommanderid character varying(26) DEFAULT ''::text, + defaultcommanderenabled boolean DEFAULT false, + announcementchannelid character varying(26) DEFAULT ''::text, + announcementchannelenabled boolean DEFAULT false, + concatenatedwebhookoncreationurls character varying(65535) DEFAULT ''::text, + webhookoncreationenabled boolean DEFAULT false, + concatenatedinvitedgroupids character varying(65535) DEFAULT ''::text, + messageonjoin character varying(65535) DEFAULT ''::text, + messageonjoinenabled boolean DEFAULT false, + retrospectivereminderintervalseconds bigint DEFAULT 0 NOT NULL, + retrospectivetemplate character varying(65535), + concatenatedwebhookonstatusupdateurls character varying(65535) DEFAULT ''::text, + webhookonstatusupdateenabled boolean DEFAULT false, + concatenatedsignalanykeywords character varying(65535) DEFAULT ''::text, + signalanykeywordsenabled boolean DEFAULT false, + updateat bigint DEFAULT 0 NOT NULL, + exportchannelonfinishedenabled boolean DEFAULT false NOT NULL, + categorizechannelenabled boolean DEFAULT false, + categoryname character varying(65535) DEFAULT ''::text, + concatenatedbroadcastchannelids character varying(65535), + broadcastenabled boolean DEFAULT false, + runsummarytemplate character varying(65535) DEFAULT ''::text, + channelnametemplate character varying(65535) DEFAULT ''::text, + statusupdateenabled boolean DEFAULT true, + retrospectiveenabled boolean DEFAULT true, + public boolean DEFAULT false, + runsummarytemplateenabled boolean DEFAULT true, + createchannelmemberonnewparticipant boolean DEFAULT true, + removechannelmemberonremovedparticipant boolean DEFAULT true, + channelid character varying(26) DEFAULT ''::character varying, + channelmode character varying(32) DEFAULT 'create_new_channel'::character varying +); + + +ALTER TABLE public.ir_playbook OWNER TO mmuser; + +-- +-- Name: ir_playbookautofollow; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_playbookautofollow ( + playbookid character varying(26) NOT NULL, + userid character varying(26) NOT NULL +); + + +ALTER TABLE public.ir_playbookautofollow OWNER TO mmuser; + +-- +-- Name: ir_playbookmember; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_playbookmember ( + playbookid character varying(26) NOT NULL, + memberid character varying(26) NOT NULL, + roles character varying(65535) +); + + +ALTER TABLE public.ir_playbookmember OWNER TO mmuser; + +-- +-- Name: ir_run_participants; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_run_participants ( + userid character varying(26) NOT NULL, + incidentid character varying(26) NOT NULL, + isfollower boolean DEFAULT false NOT NULL, + isparticipant boolean DEFAULT false +); + + +ALTER TABLE public.ir_run_participants OWNER TO mmuser; + +-- +-- Name: ir_statusposts; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_statusposts ( + incidentid character varying(26) NOT NULL, + postid character varying(26) NOT NULL +); + + +ALTER TABLE public.ir_statusposts OWNER TO mmuser; + +-- +-- Name: ir_system; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_system ( + skey character varying(64) NOT NULL, + svalue character varying(1024) +); + + +ALTER TABLE public.ir_system OWNER TO mmuser; + +-- +-- Name: ir_timelineevent; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_timelineevent ( + id character varying(26) NOT NULL, + incidentid character varying(26) NOT NULL, + createat bigint NOT NULL, + deleteat bigint DEFAULT 0 NOT NULL, + eventat bigint NOT NULL, + eventtype character varying(32) DEFAULT ''::text NOT NULL, + summary character varying(256) DEFAULT ''::text NOT NULL, + details character varying(4096) DEFAULT ''::text NOT NULL, + postid character varying(26) DEFAULT ''::text NOT NULL, + subjectuserid character varying(26) DEFAULT ''::text NOT NULL, + creatoruserid character varying(26) DEFAULT ''::text NOT NULL +); + + +ALTER TABLE public.ir_timelineevent OWNER TO mmuser; + +-- +-- Name: ir_userinfo; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_userinfo ( + id character varying(26) NOT NULL, + lastdailytododmat bigint, + digestnotificationsettingsjson json +); + + +ALTER TABLE public.ir_userinfo OWNER TO mmuser; + +-- +-- Name: ir_viewedchannel; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.ir_viewedchannel ( + channelid character varying(26) NOT NULL, + userid character varying(26) NOT NULL +); + + +ALTER TABLE public.ir_viewedchannel OWNER TO mmuser; + +-- +-- Name: jobs; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.jobs ( + id character varying(26) NOT NULL, + type character varying(32), + priority bigint, + createat bigint, + startat bigint, + lastactivityat bigint, + status character varying(32), + progress bigint, + data jsonb +); + + +ALTER TABLE public.jobs OWNER TO mmuser; + +-- +-- Name: licenses; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.licenses ( + id character varying(26) NOT NULL, + createat bigint, + bytes character varying(10000) +); + + +ALTER TABLE public.licenses OWNER TO mmuser; + +-- +-- Name: linkmetadata; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.linkmetadata ( + hash bigint NOT NULL, + url character varying(2048), + "timestamp" bigint, + type character varying(16), + data jsonb +); + + +ALTER TABLE public.linkmetadata OWNER TO mmuser; + +-- +-- Name: notifyadmin; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.notifyadmin ( + userid character varying(26) NOT NULL, + createat bigint, + requiredplan character varying(100) NOT NULL, + requiredfeature character varying(255) NOT NULL, + trial boolean NOT NULL, + sentat bigint +); + + +ALTER TABLE public.notifyadmin OWNER TO mmuser; + +-- +-- Name: oauthaccessdata; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.oauthaccessdata ( + token character varying(26) NOT NULL, + refreshtoken character varying(26), + redirecturi character varying(256), + clientid character varying(26), + userid character varying(26), + expiresat bigint, + scope character varying(128) +); + + +ALTER TABLE public.oauthaccessdata OWNER TO mmuser; + +-- +-- Name: oauthapps; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.oauthapps ( + id character varying(26) NOT NULL, + creatorid character varying(26), + createat bigint, + updateat bigint, + clientsecret character varying(128), + name character varying(64), + description character varying(512), + callbackurls character varying(1024), + homepage character varying(256), + istrusted boolean, + iconurl character varying(512), + mattermostappid character varying(32) DEFAULT ''::character varying NOT NULL +); + + +ALTER TABLE public.oauthapps OWNER TO mmuser; + +-- +-- Name: oauthauthdata; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.oauthauthdata ( + clientid character varying(26), + userid character varying(26), + code character varying(128) NOT NULL, + expiresin integer, + createat bigint, + redirecturi character varying(256), + state character varying(1024), + scope character varying(128) +); + + +ALTER TABLE public.oauthauthdata OWNER TO mmuser; + +-- +-- Name: outgoingwebhooks; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.outgoingwebhooks ( + id character varying(26) NOT NULL, + token character varying(26), + createat bigint, + updateat bigint, + deleteat bigint, + creatorid character varying(26), + channelid character varying(26), + teamid character varying(26), + triggerwords character varying(1024), + callbackurls character varying(1024), + displayname character varying(64), + contenttype character varying(128), + triggerwhen integer, + username character varying(64), + iconurl character varying(1024), + description character varying(500) +); + + +ALTER TABLE public.outgoingwebhooks OWNER TO mmuser; + +-- +-- Name: persistentnotifications; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.persistentnotifications ( + postid character varying(26) NOT NULL, + createat bigint, + lastsentat bigint, + deleteat bigint, + sentcount smallint +); + + +ALTER TABLE public.persistentnotifications OWNER TO mmuser; + +-- +-- Name: pluginkeyvaluestore; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.pluginkeyvaluestore ( + pluginid character varying(190) NOT NULL, + pkey character varying(150) NOT NULL, + pvalue bytea, + expireat bigint +); + + +ALTER TABLE public.pluginkeyvaluestore OWNER TO mmuser; + +-- +-- Name: postacknowledgements; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.postacknowledgements ( + postid character varying(26) NOT NULL, + userid character varying(26) NOT NULL, + acknowledgedat bigint +); + + +ALTER TABLE public.postacknowledgements OWNER TO mmuser; + +-- +-- Name: postreminders; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.postreminders ( + postid character varying(26) NOT NULL, + userid character varying(26) NOT NULL, + targettime bigint +); + + +ALTER TABLE public.postreminders OWNER TO mmuser; + +-- +-- Name: posts; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.posts ( + id character varying(26) NOT NULL, + createat bigint, + updateat bigint, + deleteat bigint, + userid character varying(26), + channelid character varying(26), + rootid character varying(26), + originalid character varying(26), + message character varying(65535), + type character varying(26), + props jsonb, + hashtags character varying(1000), + filenames character varying(4000), + fileids character varying(300), + hasreactions boolean, + editat bigint, + ispinned boolean, + remoteid character varying(26) +) +WITH (autovacuum_vacuum_scale_factor='0.1', autovacuum_analyze_scale_factor='0.05'); + + +ALTER TABLE public.posts OWNER TO mmuser; + +-- +-- Name: postspriority; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.postspriority ( + postid character varying(26) NOT NULL, + channelid character varying(26) NOT NULL, + priority character varying(32) NOT NULL, + requestedack boolean, + persistentnotifications boolean +); + + +ALTER TABLE public.postspriority OWNER TO mmuser; + +-- +-- Name: preferences; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.preferences ( + userid character varying(26) NOT NULL, + category character varying(32) NOT NULL, + name character varying(32) NOT NULL, + value character varying(2000) +) +WITH (autovacuum_vacuum_scale_factor='0.1', autovacuum_analyze_scale_factor='0.05'); + + +ALTER TABLE public.preferences OWNER TO mmuser; + +-- +-- Name: productnoticeviewstate; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.productnoticeviewstate ( + userid character varying(26) NOT NULL, + noticeid character varying(26) NOT NULL, + viewed integer, + "timestamp" bigint +); + + +ALTER TABLE public.productnoticeviewstate OWNER TO mmuser; + +-- +-- Name: publicchannels; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.publicchannels ( + id character varying(26) NOT NULL, + deleteat bigint, + teamid character varying(26), + displayname character varying(64), + name character varying(64), + header character varying(1024), + purpose character varying(250) +); + + +ALTER TABLE public.publicchannels OWNER TO mmuser; + +-- +-- Name: reactions; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.reactions ( + userid character varying(26) NOT NULL, + postid character varying(26) NOT NULL, + emojiname character varying(64) NOT NULL, + createat bigint, + updateat bigint, + deleteat bigint, + remoteid character varying(26), + channelid character varying(26) DEFAULT ''::character varying NOT NULL +); + + +ALTER TABLE public.reactions OWNER TO mmuser; + +-- +-- Name: recentsearches; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.recentsearches ( + userid character(26) NOT NULL, + searchpointer integer NOT NULL, + query jsonb, + createat bigint NOT NULL +); + + +ALTER TABLE public.recentsearches OWNER TO mmuser; + +-- +-- Name: remoteclusters; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.remoteclusters ( + remoteid character varying(26) NOT NULL, + remoteteamid character varying(26), + name character varying(64) NOT NULL, + displayname character varying(64), + siteurl character varying(512), + createat bigint, + lastpingat bigint, + token character varying(26), + remotetoken character varying(26), + topics character varying(512), + creatorid character varying(26) +); + + +ALTER TABLE public.remoteclusters OWNER TO mmuser; + +-- +-- Name: retentionpolicies; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.retentionpolicies ( + id character varying(26) NOT NULL, + displayname character varying(64), + postduration bigint +); + + +ALTER TABLE public.retentionpolicies OWNER TO mmuser; + +-- +-- Name: retentionpolicieschannels; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.retentionpolicieschannels ( + policyid character varying(26), + channelid character varying(26) NOT NULL +); + + +ALTER TABLE public.retentionpolicieschannels OWNER TO mmuser; + +-- +-- Name: retentionpoliciesteams; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.retentionpoliciesteams ( + policyid character varying(26), + teamid character varying(26) NOT NULL +); + + +ALTER TABLE public.retentionpoliciesteams OWNER TO mmuser; + +-- +-- Name: roles; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.roles ( + id character varying(26) NOT NULL, + name character varying(64), + displayname character varying(128), + description character varying(1024), + createat bigint, + updateat bigint, + deleteat bigint, + permissions text, + schememanaged boolean, + builtin boolean +); + + +ALTER TABLE public.roles OWNER TO mmuser; + +-- +-- Name: schemes; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.schemes ( + id character varying(26) NOT NULL, + name character varying(64), + displayname character varying(128), + description character varying(1024), + createat bigint, + updateat bigint, + deleteat bigint, + scope character varying(32), + defaultteamadminrole character varying(64), + defaultteamuserrole character varying(64), + defaultchanneladminrole character varying(64), + defaultchanneluserrole character varying(64), + defaultteamguestrole character varying(64), + defaultchannelguestrole character varying(64), + defaultplaybookadminrole character varying(64) DEFAULT ''::character varying, + defaultplaybookmemberrole character varying(64) DEFAULT ''::character varying, + defaultrunadminrole character varying(64) DEFAULT ''::character varying, + defaultrunmemberrole character varying(64) DEFAULT ''::character varying +); + + +ALTER TABLE public.schemes OWNER TO mmuser; + +-- +-- Name: sessions; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.sessions ( + id character varying(26) NOT NULL, + token character varying(26), + createat bigint, + expiresat bigint, + lastactivityat bigint, + userid character varying(26), + deviceid character varying(512), + roles character varying(256), + isoauth boolean, + props jsonb, + expirednotify boolean +); + + +ALTER TABLE public.sessions OWNER TO mmuser; + +-- +-- Name: sharedchannelattachments; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.sharedchannelattachments ( + id character varying(26) NOT NULL, + fileid character varying(26), + remoteid character varying(26), + createat bigint, + lastsyncat bigint +); + + +ALTER TABLE public.sharedchannelattachments OWNER TO mmuser; + +-- +-- Name: sharedchannelremotes; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.sharedchannelremotes ( + id character varying(26) NOT NULL, + channelid character varying(26) NOT NULL, + creatorid character varying(26), + createat bigint, + updateat bigint, + isinviteaccepted boolean, + isinviteconfirmed boolean, + remoteid character varying(26), + lastpostupdateat bigint, + lastpostid character varying(26) +); + + +ALTER TABLE public.sharedchannelremotes OWNER TO mmuser; + +-- +-- Name: sharedchannels; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.sharedchannels ( + channelid character varying(26) NOT NULL, + teamid character varying(26), + home boolean, + readonly boolean, + sharename character varying(64), + sharedisplayname character varying(64), + sharepurpose character varying(250), + shareheader character varying(1024), + creatorid character varying(26), + createat bigint, + updateat bigint, + remoteid character varying(26) +); + + +ALTER TABLE public.sharedchannels OWNER TO mmuser; + +-- +-- Name: sharedchannelusers; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.sharedchannelusers ( + id character varying(26) NOT NULL, + userid character varying(26), + remoteid character varying(26), + createat bigint, + lastsyncat bigint, + channelid character varying(26) +); + + +ALTER TABLE public.sharedchannelusers OWNER TO mmuser; + +-- +-- Name: sidebarcategories; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.sidebarcategories ( + id character varying(128) NOT NULL, + userid character varying(26), + teamid character varying(26), + sortorder bigint, + sorting character varying(64), + type character varying(64), + displayname character varying(64), + muted boolean, + collapsed boolean +); + + +ALTER TABLE public.sidebarcategories OWNER TO mmuser; + +-- +-- Name: sidebarchannels; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.sidebarchannels ( + channelid character varying(26) NOT NULL, + userid character varying(26) NOT NULL, + categoryid character varying(128) NOT NULL, + sortorder bigint +); + + +ALTER TABLE public.sidebarchannels OWNER TO mmuser; + +-- +-- Name: status; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.status ( + userid character varying(26) NOT NULL, + status character varying(32), + manual boolean, + lastactivityat bigint, + dndendtime bigint, + prevstatus character varying(32) +); + + +ALTER TABLE public.status OWNER TO mmuser; + +-- +-- Name: systems; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.systems ( + name character varying(64) NOT NULL, + value character varying(1024) +); + + +ALTER TABLE public.systems OWNER TO mmuser; + +-- +-- Name: teammembers; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.teammembers ( + teamid character varying(26) NOT NULL, + userid character varying(26) NOT NULL, + roles character varying(256), + deleteat bigint, + schemeuser boolean, + schemeadmin boolean, + schemeguest boolean, + createat bigint DEFAULT 0 +); + + +ALTER TABLE public.teammembers OWNER TO mmuser; + +-- +-- Name: teams; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.teams ( + id character varying(26) NOT NULL, + createat bigint, + updateat bigint, + deleteat bigint, + displayname character varying(64), + name character varying(64), + description character varying(255), + email character varying(128), + type public.team_type, + companyname character varying(64), + alloweddomains character varying(1000), + inviteid character varying(32), + schemeid character varying(26), + allowopeninvite boolean, + lastteamiconupdate bigint, + groupconstrained boolean, + cloudlimitsarchived boolean DEFAULT false NOT NULL +); + + +ALTER TABLE public.teams OWNER TO mmuser; + +-- +-- Name: termsofservice; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.termsofservice ( + id character varying(26) NOT NULL, + createat bigint, + userid character varying(26), + text character varying(65535) +); + + +ALTER TABLE public.termsofservice OWNER TO mmuser; + +-- +-- Name: threadmemberships; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.threadmemberships ( + postid character varying(26) NOT NULL, + userid character varying(26) NOT NULL, + following boolean, + lastviewed bigint, + lastupdated bigint, + unreadmentions bigint +) +WITH (autovacuum_vacuum_scale_factor='0.1', autovacuum_analyze_scale_factor='0.05'); + + +ALTER TABLE public.threadmemberships OWNER TO mmuser; + +-- +-- Name: threads; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.threads ( + postid character varying(26) NOT NULL, + replycount bigint, + lastreplyat bigint, + participants jsonb, + channelid character varying(26), + threaddeleteat bigint, + threadteamid character varying(26) +); + + +ALTER TABLE public.threads OWNER TO mmuser; + +-- +-- Name: tokens; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.tokens ( + token character varying(64) NOT NULL, + createat bigint, + type character varying(64), + extra character varying(2048) +); + + +ALTER TABLE public.tokens OWNER TO mmuser; + +-- +-- Name: trueupreviewhistory; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.trueupreviewhistory ( + duedate bigint NOT NULL, + completed boolean +); + + +ALTER TABLE public.trueupreviewhistory OWNER TO mmuser; + +-- +-- Name: uploadsessions; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.uploadsessions ( + id character varying(26) NOT NULL, + type public.upload_session_type, + createat bigint, + userid character varying(26), + channelid character varying(26), + filename character varying(256), + path character varying(512), + filesize bigint, + fileoffset bigint, + remoteid character varying(26), + reqfileid character varying(26) +); + + +ALTER TABLE public.uploadsessions OWNER TO mmuser; + +-- +-- Name: useraccesstokens; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.useraccesstokens ( + id character varying(26) NOT NULL, + token character varying(26), + userid character varying(26), + description character varying(512), + isactive boolean +); + + +ALTER TABLE public.useraccesstokens OWNER TO mmuser; + +-- +-- Name: usergroups; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.usergroups ( + id character varying(26) NOT NULL, + name character varying(64), + displayname character varying(128), + description character varying(1024), + source character varying(64), + remoteid character varying(48), + createat bigint, + updateat bigint, + deleteat bigint, + allowreference boolean +); + + +ALTER TABLE public.usergroups OWNER TO mmuser; + +-- +-- Name: users; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.users ( + id character varying(26) NOT NULL, + createat bigint, + updateat bigint, + deleteat bigint, + username character varying(64), + password character varying(128), + authdata character varying(128), + authservice character varying(32), + email character varying(128), + emailverified boolean, + nickname character varying(64), + firstname character varying(64), + lastname character varying(64), + roles character varying(256), + allowmarketing boolean, + props jsonb, + notifyprops jsonb, + lastpasswordupdate bigint, + lastpictureupdate bigint, + failedattempts integer, + locale character varying(5), + mfaactive boolean, + mfasecret character varying(128), + "position" character varying(128), + timezone jsonb, + remoteid character varying(26) +); + + +ALTER TABLE public.users OWNER TO mmuser; + +-- +-- Name: usertermsofservice; Type: TABLE; Schema: public; Owner: mmuser +-- + +CREATE TABLE public.usertermsofservice ( + userid character varying(26) NOT NULL, + termsofserviceid character varying(26), + createat bigint +); + + +ALTER TABLE public.usertermsofservice OWNER TO mmuser; + +-- +-- Data for Name: audits; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.audits VALUES ('dkj3tzm46inzubfgf8tcdp7pgw', 1698320750982, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/users/login', 'attempt - login_id=', '10.166.35.2', ''); +INSERT INTO public.audits VALUES ('xtxom8758j8mxxdhrtcycp1tyo', 1698320751056, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/users/login', 'authenticated', '10.166.35.2', ''); +INSERT INTO public.audits VALUES ('1u86rwj3ybbpfxmyxunew5iiyo', 1698320751070, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/users/login', 'success session_user=5md7bsji6pbijpxitu8bwezaqy', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('epra3qoyoifddyceqttxptsq4c', 1698320751647, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/system/onboarding/complete', 'attempt', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('ipozu9wift8fbms4rb9ix7kenw', 1698320870617, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/config', 'updateConfig', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('8fp9etosrfdfxy6z178qwzw4wy', 1698321187446, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/config', 'updateConfig', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('yb5cthepg7gd7xe6y1es4q3i8o', 1698321288420, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/users/w7uyhzuo7fnfueen6og9cxmn9h/image', '', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('jbu85hiszig9xxmz6r3omg4nwy', 1698321288523, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/users/w7uyhzuo7fnfueen6og9cxmn9h/tokens', '', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('pyhkh6us4tf8ic1qrcfm3n894a', 1698321288537, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/users/w7uyhzuo7fnfueen6og9cxmn9h/tokens', 'success - token_id=7xnejgyhj7nxtmq6t95iah7n7c', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('cu16juhnu7b4fn8owx5nxfhfsy', 1698321288591, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/users/w7uyhzuo7fnfueen6og9cxmn9h/roles', 'user=w7uyhzuo7fnfueen6og9cxmn9h roles=system_user system_admin', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('ox8eh5qg3b8didjy49qxt3e4zw', 1698321530586, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'attempt', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('e8mxhfjtnjyh3eksti7mmujsmo', 1698321530615, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'success', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('zekyg5c5bfgqbx4kzfdh8syrba', 1698322016025, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'attempt', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('ku9ztthjwtdw8fh1apbd8m7bwc', 1698322016048, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'success', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('xujye8uua78q9rzccctgu8hpsa', 1698322240876, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'attempt', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('5beieks3zbf83xehax7g5jqfuh', 1698322240899, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'success', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('j1pfzdoo5tffmfwey58nfoijuy', 1698322317970, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'attempt', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('jp4ubo31ebydjbx6rq9scoh5br', 1698322317993, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'success', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('fugumx1egbdz5psurrtzwd4pdr', 1698322371244, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'attempt', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('k9w475y7qjdkpksbp8yqjbuirc', 1698322371257, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'success', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('hoq9u8pfotfg3mm9kwmm7j85hr', 1698322417402, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'attempt', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('jzd5mhtq8briiqgy98mr11k6xe', 1698322417424, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'success', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('xwd9hbd5hby88fic55cgwkx3mo', 1698322479254, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'attempt', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('kjjukwgn4pffufedkzd5toeacw', 1698322479277, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'success', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('r9kxec153td49bpghdq3nme61h', 1698322532935, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'attempt', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('7zx6716r4fnutmhfqt49jehmoc', 1698322532958, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'success', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('n9iyafdkfpbhmxmmif9zfafjmh', 1698322585562, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'attempt', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); +INSERT INTO public.audits VALUES ('88uom3gn4bbgigihxcyzxt1wch', 1698322585586, '5md7bsji6pbijpxitu8bwezaqy', '/api/v4/commands', 'success', '10.166.35.2', 'xprkr99nfirmb8j4pdfzqhhtar'); + + +-- +-- Data for Name: bots; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.bots VALUES ('jmcgoiar5brr9nx8s7g3394c8e', 'Feedbackbot collects user feedback to improve Mattermost. [Learn more](https://mattermost.com/pl/default-nps).', 'com.mattermost.nps', 1698320582722, 1698320582722, 0, 0); +INSERT INTO public.bots VALUES ('mt3fq81mrbbydrefss1h9zfxhw', 'Playbooks bot.', 'playbooks', 1698320583270, 1698320583270, 0, 0); +INSERT INTO public.bots VALUES ('qicfanjtzbgsf8qh8zkosdq96e', 'Calls Bot', 'com.mattermost.calls', 1698320583530, 1698320583530, 0, 0); +INSERT INTO public.bots VALUES ('dnyqmp4u5tgetr9or6in55xobr', '', '5md7bsji6pbijpxitu8bwezaqy', 1698321000016, 1698321000016, 0, 0); +INSERT INTO public.bots VALUES ('w7uyhzuo7fnfueen6og9cxmn9h', 'Nautobot Mattermost Bot', '5md7bsji6pbijpxitu8bwezaqy', 1698321288290, 1698321288290, 0, 0); + + +-- +-- Data for Name: channelmemberhistory; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.channelmemberhistory VALUES ('wjcp9j9mjfbe3f8t3mp5544y1w', '5md7bsji6pbijpxitu8bwezaqy', 1698320784767, NULL); +INSERT INTO public.channelmemberhistory VALUES ('g44m7cnnkjn6tbqsica1ste4jw', '5md7bsji6pbijpxitu8bwezaqy', 1698320784798, NULL); +INSERT INTO public.channelmemberhistory VALUES ('686m6w41q3bidjcxrsuymudgba', 'w7uyhzuo7fnfueen6og9cxmn9h', 1698321288312, NULL); +INSERT INTO public.channelmemberhistory VALUES ('686m6w41q3bidjcxrsuymudgba', '5md7bsji6pbijpxitu8bwezaqy', 1698321288318, NULL); +INSERT INTO public.channelmemberhistory VALUES ('wjcp9j9mjfbe3f8t3mp5544y1w', 'w7uyhzuo7fnfueen6og9cxmn9h', 1698321691905, NULL); +INSERT INTO public.channelmemberhistory VALUES ('g44m7cnnkjn6tbqsica1ste4jw', 'w7uyhzuo7fnfueen6og9cxmn9h', 1698321691933, NULL); + + +-- +-- Data for Name: channelmembers; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.channelmembers VALUES ('g44m7cnnkjn6tbqsica1ste4jw', '5md7bsji6pbijpxitu8bwezaqy', '', 0, 0, 0, '{"push": "default", "email": "default", "desktop": "default", "mark_unread": "all", "ignore_channel_mentions": "default", "channel_auto_follow_threads": "off"}', 1698320784790, true, true, false, 0, 0, 0); +INSERT INTO public.channelmembers VALUES ('686m6w41q3bidjcxrsuymudgba', 'w7uyhzuo7fnfueen6og9cxmn9h', '', 0, 0, 0, '{"push": "default", "email": "default", "desktop": "default", "mark_unread": "all", "ignore_channel_mentions": "default", "channel_auto_follow_threads": "off"}', 1698321288298, true, false, false, 0, 0, 0); +INSERT INTO public.channelmembers VALUES ('686m6w41q3bidjcxrsuymudgba', '5md7bsji6pbijpxitu8bwezaqy', '', 1698321288325, 1, 0, '{"push": "default", "email": "default", "desktop": "default", "mark_unread": "all", "ignore_channel_mentions": "default", "channel_auto_follow_threads": "off"}', 1698321288325, true, false, false, 0, 1, 0); +INSERT INTO public.channelmembers VALUES ('wjcp9j9mjfbe3f8t3mp5544y1w', 'w7uyhzuo7fnfueen6og9cxmn9h', '', 0, 0, 0, '{"push": "default", "email": "default", "desktop": "default", "mark_unread": "all", "ignore_channel_mentions": "default", "channel_auto_follow_threads": "off"}', 1698321691897, true, false, false, 0, 0, 0); +INSERT INTO public.channelmembers VALUES ('g44m7cnnkjn6tbqsica1ste4jw', 'w7uyhzuo7fnfueen6og9cxmn9h', '', 0, 0, 1, '{"push": "default", "email": "default", "desktop": "default", "mark_unread": "all", "ignore_channel_mentions": "default", "channel_auto_follow_threads": "off"}', 1698321691953, true, false, false, 1, 0, 0); +INSERT INTO public.channelmembers VALUES ('wjcp9j9mjfbe3f8t3mp5544y1w', '5md7bsji6pbijpxitu8bwezaqy', '', 1698322063240, 1, 0, '{"push": "default", "email": "default", "desktop": "default", "mark_unread": "all", "ignore_channel_mentions": "default", "channel_auto_follow_threads": "off"}', 1698322063240, true, true, false, 0, 1, 0); + + +-- +-- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.channels VALUES ('686m6w41q3bidjcxrsuymudgba', 1698321288297, 1698321288297, 0, '', 'D', '', '5md7bsji6pbijpxitu8bwezaqy__w7uyhzuo7fnfueen6og9cxmn9h', '', '', 1698321288325, 1, 0, 'w7uyhzuo7fnfueen6og9cxmn9h', NULL, NULL, false, 1, 1698321288325); +INSERT INTO public.channels VALUES ('g44m7cnnkjn6tbqsica1ste4jw', 1698320784731, 1698320784731, 0, 'rkpuunm3rp8fffhzkjxw63usyc', 'O', 'Off-Topic', 'off-topic', '', '', 1698321691939, 0, 0, '', NULL, NULL, NULL, 0, 1698321691939); +INSERT INTO public.channels VALUES ('wjcp9j9mjfbe3f8t3mp5544y1w', 1698320784722, 1698320784722, 0, 'rkpuunm3rp8fffhzkjxw63usyc', 'O', 'Town Square', 'town-square', '', '', 1698322063240, 1, 0, '', NULL, NULL, NULL, 1, 1698322063240); + + +-- +-- Data for Name: clusterdiscovery; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: commands; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.commands VALUES ('pkksc6zkt7g65q7jtwadpgs9rr', 'u7p1an973bd1jqg75i3y7pxj7y', 1698321530602, 1698321530602, 0, '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 'clear', 'P', '', '', false, '', '', 'Clear', 'Clear Slash Command', 'http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/', ''); +INSERT INTO public.commands VALUES ('z3egwchjfb85zkstcdupcge8pc', 'ncygprhkt3rrxr4rkytcaa7c9c', 1698322016041, 1698322016041, 0, '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 'nautobot', 'P', '', '', false, '', '', 'Nautobot', 'Nautobot Slash Command', 'http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/', ''); +INSERT INTO public.commands VALUES ('qfd8w7rpq7neuphzmo3miaw1jr', 'b9wrs7paz7fi5ragz9uurwd9fa', 1698322240892, 1698322240892, 0, '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 'aci', 'P', '', '', false, '', '', 'Cisco ACI', 'Cisco ACI Slash Command', 'http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/', ''); +INSERT INTO public.commands VALUES ('ifttckqrjpyrxr7ks1w5qjm81c', '4hz941bgtpde9g75sesdp7tp1h', 1698322317986, 1698322317986, 0, '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 'ansible', 'P', '', '', false, '', '', 'Ansible', 'Ansible Slash Command', 'http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/', ''); +INSERT INTO public.commands VALUES ('a4u4gwfa6tggtc6kziyryxsk3a', '71o3ku7jwjyxup6biu1way1h5y', 1698322371251, 1698322371251, 0, '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 'arista', 'P', '', '', false, '', '', 'Arista CloudVision', 'Arista CloudVision Slash Command', 'http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/', ''); +INSERT INTO public.commands VALUES ('urmj87oqbbynir8nzc33by1f4c', '3wxwh3m8mjrzxr11psersqkwue', 1698322417418, 1698322417418, 0, '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 'grafana', 'P', '', '', false, '', '', 'Grafana', 'Grafana Slash Command', 'http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/', ''); +INSERT INTO public.commands VALUES ('mw51fho6ojd3fxqmrgfkt9xykw', 'ppm316za33ritm3xgpobcmmgre', 1698322479271, 1698322479271, 0, '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 'ipfabric', 'P', '', '', false, '', '', 'IP Fabric', 'IP Fabric Slash Command', 'http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/', ''); +INSERT INTO public.commands VALUES ('11cwjihduffn3ceybits6n5zty', '11ix54hycjr4dmxcgw4d77qc4w', 1698322532951, 1698322532951, 0, '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 'meraki', 'P', '', '', false, '', '', 'Cisco Meraki', 'Cisco Meraki Slash Command', 'http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/', ''); +INSERT INTO public.commands VALUES ('p43ko8rim3r89d78yexbg3fiww', 'fh1kbk45xtgm8r48jzr39ru1ww', 1698322585580, 1698322585580, 0, '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 'panorama', 'P', '', '', false, '', '', 'Panorama', 'Panorama Slash Command', 'http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/', ''); + + +-- +-- Data for Name: commandwebhooks; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: compliances; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: db_lock; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: db_migrations; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.db_migrations VALUES (1, 'create_teams'); +INSERT INTO public.db_migrations VALUES (2, 'create_team_members'); +INSERT INTO public.db_migrations VALUES (3, 'create_cluster_discovery'); +INSERT INTO public.db_migrations VALUES (4, 'create_command_webhooks'); +INSERT INTO public.db_migrations VALUES (5, 'create_compliances'); +INSERT INTO public.db_migrations VALUES (6, 'create_emojis'); +INSERT INTO public.db_migrations VALUES (7, 'create_user_groups'); +INSERT INTO public.db_migrations VALUES (8, 'create_group_members'); +INSERT INTO public.db_migrations VALUES (9, 'create_group_teams'); +INSERT INTO public.db_migrations VALUES (10, 'create_group_channels'); +INSERT INTO public.db_migrations VALUES (11, 'create_link_metadata'); +INSERT INTO public.db_migrations VALUES (12, 'create_commands'); +INSERT INTO public.db_migrations VALUES (13, 'create_incoming_webhooks'); +INSERT INTO public.db_migrations VALUES (14, 'create_outgoing_webhooks'); +INSERT INTO public.db_migrations VALUES (15, 'create_systems'); +INSERT INTO public.db_migrations VALUES (16, 'create_reactions'); +INSERT INTO public.db_migrations VALUES (17, 'create_roles'); +INSERT INTO public.db_migrations VALUES (18, 'create_schemes'); +INSERT INTO public.db_migrations VALUES (19, 'create_licenses'); +INSERT INTO public.db_migrations VALUES (20, 'create_posts'); +INSERT INTO public.db_migrations VALUES (21, 'create_product_notice_view_state'); +INSERT INTO public.db_migrations VALUES (22, 'create_sessions'); +INSERT INTO public.db_migrations VALUES (23, 'create_terms_of_service'); +INSERT INTO public.db_migrations VALUES (24, 'create_audits'); +INSERT INTO public.db_migrations VALUES (25, 'create_oauth_access_data'); +INSERT INTO public.db_migrations VALUES (26, 'create_preferences'); +INSERT INTO public.db_migrations VALUES (27, 'create_status'); +INSERT INTO public.db_migrations VALUES (28, 'create_tokens'); +INSERT INTO public.db_migrations VALUES (29, 'create_bots'); +INSERT INTO public.db_migrations VALUES (30, 'create_user_access_tokens'); +INSERT INTO public.db_migrations VALUES (31, 'create_remote_clusters'); +INSERT INTO public.db_migrations VALUES (32, 'create_sharedchannels'); +INSERT INTO public.db_migrations VALUES (33, 'create_sidebar_channels'); +INSERT INTO public.db_migrations VALUES (34, 'create_oauthauthdata'); +INSERT INTO public.db_migrations VALUES (35, 'create_sharedchannelattachments'); +INSERT INTO public.db_migrations VALUES (36, 'create_sharedchannelusers'); +INSERT INTO public.db_migrations VALUES (37, 'create_sharedchannelremotes'); +INSERT INTO public.db_migrations VALUES (38, 'create_jobs'); +INSERT INTO public.db_migrations VALUES (39, 'create_channel_member_history'); +INSERT INTO public.db_migrations VALUES (40, 'create_sidebar_categories'); +INSERT INTO public.db_migrations VALUES (41, 'create_upload_sessions'); +INSERT INTO public.db_migrations VALUES (42, 'create_threads'); +INSERT INTO public.db_migrations VALUES (43, 'thread_memberships'); +INSERT INTO public.db_migrations VALUES (44, 'create_user_terms_of_service'); +INSERT INTO public.db_migrations VALUES (45, 'create_plugin_key_value_store'); +INSERT INTO public.db_migrations VALUES (46, 'create_users'); +INSERT INTO public.db_migrations VALUES (47, 'create_file_info'); +INSERT INTO public.db_migrations VALUES (48, 'create_oauth_apps'); +INSERT INTO public.db_migrations VALUES (49, 'create_channels'); +INSERT INTO public.db_migrations VALUES (50, 'create_channelmembers'); +INSERT INTO public.db_migrations VALUES (51, 'create_msg_root_count'); +INSERT INTO public.db_migrations VALUES (52, 'create_public_channels'); +INSERT INTO public.db_migrations VALUES (53, 'create_retention_policies'); +INSERT INTO public.db_migrations VALUES (54, 'create_crt_channelmembership_count'); +INSERT INTO public.db_migrations VALUES (55, 'create_crt_thread_count_and_unreads'); +INSERT INTO public.db_migrations VALUES (56, 'upgrade_channels_v6.0'); +INSERT INTO public.db_migrations VALUES (57, 'upgrade_command_webhooks_v6.0'); +INSERT INTO public.db_migrations VALUES (58, 'upgrade_channelmembers_v6.0'); +INSERT INTO public.db_migrations VALUES (59, 'upgrade_users_v6.0'); +INSERT INTO public.db_migrations VALUES (60, 'upgrade_jobs_v6.0'); +INSERT INTO public.db_migrations VALUES (61, 'upgrade_link_metadata_v6.0'); +INSERT INTO public.db_migrations VALUES (62, 'upgrade_sessions_v6.0'); +INSERT INTO public.db_migrations VALUES (63, 'upgrade_threads_v6.0'); +INSERT INTO public.db_migrations VALUES (64, 'upgrade_status_v6.0'); +INSERT INTO public.db_migrations VALUES (65, 'upgrade_groupchannels_v6.0'); +INSERT INTO public.db_migrations VALUES (66, 'upgrade_posts_v6.0'); +INSERT INTO public.db_migrations VALUES (67, 'upgrade_channelmembers_v6.1'); +INSERT INTO public.db_migrations VALUES (68, 'upgrade_teammembers_v6.1'); +INSERT INTO public.db_migrations VALUES (69, 'upgrade_jobs_v6.1'); +INSERT INTO public.db_migrations VALUES (70, 'upgrade_cte_v6.1'); +INSERT INTO public.db_migrations VALUES (71, 'upgrade_sessions_v6.1'); +INSERT INTO public.db_migrations VALUES (72, 'upgrade_schemes_v6.3'); +INSERT INTO public.db_migrations VALUES (73, 'upgrade_plugin_key_value_store_v6.3'); +INSERT INTO public.db_migrations VALUES (74, 'upgrade_users_v6.3'); +INSERT INTO public.db_migrations VALUES (75, 'alter_upload_sessions_index'); +INSERT INTO public.db_migrations VALUES (76, 'upgrade_lastrootpostat'); +INSERT INTO public.db_migrations VALUES (77, 'upgrade_users_v6.5'); +INSERT INTO public.db_migrations VALUES (78, 'create_oauth_mattermost_app_id'); +INSERT INTO public.db_migrations VALUES (79, 'usergroups_displayname_index'); +INSERT INTO public.db_migrations VALUES (80, 'posts_createat_id'); +INSERT INTO public.db_migrations VALUES (81, 'threads_deleteat'); +INSERT INTO public.db_migrations VALUES (82, 'upgrade_oauth_mattermost_app_id'); +INSERT INTO public.db_migrations VALUES (83, 'threads_threaddeleteat'); +INSERT INTO public.db_migrations VALUES (84, 'recent_searches'); +INSERT INTO public.db_migrations VALUES (85, 'fileinfo_add_archived_column'); +INSERT INTO public.db_migrations VALUES (86, 'add_cloud_limits_archived'); +INSERT INTO public.db_migrations VALUES (87, 'sidebar_categories_index'); +INSERT INTO public.db_migrations VALUES (88, 'remaining_migrations'); +INSERT INTO public.db_migrations VALUES (89, 'add-channelid-to-reaction'); +INSERT INTO public.db_migrations VALUES (90, 'create_enums'); +INSERT INTO public.db_migrations VALUES (91, 'create_post_reminder'); +INSERT INTO public.db_migrations VALUES (92, 'add_createat_to_teamembers'); +INSERT INTO public.db_migrations VALUES (93, 'notify_admin'); +INSERT INTO public.db_migrations VALUES (94, 'threads_teamid'); +INSERT INTO public.db_migrations VALUES (95, 'remove_posts_parentid'); +INSERT INTO public.db_migrations VALUES (96, 'threads_threadteamid'); +INSERT INTO public.db_migrations VALUES (97, 'create_posts_priority'); +INSERT INTO public.db_migrations VALUES (98, 'create_post_acknowledgements'); +INSERT INTO public.db_migrations VALUES (99, 'create_drafts'); +INSERT INTO public.db_migrations VALUES (100, 'add_draft_priority_column'); +INSERT INTO public.db_migrations VALUES (101, 'create_true_up_review_history'); +INSERT INTO public.db_migrations VALUES (102, 'posts_originalid_index'); +INSERT INTO public.db_migrations VALUES (103, 'add_sentat_to_notifyadmin'); +INSERT INTO public.db_migrations VALUES (104, 'upgrade_notifyadmin'); +INSERT INTO public.db_migrations VALUES (105, 'remove_tokens'); +INSERT INTO public.db_migrations VALUES (106, 'fileinfo_channelid'); +INSERT INTO public.db_migrations VALUES (107, 'threadmemberships_cleanup'); +INSERT INTO public.db_migrations VALUES (108, 'remove_orphaned_oauth_preferences'); +INSERT INTO public.db_migrations VALUES (109, 'create_persistent_notifications'); +INSERT INTO public.db_migrations VALUES (111, 'update_vacuuming'); + + +-- +-- Data for Name: drafts; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: emoji; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: fileinfo; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: groupchannels; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: groupmembers; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: groupteams; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: incomingwebhooks; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_category; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_category_item; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_channelaction; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_incident; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_metric; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_metricconfig; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_playbook; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_playbookautofollow; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_playbookmember; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_run_participants; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_statusposts; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_system; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.ir_system VALUES ('DatabaseVersion', '0.63.0'); + + +-- +-- Data for Name: ir_timelineevent; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: ir_userinfo; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.ir_userinfo VALUES ('5md7bsji6pbijpxitu8bwezaqy', 1698320802132, '{"disable_daily_digest":false,"disable_weekly_digest":false}'); + + +-- +-- Data for Name: ir_viewedchannel; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: jobs; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.jobs VALUES ('sq83iy4bgidn3gdf4745rkzcco', 'migrations', 0, 1698320643330, 1698320652909, 1698320653134, 'success', 0, '{"last_done": "{\"current_table\":\"ChannelMembers\",\"last_team_id\":\"00000000000000000000000000\",\"last_channel_id\":\"00000000000000000000000000\",\"last_user\":\"00000000000000000000000000\"}", "migration_key": "migration_advanced_permissions_phase_2"}'); + + +-- +-- Data for Name: licenses; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: linkmetadata; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: notifyadmin; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: oauthaccessdata; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: oauthapps; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: oauthauthdata; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: outgoingwebhooks; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: persistentnotifications; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: pluginkeyvaluestore; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.pluginkeyvaluestore VALUES ('com.mattermost.nps', 'ServerUpgrade-9.0.0', '\x7b227365727665725f76657273696f6e223a22392e302e30222c22757067726164655f6174223a22323032332d31302d32365431313a34333a30322e3735323732333133315a227d', 0); +INSERT INTO public.pluginkeyvaluestore VALUES ('com.mattermost.nps', 'WelcomeFeedbackMigration', '\x7b224372656174654174223a22323032332d31302d32365431313a34333a30322e3735323732333133315a227d', 0); +INSERT INTO public.pluginkeyvaluestore VALUES ('com.mattermost.nps', 'Survey-9.0.0', '\x7b227365727665725f76657273696f6e223a22392e302e30222c226372656174655f6174223a22323032332d31302d32365431313a34333a30322e3735323732333133315a222c2273746172745f6174223a22323032332d31322d31305431313a34333a30322e3735323732333133315a227d', 0); +INSERT INTO public.pluginkeyvaluestore VALUES ('com.mattermost.nps', 'LastAdminNotice', '\x22323032332d31302d32365431313a34333a30322e3735323732333133315a22', 0); +INSERT INTO public.pluginkeyvaluestore VALUES ('playbooks', 'mmi_botid', '\x6d7433667138316d726262796472656673733168397a66786877', 0); +INSERT INTO public.pluginkeyvaluestore VALUES ('com.mattermost.calls', 'mmi_botid', '\x71696366616e6a747a62677366387168387a6b6f736471393665', 0); + + +-- +-- Data for Name: postacknowledgements; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: postreminders; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: posts; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.posts VALUES ('tncer1pq7brn5gx3cp9pmoaqtw', 1698320784773, 1698320784773, 0, '5md7bsji6pbijpxitu8bwezaqy', 'wjcp9j9mjfbe3f8t3mp5544y1w', '', '', 'admin joined the team.', 'system_join_team', '{"username": "admin"}', '', '[]', '[]', false, 0, false, NULL); +INSERT INTO public.posts VALUES ('apr119z86fg1tbuub5x6u6pune', 1698320784805, 1698320784805, 0, '5md7bsji6pbijpxitu8bwezaqy', 'g44m7cnnkjn6tbqsica1ste4jw', '', '', 'admin joined the channel.', 'system_join_channel', '{"username": "admin"}', '', '[]', '[]', false, 0, false, NULL); +INSERT INTO public.posts VALUES ('33p1sunyyb8cmxbqwrxotgyuqe', 1698321288325, 1698321288325, 0, 'w7uyhzuo7fnfueen6og9cxmn9h', '686m6w41q3bidjcxrsuymudgba', '', '', 'Please add me to teams and channels you want me to interact in. To do this, use the browser or Mattermost Desktop App.', 'add_bot_teams_channels', '{"from_bot": "true"}', '', '[]', '[]', false, 0, false, NULL); +INSERT INTO public.posts VALUES ('okcnrhyu638furtk9x7s6z9dnc', 1698321691911, 1698321691911, 0, '5md7bsji6pbijpxitu8bwezaqy', 'wjcp9j9mjfbe3f8t3mp5544y1w', '', '', 'nautobot added to the team by admin.', 'system_add_to_team', '{"userId": "5md7bsji6pbijpxitu8bwezaqy", "username": "admin", "addedUserId": "w7uyhzuo7fnfueen6og9cxmn9h", "addedUsername": "nautobot"}', '', '[]', '[]', false, 0, false, NULL); +INSERT INTO public.posts VALUES ('tn88sqa4cbbnig5wu1hgj6rb7w', 1698321691939, 1698321691939, 0, '5md7bsji6pbijpxitu8bwezaqy', 'g44m7cnnkjn6tbqsica1ste4jw', '', '', 'nautobot added to the channel by admin.', 'system_add_to_channel', '{"userId": "5md7bsji6pbijpxitu8bwezaqy", "username": "admin", "addedUserId": "w7uyhzuo7fnfueen6og9cxmn9h", "addedUsername": "nautobot"}', '', '[]', '[]', false, 0, false, NULL); +INSERT INTO public.posts VALUES ('3e3uz4acwt8h3cxu4xs83zcyzc', 1698322063240, 1698322063240, 0, 'w7uyhzuo7fnfueen6og9cxmn9h', 'wjcp9j9mjfbe3f8t3mp5544y1w', '', '', '', '', '{"from_bot": "true", "attachments": [{"id": 0, "ts": null, "text": "More Chat commands can be found at [Nautobot Apps](https://www.networktocode.com/nautobot/apps/)", "color": "", "title": "", "fields": null, "footer": "", "pretext": "", "fallback": "", "image_url": "", "thumb_url": "", "title_link": "", "author_icon": "", "author_link": "", "author_name": "", "footer_icon": ""}]}', '', '[]', '[]', false, 0, false, NULL); + + +-- +-- Data for Name: postspriority; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: preferences; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.preferences VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'tutorial_step', '5md7bsji6pbijpxitu8bwezaqy', '0'); +INSERT INTO public.preferences VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'recommended_next_steps', 'hide', 'true'); +INSERT INTO public.preferences VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'onboarding_task_list', 'onboarding_task_list_show', 'false'); +INSERT INTO public.preferences VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'onboarding_task_list', 'onboarding_task_list_open', 'false'); +INSERT INTO public.preferences VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'touched', 'add_channels_cta', 'true'); +INSERT INTO public.preferences VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'channel_approximate_view_time', 'wjcp9j9mjfbe3f8t3mp5544y1w', '1698321177534'); +INSERT INTO public.preferences VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'direct_channel_show', 'w7uyhzuo7fnfueen6og9cxmn9h', 'true'); +INSERT INTO public.preferences VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'channel_open_time', '686m6w41q3bidjcxrsuymudgba', '1698321657708'); +INSERT INTO public.preferences VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'drafts', 'drafts_tour_tip_showed', '{"drafts_tour_tip_showed":true}'); + + +-- +-- Data for Name: productnoticeviewstate; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'gfycat_deprecation_7.8', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'gif_deprecation_7.9_7.10', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'gfycat_deprecation_8.0', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'gfycat_deprecation_8.1', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'boards_deprecations', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'boards_deprecations_user_2', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'desktop_upgrade_v5.5', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'server_upgrade_v9.1', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'crt-admin-disabled', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'crt-admin-default_off', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'crt-user-default-on', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'crt-user-always-on', 1, 1698320750); +INSERT INTO public.productnoticeviewstate VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'unsupported-server-v5.37', 1, 1698320750); + + +-- +-- Data for Name: publicchannels; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.publicchannels VALUES ('wjcp9j9mjfbe3f8t3mp5544y1w', 0, 'rkpuunm3rp8fffhzkjxw63usyc', 'Town Square', 'town-square', '', ''); +INSERT INTO public.publicchannels VALUES ('g44m7cnnkjn6tbqsica1ste4jw', 0, 'rkpuunm3rp8fffhzkjxw63usyc', 'Off-Topic', 'off-topic', '', ''); + + +-- +-- Data for Name: reactions; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: recentsearches; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: remoteclusters; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: retentionpolicies; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: retentionpolicieschannels; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: retentionpoliciesteams; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: roles; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.roles VALUES ('9pr4dapegp8p5rrwf8xwyuwudw', 'team_admin', 'authentication.roles.team_admin.name', 'authentication.roles.team_admin.description', 1698320577304, 1698320582267, 0, ' convert_public_channel_to_private use_group_mentions delete_others_posts manage_slash_commands manage_private_channel_members manage_others_outgoing_webhooks use_channel_mentions create_post manage_team_roles manage_incoming_webhooks playbook_public_manage_roles add_reaction manage_public_channel_members remove_reaction playbook_private_manage_roles manage_others_slash_commands import_team delete_post remove_user_from_team convert_private_channel_to_public read_private_channel_groups manage_channel_roles manage_outgoing_webhooks read_public_channel_groups manage_others_incoming_webhooks manage_team', true, true); +INSERT INTO public.roles VALUES ('w6wassz9nfd6jfkfou79njg5kr', 'system_post_all_public', 'authentication.roles.system_post_all_public.name', 'authentication.roles.system_post_all_public.description', 1698320577261, 1698320582223, 0, ' create_post_public use_channel_mentions use_group_mentions', false, true); +INSERT INTO public.roles VALUES ('4tg91kitxbr45k11ia1rfp9dsw', 'system_user_access_token', 'authentication.roles.system_user_access_token.name', 'authentication.roles.system_user_access_token.description', 1698320577267, 1698320582229, 0, ' revoke_user_access_token create_user_access_token read_user_access_token', false, true); +INSERT INTO public.roles VALUES ('bqrqkffoqpgt3yru89wr8p3ihh', 'channel_user', 'authentication.roles.channel_user.name', 'authentication.roles.channel_user.description', 1698320577285, 1698320582248, 0, ' edit_post read_public_channel_groups delete_public_channel add_reaction read_private_channel_groups manage_public_channel_properties read_channel_content use_group_mentions delete_post upload_file use_channel_mentions manage_public_channel_members manage_private_channel_members read_channel remove_reaction create_post manage_private_channel_properties get_public_link delete_private_channel', true, true); +INSERT INTO public.roles VALUES ('eg9aoait5pgy5yd5upto6fr5bh', 'custom_group_user', 'authentication.roles.custom_group_user.name', 'authentication.roles.custom_group_user.description', 1698320577310, 1698320582273, 0, '', false, false); +INSERT INTO public.roles VALUES ('zorc97yr9igdp8dgifag5u64tw', 'team_user', 'authentication.roles.team_user.name', 'authentication.roles.team_user.description', 1698320577291, 1698320582254, 0, ' invite_user list_team_channels create_private_channel playbook_private_create playbook_public_create join_public_channels create_public_channel view_team read_public_channel add_user_to_team', true, true); +INSERT INTO public.roles VALUES ('mjokx7qp3jdd7eidqhsx4td6ec', 'playbook_member', 'authentication.roles.playbook_member.name', 'authentication.roles.playbook_member.description', 1698320577316, 1698320582279, 0, ' playbook_public_view playbook_public_manage_members playbook_public_manage_properties playbook_private_view playbook_private_manage_members playbook_private_manage_properties run_create', true, true); +INSERT INTO public.roles VALUES ('p8mkk11gqbfquxr45q4cknakya', 'channel_admin', 'authentication.roles.channel_admin.name', 'authentication.roles.channel_admin.description', 1698320577338, 1698320582291, 0, ' use_channel_mentions add_reaction use_group_mentions manage_channel_roles manage_private_channel_members create_post read_public_channel_groups remove_reaction manage_public_channel_members read_private_channel_groups', true, true); +INSERT INTO public.roles VALUES ('qe1epqnnwinz9m15dhdowkbaqh', 'team_guest', 'authentication.roles.team_guest.name', 'authentication.roles.team_guest.description', 1698320577344, 1698320582298, 0, ' view_team', true, true); +INSERT INTO public.roles VALUES ('dbtf1b6357n7db1h9raanwjzse', 'run_member', 'authentication.roles.run_member.name', 'authentication.roles.run_member.description', 1698320577350, 1698320582304, 0, ' run_view', true, true); +INSERT INTO public.roles VALUES ('oe6ongueziywtgmqo4d9c4igjo', 'team_post_all', 'authentication.roles.team_post_all.name', 'authentication.roles.team_post_all.description', 1698320577297, 1698320582261, 0, ' use_channel_mentions use_group_mentions create_post', false, true); +INSERT INTO public.roles VALUES ('aomdi3k85fr1bdnmmt5hcgzj7a', 'playbook_admin', 'authentication.roles.playbook_admin.name', 'authentication.roles.playbook_admin.description', 1698320577332, 1698320582285, 0, ' playbook_private_manage_members playbook_private_manage_roles playbook_private_manage_properties playbook_public_make_private playbook_public_manage_members playbook_public_manage_roles playbook_public_manage_properties', true, true); +INSERT INTO public.roles VALUES ('9t14j3hzmbndfbkpsoh9arngbr', 'system_guest', 'authentication.roles.global_guest.name', 'authentication.roles.global_guest.description', 1698320577356, 1698320582310, 0, ' create_direct_channel create_group_channel', true, true); +INSERT INTO public.roles VALUES ('9h3q73uhopdfmgu1yi88gc99do', 'system_post_all', 'authentication.roles.system_post_all.name', 'authentication.roles.system_post_all.description', 1698320577369, 1698320582316, 0, ' use_channel_mentions create_post use_group_mentions', false, true); +INSERT INTO public.roles VALUES ('6kfpmc99fjgotg88k6qkr853dr', 'system_admin', 'authentication.roles.global_admin.name', 'authentication.roles.global_admin.description', 1698320577322, 1698320582322, 0, ' manage_team sysconsole_read_environment_rate_limiting use_slash_commands sysconsole_read_site_notices remove_others_reactions test_s3 sysconsole_read_site_file_sharing_and_downloads sysconsole_write_site_posts create_group_channel manage_others_slash_commands sysconsole_read_user_management_permissions sysconsole_read_authentication_saml manage_team_roles promote_guest add_saml_public_cert create_post sysconsole_read_authentication_signup sysconsole_write_authentication_email create_post_bleve_indexes_job create_user_access_token playbook_public_manage_roles sysconsole_write_reporting_server_logs manage_system_wide_oauth sysconsole_read_user_management_users read_audits sysconsole_write_environment_push_notification_server manage_jobs list_public_teams get_saml_cert_status test_elasticsearch sysconsole_read_user_management_teams add_saml_idp_cert reload_config manage_roles sysconsole_write_experimental_features manage_shared_channels create_post_public sysconsole_write_site_announcement_banner sysconsole_read_site_announcement_banner sysconsole_write_compliance_data_retention_policy convert_public_channel_to_private list_private_teams playbook_private_manage_properties sysconsole_read_environment_image_proxy create_direct_channel create_elasticsearch_post_aggregation_job sysconsole_read_environment_session_lengths sysconsole_read_compliance_data_retention_policy test_ldap view_members recycle_database_connections edit_post sysconsole_write_user_management_teams playbook_private_manage_members create_private_channel sysconsole_read_site_emoji playbook_private_manage_roles manage_private_channel_properties read_jobs import_team read_other_users_teams sysconsole_write_integrations_integration_management read_private_channel_groups manage_public_channel_members sysconsole_read_integrations_gif sysconsole_write_user_management_system_roles remove_ldap_private_cert sysconsole_read_integrations_integration_management sysconsole_read_authentication_mfa use_group_mentions assign_system_admin_role sysconsole_write_authentication_saml sysconsole_read_environment_elasticsearch add_ldap_private_cert sysconsole_read_products_boards sysconsole_read_user_management_groups sysconsole_write_site_users_and_teams delete_post delete_custom_group remove_user_from_team read_bots sysconsole_write_environment_database playbook_private_make_public sysconsole_read_authentication_ldap join_public_teams playbook_public_manage_properties read_elasticsearch_post_aggregation_job read_others_bots edit_others_posts sysconsole_write_site_customization sysconsole_read_billing revoke_user_access_token playbook_private_view sysconsole_write_environment_developer sysconsole_write_compliance_compliance_export sysconsole_read_compliance_custom_terms_of_service manage_others_incoming_webhooks sysconsole_read_integrations_bot_accounts get_public_link sysconsole_write_site_public_links edit_other_users create_bot sysconsole_write_environment_image_proxy read_public_channel_groups sysconsole_read_environment_database sysconsole_read_reporting_site_statistics join_public_channels manage_bots create_post_ephemeral sysconsole_write_integrations_gif invalidate_email_invite sysconsole_read_authentication_openid delete_private_channel sysconsole_write_experimental_feature_flags add_ldap_public_cert run_manage_members sysconsole_read_experimental_feature_flags sysconsole_write_billing sysconsole_write_environment_high_availability sysconsole_write_environment_rate_limiting sysconsole_read_site_users_and_teams sysconsole_write_reporting_team_statistics manage_private_channel_members read_elasticsearch_post_indexing_job read_data_retention_job sysconsole_read_environment_developer invalidate_caches get_analytics create_compliance_export_job create_team invite_guest remove_saml_idp_cert manage_incoming_webhooks sysconsole_read_site_customization playbook_public_make_private run_view sysconsole_read_compliance_compliance_monitoring sysconsole_read_environment_push_notification_server manage_channel_roles assign_bot delete_emojis sysconsole_read_about_edition_and_license read_channel delete_public_channel sysconsole_read_site_public_links read_user_access_token playbook_public_view view_team sysconsole_write_environment_performance_monitoring add_saml_private_cert manage_outgoing_webhooks sysconsole_write_authentication_mfa sysconsole_read_environment_performance_monitoring run_create manage_slash_commands sysconsole_write_authentication_ldap create_emojis delete_others_posts manage_others_outgoing_webhooks upload_file sysconsole_write_site_emoji sysconsole_write_authentication_password playbook_private_create run_manage_properties sysconsole_read_experimental_features get_saml_metadata_from_idp sysconsole_write_environment_file_storage sysconsole_read_reporting_server_logs sysconsole_write_site_notifications sysconsole_read_experimental_bleve sysconsole_write_user_management_groups read_channel_content join_private_teams sysconsole_read_user_management_system_roles sysconsole_write_integrations_cors playbook_public_create sysconsole_read_site_notifications add_reaction sysconsole_write_integrations_bot_accounts sysconsole_write_about_edition_and_license sysconsole_read_site_localization remove_saml_private_cert read_deleted_posts sysconsole_read_user_management_channels manage_license_information playbook_public_manage_members sysconsole_write_site_file_sharing_and_downloads read_ldap_sync_job sysconsole_write_authentication_openid manage_custom_group_members sysconsole_read_environment_web_server add_user_to_team delete_others_emojis remove_reaction restore_custom_group edit_brand sysconsole_write_environment_logging manage_public_channel_properties sysconsole_read_compliance_compliance_export sysconsole_read_plugins invite_user sysconsole_read_environment_high_availability remove_ldap_public_cert sysconsole_write_authentication_signup sysconsole_read_environment_logging list_team_channels manage_others_bots sysconsole_write_user_management_channels create_ldap_sync_job read_compliance_export_job sysconsole_read_reporting_team_statistics list_users_without_team sysconsole_write_compliance_custom_terms_of_service read_public_channel sysconsole_read_environment_smtp sysconsole_write_environment_web_server manage_system sysconsole_read_authentication_guest_access sysconsole_read_site_posts sysconsole_write_user_management_users sysconsole_write_plugins test_email create_elasticsearch_post_indexing_job create_data_retention_job manage_oauth remove_saml_public_cert sysconsole_write_reporting_site_statistics sysconsole_write_environment_smtp demote_to_guest sysconsole_write_environment_session_lengths create_public_channel sysconsole_write_products_boards download_compliance_export_result sysconsole_write_site_notices manage_secure_connections read_license_information sysconsole_write_user_management_permissions sysconsole_read_integrations_cors use_channel_mentions purge_bleve_indexes sysconsole_write_environment_elasticsearch sysconsole_write_authentication_guest_access test_site_url sysconsole_read_authentication_password sysconsole_write_compliance_compliance_monitoring sysconsole_read_environment_file_storage edit_custom_group create_custom_group sysconsole_write_site_localization get_logs purge_elasticsearch_indexes convert_private_channel_to_public sysconsole_read_authentication_email sysconsole_write_experimental_bleve', true, true); +INSERT INTO public.roles VALUES ('rmjt5xak738gmcx5afckhkr47r', 'team_post_all_public', 'authentication.roles.team_post_all_public.name', 'authentication.roles.team_post_all_public.description', 1698320577243, 1698320582211, 0, ' use_channel_mentions create_post_public use_group_mentions', false, true); +INSERT INTO public.roles VALUES ('b9ef3k1qefgkmxhkpi4rsp9q8h', 'run_admin', 'authentication.roles.run_admin.name', 'authentication.roles.run_admin.description', 1698320577249, 1698320582217, 0, ' run_manage_members run_manage_properties', true, true); +INSERT INTO public.roles VALUES ('afhpw8yxipymzn7694us6pj43o', 'system_read_only_admin', 'authentication.roles.system_read_only_admin.name', 'authentication.roles.system_read_only_admin.description', 1698320577273, 1698320582236, 0, ' sysconsole_read_environment_logging list_private_teams sysconsole_read_about_edition_and_license sysconsole_read_authentication_password read_private_channel_groups sysconsole_read_environment_web_server sysconsole_read_environment_session_lengths sysconsole_read_environment_push_notification_server read_elasticsearch_post_aggregation_job sysconsole_read_environment_performance_monitoring sysconsole_read_compliance_data_retention_policy sysconsole_read_integrations_gif read_data_retention_job sysconsole_read_reporting_site_statistics sysconsole_read_environment_high_availability sysconsole_read_site_emoji sysconsole_read_experimental_feature_flags sysconsole_read_site_localization view_team download_compliance_export_result sysconsole_read_reporting_team_statistics test_ldap read_elasticsearch_post_indexing_job sysconsole_read_user_management_users sysconsole_read_authentication_ldap read_public_channel sysconsole_read_plugins read_compliance_export_job sysconsole_read_environment_smtp read_license_information sysconsole_read_site_file_sharing_and_downloads sysconsole_read_integrations_integration_management list_public_teams sysconsole_read_reporting_server_logs sysconsole_read_site_public_links sysconsole_read_user_management_channels sysconsole_read_site_announcement_banner sysconsole_read_authentication_mfa read_other_users_teams sysconsole_read_user_management_permissions sysconsole_read_authentication_guest_access sysconsole_read_integrations_cors sysconsole_read_site_users_and_teams sysconsole_read_user_management_groups sysconsole_read_site_posts sysconsole_read_user_management_teams sysconsole_read_compliance_compliance_export sysconsole_read_site_notices sysconsole_read_authentication_signup sysconsole_read_authentication_email read_ldap_sync_job sysconsole_read_environment_file_storage get_analytics sysconsole_read_environment_elasticsearch sysconsole_read_experimental_bleve sysconsole_read_environment_database sysconsole_read_products_boards sysconsole_read_environment_image_proxy sysconsole_read_site_notifications sysconsole_read_site_customization read_public_channel_groups sysconsole_read_compliance_custom_terms_of_service read_channel sysconsole_read_experimental_features sysconsole_read_environment_developer sysconsole_read_authentication_saml sysconsole_read_integrations_bot_accounts read_audits sysconsole_read_authentication_openid get_logs sysconsole_read_compliance_compliance_monitoring sysconsole_read_environment_rate_limiting', false, true); +INSERT INTO public.roles VALUES ('rdgehgkxwidixmkboktwgd5m5e', 'channel_guest', 'authentication.roles.channel_guest.name', 'authentication.roles.channel_guest.description', 1698320577381, 1698320582335, 0, ' add_reaction remove_reaction upload_file edit_post create_post use_channel_mentions read_channel read_channel_content', true, true); +INSERT INTO public.roles VALUES ('k6f5zc76mjbuucmb1t3bedkano', 'system_custom_group_admin', 'authentication.roles.system_custom_group_admin.name', 'authentication.roles.system_custom_group_admin.description', 1698320577387, 1698320582341, 0, ' delete_custom_group restore_custom_group manage_custom_group_members create_custom_group edit_custom_group', false, true); +INSERT INTO public.roles VALUES ('hfzk9bc7gf8wp8af8b3gtncb6c', 'system_user', 'authentication.roles.global_user.name', 'authentication.roles.global_user.description', 1698320577363, 1698320582347, 0, ' delete_emojis create_team restore_custom_group create_custom_group create_emojis delete_custom_group create_direct_channel view_members list_public_teams edit_custom_group join_public_teams manage_custom_group_members create_group_channel', true, true); +INSERT INTO public.roles VALUES ('fe3n8qmbrb8hupsnsayok1x5by', 'system_manager', 'authentication.roles.system_manager.name', 'authentication.roles.system_manager.description', 1698320577279, 1698320582242, 0, ' sysconsole_write_site_emoji sysconsole_write_environment_session_lengths read_license_information sysconsole_write_site_file_sharing_and_downloads sysconsole_read_plugins sysconsole_write_user_management_permissions read_public_channel_groups sysconsole_write_integrations_cors sysconsole_read_environment_file_storage test_elasticsearch create_elasticsearch_post_indexing_job test_site_url read_public_channel read_elasticsearch_post_aggregation_job sysconsole_read_authentication_mfa sysconsole_read_environment_smtp sysconsole_read_site_announcement_banner sysconsole_write_user_management_teams read_ldap_sync_job sysconsole_read_user_management_teams sysconsole_read_environment_high_availability sysconsole_write_environment_high_availability sysconsole_write_products_boards sysconsole_read_authentication_openid sysconsole_write_environment_web_server reload_config sysconsole_write_site_public_links sysconsole_read_site_customization remove_user_from_team add_user_to_team sysconsole_write_integrations_gif sysconsole_read_environment_developer sysconsole_write_site_localization get_logs sysconsole_read_integrations_integration_management sysconsole_read_environment_web_server sysconsole_read_authentication_ldap sysconsole_read_user_management_permissions sysconsole_read_environment_push_notification_server recycle_database_connections test_s3 purge_elasticsearch_indexes manage_team_roles edit_brand delete_public_channel join_public_teams sysconsole_read_authentication_password manage_private_channel_members sysconsole_read_environment_database list_public_teams manage_public_channel_properties sysconsole_write_site_notices sysconsole_read_site_notices sysconsole_read_site_posts sysconsole_write_environment_push_notification_server sysconsole_read_environment_session_lengths sysconsole_read_site_localization sysconsole_write_site_announcement_banner sysconsole_read_products_boards sysconsole_write_site_customization sysconsole_write_site_users_and_teams sysconsole_write_user_management_channels read_elasticsearch_post_indexing_job sysconsole_read_environment_elasticsearch invalidate_caches sysconsole_read_integrations_gif sysconsole_write_user_management_groups get_analytics sysconsole_write_site_posts read_channel sysconsole_read_site_notifications sysconsole_read_site_file_sharing_and_downloads sysconsole_read_reporting_site_statistics sysconsole_write_environment_file_storage manage_private_channel_properties sysconsole_read_environment_image_proxy sysconsole_write_environment_logging join_private_teams sysconsole_read_site_users_and_teams sysconsole_read_authentication_signup sysconsole_write_environment_image_proxy sysconsole_write_environment_database delete_private_channel sysconsole_write_environment_performance_monitoring read_private_channel_groups sysconsole_read_authentication_saml sysconsole_read_user_management_groups sysconsole_read_site_public_links sysconsole_read_reporting_team_statistics sysconsole_read_integrations_bot_accounts sysconsole_write_environment_elasticsearch sysconsole_read_authentication_guest_access list_private_teams sysconsole_write_environment_rate_limiting sysconsole_read_user_management_channels sysconsole_read_environment_rate_limiting create_elasticsearch_post_aggregation_job view_team sysconsole_read_integrations_cors sysconsole_write_environment_developer convert_public_channel_to_private manage_team manage_channel_roles sysconsole_read_reporting_server_logs sysconsole_write_site_notifications test_ldap sysconsole_read_about_edition_and_license sysconsole_read_authentication_email sysconsole_write_integrations_bot_accounts convert_private_channel_to_public sysconsole_read_site_emoji manage_public_channel_members sysconsole_write_integrations_integration_management sysconsole_read_environment_performance_monitoring sysconsole_write_environment_smtp sysconsole_read_environment_logging test_email', false, true); +INSERT INTO public.roles VALUES ('fr37w1fkii87bnt9f8j1y1wdzw', 'system_user_manager', 'authentication.roles.system_user_manager.name', 'authentication.roles.system_user_manager.description', 1698320577375, 1698320582328, 0, ' manage_public_channel_properties test_ldap manage_team_roles read_public_channel manage_private_channel_properties sysconsole_read_authentication_guest_access sysconsole_read_authentication_email list_private_teams join_private_teams add_user_to_team sysconsole_write_user_management_teams read_ldap_sync_job sysconsole_read_authentication_signup sysconsole_read_authentication_ldap sysconsole_read_user_management_permissions join_public_teams convert_private_channel_to_public sysconsole_write_user_management_channels sysconsole_write_user_management_groups read_private_channel_groups sysconsole_read_user_management_teams sysconsole_read_authentication_saml list_public_teams read_channel sysconsole_read_authentication_openid sysconsole_read_user_management_channels manage_team delete_private_channel view_team manage_private_channel_members sysconsole_read_user_management_groups remove_user_from_team manage_public_channel_members read_public_channel_groups convert_public_channel_to_private sysconsole_read_authentication_password delete_public_channel manage_channel_roles sysconsole_read_authentication_mfa', false, true); + + +-- +-- Data for Name: schemes; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: sessions; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.sessions VALUES ('ugcm3rkgaig7tntdiwka6bp79r', 'ji7mf5m9dfnyjmu4gcnwt31xne', 1698320583554, 0, 1698320583554, 'qicfanjtzbgsf8qh8zkosdq96e', '', '', false, '{}', false); +INSERT INTO public.sessions VALUES ('tccpu59ortge9bdfunua675bcy', 'nsutx44ibbd69r5hjjmd3hx4sw', 1698321933089, 4851921933089, 1698321933089, 'w7uyhzuo7fnfueen6og9cxmn9h', '', 'system_user system_admin', false, '{"type": "UserAccessToken", "is_bot": "true", "is_guest": "false", "user_access_token_id": "7xnejgyhj7nxtmq6t95iah7n7c"}', false); +INSERT INTO public.sessions VALUES ('xprkr99nfirmb8j4pdfzqhhtar', 'gocaadsyk3bo5qwqf9tks47wko', 1698320751063, 1700912751063, 1698322855604, '5md7bsji6pbijpxitu8bwezaqy', '', 'system_admin system_user', false, '{"os": "Linux", "csrf": "wzkjmmqeaifz3qaa6dz57m614w", "isSaml": "false", "browser": "Chrome/118.0", "isMobile": "false", "is_guest": "false", "platform": "Linux", "isOAuthUser": "false"}', false); +INSERT INTO public.sessions VALUES ('bbs5ngiidbrticjza5sfs679ac', 'gsxpu5po9fnxmncgcbgkgcfo7a', 1698324524225, 0, 1698324524225, 'qicfanjtzbgsf8qh8zkosdq96e', '', '', false, '{}', false); + + +-- +-- Data for Name: sharedchannelattachments; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: sharedchannelremotes; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: sharedchannels; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: sharedchannelusers; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: sidebarcategories; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.sidebarcategories VALUES ('favorites_5md7bsji6pbijpxitu8bwezaqy_rkpuunm3rp8fffhzkjxw63usyc', '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 0, '', 'favorites', 'Favorites', false, false); +INSERT INTO public.sidebarcategories VALUES ('channels_5md7bsji6pbijpxitu8bwezaqy_rkpuunm3rp8fffhzkjxw63usyc', '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 10, '', 'channels', 'Channels', false, false); +INSERT INTO public.sidebarcategories VALUES ('direct_messages_5md7bsji6pbijpxitu8bwezaqy_rkpuunm3rp8fffhzkjxw63usyc', '5md7bsji6pbijpxitu8bwezaqy', 'rkpuunm3rp8fffhzkjxw63usyc', 20, 'recent', 'direct_messages', 'Direct Messages', false, false); +INSERT INTO public.sidebarcategories VALUES ('favorites_w7uyhzuo7fnfueen6og9cxmn9h_rkpuunm3rp8fffhzkjxw63usyc', 'w7uyhzuo7fnfueen6og9cxmn9h', 'rkpuunm3rp8fffhzkjxw63usyc', 0, '', 'favorites', 'Favorites', false, false); +INSERT INTO public.sidebarcategories VALUES ('channels_w7uyhzuo7fnfueen6og9cxmn9h_rkpuunm3rp8fffhzkjxw63usyc', 'w7uyhzuo7fnfueen6og9cxmn9h', 'rkpuunm3rp8fffhzkjxw63usyc', 10, '', 'channels', 'Channels', false, false); +INSERT INTO public.sidebarcategories VALUES ('direct_messages_w7uyhzuo7fnfueen6og9cxmn9h_rkpuunm3rp8fffhzkjxw63usyc', 'w7uyhzuo7fnfueen6og9cxmn9h', 'rkpuunm3rp8fffhzkjxw63usyc', 20, 'recent', 'direct_messages', 'Direct Messages', false, false); + + +-- +-- Data for Name: sidebarchannels; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: status; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.status VALUES ('w7uyhzuo7fnfueen6og9cxmn9h', 'offline', false, 1698322063254, 0, ''); +INSERT INTO public.status VALUES ('5md7bsji6pbijpxitu8bwezaqy', 'offline', false, 1698323059687, 0, ''); + + +-- +-- Data for Name: systems; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.systems VALUES ('CRTChannelMembershipCountsMigrationComplete', 'true'); +INSERT INTO public.systems VALUES ('CRTThreadCountsAndUnreadsMigrationComplete', 'true'); +INSERT INTO public.systems VALUES ('AsymmetricSigningKey', '{"ecdsa_key":{"curve":"P-256","x":93265069825403552412139318495871668021796740157055378512852007170438861396546,"y":59624988667333768029494324774170511219568387297490421502531189241744540499512,"d":109950753027899581247934453758674695621655017250419947179614439678360020797909}}'); +INSERT INTO public.systems VALUES ('DiagnosticId', 'x5xrikiotffufxawscso75zwue'); +INSERT INTO public.systems VALUES ('LastSecurityTime', '1698320577245'); +INSERT INTO public.systems VALUES ('FirstServerRunTimestamp', '1698320577245'); +INSERT INTO public.systems VALUES ('AdvancedPermissionsMigrationComplete', 'true'); +INSERT INTO public.systems VALUES ('EmojisPermissionsMigrationComplete', 'true'); +INSERT INTO public.systems VALUES ('GuestRolesCreationMigrationComplete', 'true'); +INSERT INTO public.systems VALUES ('SystemConsoleRolesCreationMigrationComplete', 'true'); +INSERT INTO public.systems VALUES ('CustomGroupAdminRoleCreationMigrationComplete', 'true'); +INSERT INTO public.systems VALUES ('emoji_permissions_split', 'true'); +INSERT INTO public.systems VALUES ('webhook_permissions_split', 'true'); +INSERT INTO public.systems VALUES ('list_join_public_private_teams', 'true'); +INSERT INTO public.systems VALUES ('remove_permanent_delete_user', 'true'); +INSERT INTO public.systems VALUES ('add_bot_permissions', 'true'); +INSERT INTO public.systems VALUES ('apply_channel_manage_delete_to_channel_user', 'true'); +INSERT INTO public.systems VALUES ('remove_channel_manage_delete_from_team_user', 'true'); +INSERT INTO public.systems VALUES ('view_members_new_permission', 'true'); +INSERT INTO public.systems VALUES ('add_manage_guests_permissions', 'true'); +INSERT INTO public.systems VALUES ('channel_moderations_permissions', 'true'); +INSERT INTO public.systems VALUES ('add_use_group_mentions_permission', 'true'); +INSERT INTO public.systems VALUES ('add_system_console_permissions', 'true'); +INSERT INTO public.systems VALUES ('add_convert_channel_permissions', 'true'); +INSERT INTO public.systems VALUES ('manage_shared_channel_permissions', 'true'); +INSERT INTO public.systems VALUES ('manage_secure_connections_permissions', 'true'); +INSERT INTO public.systems VALUES ('add_system_roles_permissions', 'true'); +INSERT INTO public.systems VALUES ('add_billing_permissions', 'true'); +INSERT INTO public.systems VALUES ('download_compliance_export_results', 'true'); +INSERT INTO public.systems VALUES ('experimental_subsection_permissions', 'true'); +INSERT INTO public.systems VALUES ('authentication_subsection_permissions', 'true'); +INSERT INTO public.systems VALUES ('integrations_subsection_permissions', 'true'); +INSERT INTO public.systems VALUES ('site_subsection_permissions', 'true'); +INSERT INTO public.systems VALUES ('compliance_subsection_permissions', 'true'); +INSERT INTO public.systems VALUES ('environment_subsection_permissions', 'true'); +INSERT INTO public.systems VALUES ('about_subsection_permissions', 'true'); +INSERT INTO public.systems VALUES ('reporting_subsection_permissions', 'true'); +INSERT INTO public.systems VALUES ('test_email_ancillary_permission', 'true'); +INSERT INTO public.systems VALUES ('playbooks_permissions', 'true'); +INSERT INTO public.systems VALUES ('custom_groups_permissions', 'true'); +INSERT INTO public.systems VALUES ('playbooks_manage_roles', 'true'); +INSERT INTO public.systems VALUES ('products_boards', 'true'); +INSERT INTO public.systems VALUES ('custom_groups_permission_restore', 'true'); +INSERT INTO public.systems VALUES ('read_channel_content_permissions', 'true'); +INSERT INTO public.systems VALUES ('ContentExtractionConfigDefaultTrueMigrationComplete', 'true'); +INSERT INTO public.systems VALUES ('PlaybookRolesCreationMigrationComplete', 'true'); +INSERT INTO public.systems VALUES ('RemainingSchemaMigrations', 'true'); +INSERT INTO public.systems VALUES ('PostPriorityConfigDefaultTrueMigrationComplete', 'true'); +INSERT INTO public.systems VALUES ('PostActionCookieSecret', '{"key":"ixkFbhBo6vjg/slqcncUU4xI8QjzAUk62i5NrW5mShQ="}'); +INSERT INTO public.systems VALUES ('InstallationDate', '1698320582714'); +INSERT INTO public.systems VALUES ('migration_advanced_permissions_phase_2', 'true'); +INSERT INTO public.systems VALUES ('OrganizationName', 'Network To Code LLC'); +INSERT INTO public.systems VALUES ('FirstAdminSetupComplete', 'true'); + + +-- +-- Data for Name: teammembers; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.teammembers VALUES ('rkpuunm3rp8fffhzkjxw63usyc', '5md7bsji6pbijpxitu8bwezaqy', '', 0, true, true, false, 1698320784737); +INSERT INTO public.teammembers VALUES ('rkpuunm3rp8fffhzkjxw63usyc', 'w7uyhzuo7fnfueen6og9cxmn9h', '', 0, true, false, false, 1698321691864); + + +-- +-- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.teams VALUES ('rkpuunm3rp8fffhzkjxw63usyc', 1698320784707, 1698320784707, 0, 'Network To Code LLC', 'network-to-code-llc', '', 'admin@example.com', 'O', '', '', '68tc1nu46i8yif7w13qmndumih', '', false, 0, false, false); + + +-- +-- Data for Name: termsofservice; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: threadmemberships; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: threads; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: tokens; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: trueupreviewhistory; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: uploadsessions; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: useraccesstokens; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.useraccesstokens VALUES ('7xnejgyhj7nxtmq6t95iah7n7c', 'nsutx44ibbd69r5hjjmd3hx4sw', 'w7uyhzuo7fnfueen6og9cxmn9h', 'Default Token', true); + + +-- +-- Data for Name: usergroups; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + +INSERT INTO public.users VALUES ('jmcgoiar5brr9nx8s7g3394c8e', 1698320582714, 1698320582739, 0, 'feedbackbot', '', NULL, '', 'feedbackbot@localhost', false, '', 'Feedbackbot', '', 'system_user', false, '{}', '{"push": "mention", "email": "true", "channel": "true", "desktop": "mention", "comments": "never", "first_name": "false", "push_status": "away", "mention_keys": "", "push_threads": "all", "desktop_sound": "true", "email_threads": "all", "desktop_threads": "all"}', 1698320582714, 1698320582739, 0, 'en', false, '', '', '{"manualTimezone": "", "automaticTimezone": "", "useAutomaticTimezone": "true"}', NULL); +INSERT INTO public.users VALUES ('qicfanjtzbgsf8qh8zkosdq96e', 1698320583519, 1698320583519, 0, 'calls', '', NULL, '', 'calls@localhost', false, '', 'Calls', '', 'system_user', false, '{}', '{"push": "mention", "email": "true", "channel": "true", "desktop": "mention", "comments": "never", "first_name": "false", "push_status": "away", "mention_keys": "", "push_threads": "all", "desktop_sound": "true", "email_threads": "all", "desktop_threads": "all"}', 1698320583519, 0, 0, 'en', false, '', '', '{"manualTimezone": "", "automaticTimezone": "", "useAutomaticTimezone": "true"}', NULL); +INSERT INTO public.users VALUES ('5md7bsji6pbijpxitu8bwezaqy', 1698320750878, 1698320784745, 0, 'admin', '$2a$10$fXSIHTK.8qvMjMZV0dNbH.0ialIcCVDywEog0BpF.NgXIrO4muYIS', NULL, '', 'admin@example.com', false, '', '', '', 'system_admin system_user', false, '{}', '{"push": "mention", "email": "true", "channel": "true", "desktop": "mention", "comments": "never", "first_name": "false", "push_status": "away", "mention_keys": "", "push_threads": "all", "desktop_sound": "true", "email_threads": "all", "desktop_threads": "all"}', 1698320750878, 0, 0, 'en', false, '', '', '{"manualTimezone": "", "automaticTimezone": "", "useAutomaticTimezone": "true"}', NULL); +INSERT INTO public.users VALUES ('dnyqmp4u5tgetr9or6in55xobr', 1698321000002, 1698321000002, 0, 'system-bot', '', NULL, '', 'system-bot@localhost', false, '', 'System', '', 'system_user', false, '{}', '{"push": "mention", "email": "true", "channel": "true", "desktop": "mention", "comments": "never", "first_name": "false", "push_status": "away", "mention_keys": "", "push_threads": "all", "desktop_sound": "true", "email_threads": "all", "desktop_threads": "all"}', 1698321000002, 0, 0, 'en', false, '', '', '{"manualTimezone": "", "automaticTimezone": "", "useAutomaticTimezone": "true"}', NULL); +INSERT INTO public.users VALUES ('w7uyhzuo7fnfueen6og9cxmn9h', 1698321288273, 1698321691881, 0, 'nautobot', '', NULL, '', 'nautobot@localhost', false, '', 'Nautobot', '', 'system_user system_admin', false, '{}', '{"push": "mention", "email": "true", "channel": "true", "desktop": "mention", "comments": "never", "first_name": "false", "push_status": "away", "mention_keys": "", "push_threads": "all", "desktop_sound": "true", "email_threads": "all", "desktop_threads": "all"}', 1698321288273, -1698321288413, 0, 'en', false, '', '', '{"manualTimezone": "", "automaticTimezone": "", "useAutomaticTimezone": "true"}', NULL); +INSERT INTO public.users VALUES ('mt3fq81mrbbydrefss1h9zfxhw', 1698320583260, 1698324524015, 0, 'playbooks', '', NULL, '', 'playbooks@localhost', false, '', 'Playbooks', '', 'system_user', false, '{}', '{"push": "mention", "email": "true", "channel": "true", "desktop": "mention", "comments": "never", "first_name": "false", "push_status": "away", "mention_keys": "", "push_threads": "all", "desktop_sound": "true", "email_threads": "all", "desktop_threads": "all"}', 1698320583260, 1698324524015, 0, 'en', false, '', '', '{"manualTimezone": "", "automaticTimezone": "", "useAutomaticTimezone": "true"}', NULL); + + +-- +-- Data for Name: usertermsofservice; Type: TABLE DATA; Schema: public; Owner: mmuser +-- + + + +-- +-- Name: audits audits_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.audits + ADD CONSTRAINT audits_pkey PRIMARY KEY (id); + + +-- +-- Name: bots bots_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.bots + ADD CONSTRAINT bots_pkey PRIMARY KEY (userid); + + +-- +-- Name: channelmemberhistory channelmemberhistory_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.channelmemberhistory + ADD CONSTRAINT channelmemberhistory_pkey PRIMARY KEY (channelid, userid, jointime); + + +-- +-- Name: channelmembers channelmembers_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.channelmembers + ADD CONSTRAINT channelmembers_pkey PRIMARY KEY (channelid, userid); + + +-- +-- Name: channels channels_name_teamid_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.channels + ADD CONSTRAINT channels_name_teamid_key UNIQUE (name, teamid); + + +-- +-- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.channels + ADD CONSTRAINT channels_pkey PRIMARY KEY (id); + + +-- +-- Name: clusterdiscovery clusterdiscovery_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.clusterdiscovery + ADD CONSTRAINT clusterdiscovery_pkey PRIMARY KEY (id); + + +-- +-- Name: commands commands_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.commands + ADD CONSTRAINT commands_pkey PRIMARY KEY (id); + + +-- +-- Name: commandwebhooks commandwebhooks_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.commandwebhooks + ADD CONSTRAINT commandwebhooks_pkey PRIMARY KEY (id); + + +-- +-- Name: compliances compliances_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.compliances + ADD CONSTRAINT compliances_pkey PRIMARY KEY (id); + + +-- +-- Name: db_lock db_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.db_lock + ADD CONSTRAINT db_lock_pkey PRIMARY KEY (id); + + +-- +-- Name: db_migrations db_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.db_migrations + ADD CONSTRAINT db_migrations_pkey PRIMARY KEY (version); + + +-- +-- Name: drafts drafts_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.drafts + ADD CONSTRAINT drafts_pkey PRIMARY KEY (userid, channelid, rootid); + + +-- +-- Name: emoji emoji_name_deleteat_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.emoji + ADD CONSTRAINT emoji_name_deleteat_key UNIQUE (name, deleteat); + + +-- +-- Name: emoji emoji_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.emoji + ADD CONSTRAINT emoji_pkey PRIMARY KEY (id); + + +-- +-- Name: fileinfo fileinfo_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.fileinfo + ADD CONSTRAINT fileinfo_pkey PRIMARY KEY (id); + + +-- +-- Name: groupchannels groupchannels_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.groupchannels + ADD CONSTRAINT groupchannels_pkey PRIMARY KEY (groupid, channelid); + + +-- +-- Name: groupmembers groupmembers_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.groupmembers + ADD CONSTRAINT groupmembers_pkey PRIMARY KEY (groupid, userid); + + +-- +-- Name: groupteams groupteams_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.groupteams + ADD CONSTRAINT groupteams_pkey PRIMARY KEY (groupid, teamid); + + +-- +-- Name: incomingwebhooks incomingwebhooks_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.incomingwebhooks + ADD CONSTRAINT incomingwebhooks_pkey PRIMARY KEY (id); + + +-- +-- Name: ir_category_item ir_category_item_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_category_item + ADD CONSTRAINT ir_category_item_pkey PRIMARY KEY (categoryid, itemid, type); + + +-- +-- Name: ir_category ir_category_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_category + ADD CONSTRAINT ir_category_pkey PRIMARY KEY (id); + + +-- +-- Name: ir_channelaction ir_channelaction_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_channelaction + ADD CONSTRAINT ir_channelaction_pkey PRIMARY KEY (id); + + +-- +-- Name: ir_incident ir_incident_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_incident + ADD CONSTRAINT ir_incident_pkey PRIMARY KEY (id); + + +-- +-- Name: ir_metric ir_metric_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_metric + ADD CONSTRAINT ir_metric_pkey PRIMARY KEY (incidentid, metricconfigid); + + +-- +-- Name: ir_metricconfig ir_metricconfig_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_metricconfig + ADD CONSTRAINT ir_metricconfig_pkey PRIMARY KEY (id); + + +-- +-- Name: ir_playbook ir_playbook_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_playbook + ADD CONSTRAINT ir_playbook_pkey PRIMARY KEY (id); + + +-- +-- Name: ir_playbookautofollow ir_playbookautofollow_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_playbookautofollow + ADD CONSTRAINT ir_playbookautofollow_pkey PRIMARY KEY (playbookid, userid); + + +-- +-- Name: ir_playbookmember ir_playbookmember_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_playbookmember + ADD CONSTRAINT ir_playbookmember_pkey PRIMARY KEY (memberid, playbookid); + + +-- +-- Name: ir_playbookmember ir_playbookmember_playbookid_memberid_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_playbookmember + ADD CONSTRAINT ir_playbookmember_playbookid_memberid_key UNIQUE (playbookid, memberid); + + +-- +-- Name: ir_run_participants ir_run_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_run_participants + ADD CONSTRAINT ir_run_participants_pkey PRIMARY KEY (incidentid, userid); + + +-- +-- Name: ir_statusposts ir_statusposts_incidentid_postid_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_statusposts + ADD CONSTRAINT ir_statusposts_incidentid_postid_key UNIQUE (incidentid, postid); + + +-- +-- Name: ir_statusposts ir_statusposts_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_statusposts + ADD CONSTRAINT ir_statusposts_pkey PRIMARY KEY (incidentid, postid); + + +-- +-- Name: ir_system ir_system_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_system + ADD CONSTRAINT ir_system_pkey PRIMARY KEY (skey); + + +-- +-- Name: ir_timelineevent ir_timelineevent_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_timelineevent + ADD CONSTRAINT ir_timelineevent_pkey PRIMARY KEY (id); + + +-- +-- Name: ir_userinfo ir_userinfo_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_userinfo + ADD CONSTRAINT ir_userinfo_pkey PRIMARY KEY (id); + + +-- +-- Name: ir_viewedchannel ir_viewedchannel_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_viewedchannel + ADD CONSTRAINT ir_viewedchannel_pkey PRIMARY KEY (channelid, userid); + + +-- +-- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.jobs + ADD CONSTRAINT jobs_pkey PRIMARY KEY (id); + + +-- +-- Name: licenses licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.licenses + ADD CONSTRAINT licenses_pkey PRIMARY KEY (id); + + +-- +-- Name: linkmetadata linkmetadata_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.linkmetadata + ADD CONSTRAINT linkmetadata_pkey PRIMARY KEY (hash); + + +-- +-- Name: notifyadmin notifyadmin_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.notifyadmin + ADD CONSTRAINT notifyadmin_pkey PRIMARY KEY (userid, requiredfeature, requiredplan); + + +-- +-- Name: oauthaccessdata oauthaccessdata_clientid_userid_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.oauthaccessdata + ADD CONSTRAINT oauthaccessdata_clientid_userid_key UNIQUE (clientid, userid); + + +-- +-- Name: oauthaccessdata oauthaccessdata_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.oauthaccessdata + ADD CONSTRAINT oauthaccessdata_pkey PRIMARY KEY (token); + + +-- +-- Name: oauthapps oauthapps_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.oauthapps + ADD CONSTRAINT oauthapps_pkey PRIMARY KEY (id); + + +-- +-- Name: oauthauthdata oauthauthdata_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.oauthauthdata + ADD CONSTRAINT oauthauthdata_pkey PRIMARY KEY (code); + + +-- +-- Name: outgoingwebhooks outgoingwebhooks_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.outgoingwebhooks + ADD CONSTRAINT outgoingwebhooks_pkey PRIMARY KEY (id); + + +-- +-- Name: persistentnotifications persistentnotifications_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.persistentnotifications + ADD CONSTRAINT persistentnotifications_pkey PRIMARY KEY (postid); + + +-- +-- Name: pluginkeyvaluestore pluginkeyvaluestore_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.pluginkeyvaluestore + ADD CONSTRAINT pluginkeyvaluestore_pkey PRIMARY KEY (pluginid, pkey); + + +-- +-- Name: postacknowledgements postacknowledgements_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.postacknowledgements + ADD CONSTRAINT postacknowledgements_pkey PRIMARY KEY (postid, userid); + + +-- +-- Name: postreminders postreminders_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.postreminders + ADD CONSTRAINT postreminders_pkey PRIMARY KEY (postid, userid); + + +-- +-- Name: posts posts_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.posts + ADD CONSTRAINT posts_pkey PRIMARY KEY (id); + + +-- +-- Name: postspriority postspriority_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.postspriority + ADD CONSTRAINT postspriority_pkey PRIMARY KEY (postid); + + +-- +-- Name: preferences preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.preferences + ADD CONSTRAINT preferences_pkey PRIMARY KEY (userid, category, name); + + +-- +-- Name: productnoticeviewstate productnoticeviewstate_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.productnoticeviewstate + ADD CONSTRAINT productnoticeviewstate_pkey PRIMARY KEY (userid, noticeid); + + +-- +-- Name: publicchannels publicchannels_name_teamid_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.publicchannels + ADD CONSTRAINT publicchannels_name_teamid_key UNIQUE (name, teamid); + + +-- +-- Name: publicchannels publicchannels_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.publicchannels + ADD CONSTRAINT publicchannels_pkey PRIMARY KEY (id); + + +-- +-- Name: reactions reactions_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.reactions + ADD CONSTRAINT reactions_pkey PRIMARY KEY (postid, userid, emojiname); + + +-- +-- Name: recentsearches recentsearches_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.recentsearches + ADD CONSTRAINT recentsearches_pkey PRIMARY KEY (userid, searchpointer); + + +-- +-- Name: remoteclusters remoteclusters_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.remoteclusters + ADD CONSTRAINT remoteclusters_pkey PRIMARY KEY (remoteid, name); + + +-- +-- Name: retentionpolicies retentionpolicies_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.retentionpolicies + ADD CONSTRAINT retentionpolicies_pkey PRIMARY KEY (id); + + +-- +-- Name: retentionpolicieschannels retentionpolicieschannels_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.retentionpolicieschannels + ADD CONSTRAINT retentionpolicieschannels_pkey PRIMARY KEY (channelid); + + +-- +-- Name: retentionpoliciesteams retentionpoliciesteams_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.retentionpoliciesteams + ADD CONSTRAINT retentionpoliciesteams_pkey PRIMARY KEY (teamid); + + +-- +-- Name: roles roles_name_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.roles + ADD CONSTRAINT roles_name_key UNIQUE (name); + + +-- +-- Name: roles roles_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.roles + ADD CONSTRAINT roles_pkey PRIMARY KEY (id); + + +-- +-- Name: schemes schemes_name_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.schemes + ADD CONSTRAINT schemes_name_key UNIQUE (name); + + +-- +-- Name: schemes schemes_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.schemes + ADD CONSTRAINT schemes_pkey PRIMARY KEY (id); + + +-- +-- Name: sessions sessions_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sessions + ADD CONSTRAINT sessions_pkey PRIMARY KEY (id); + + +-- +-- Name: sharedchannelattachments sharedchannelattachments_fileid_remoteid_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sharedchannelattachments + ADD CONSTRAINT sharedchannelattachments_fileid_remoteid_key UNIQUE (fileid, remoteid); + + +-- +-- Name: sharedchannelattachments sharedchannelattachments_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sharedchannelattachments + ADD CONSTRAINT sharedchannelattachments_pkey PRIMARY KEY (id); + + +-- +-- Name: sharedchannelremotes sharedchannelremotes_channelid_remoteid_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sharedchannelremotes + ADD CONSTRAINT sharedchannelremotes_channelid_remoteid_key UNIQUE (channelid, remoteid); + + +-- +-- Name: sharedchannelremotes sharedchannelremotes_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sharedchannelremotes + ADD CONSTRAINT sharedchannelremotes_pkey PRIMARY KEY (id, channelid); + + +-- +-- Name: sharedchannels sharedchannels_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sharedchannels + ADD CONSTRAINT sharedchannels_pkey PRIMARY KEY (channelid); + + +-- +-- Name: sharedchannels sharedchannels_sharename_teamid_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sharedchannels + ADD CONSTRAINT sharedchannels_sharename_teamid_key UNIQUE (sharename, teamid); + + +-- +-- Name: sharedchannelusers sharedchannelusers_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sharedchannelusers + ADD CONSTRAINT sharedchannelusers_pkey PRIMARY KEY (id); + + +-- +-- Name: sharedchannelusers sharedchannelusers_userid_channelid_remoteid_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sharedchannelusers + ADD CONSTRAINT sharedchannelusers_userid_channelid_remoteid_key UNIQUE (userid, channelid, remoteid); + + +-- +-- Name: sidebarcategories sidebarcategories_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sidebarcategories + ADD CONSTRAINT sidebarcategories_pkey PRIMARY KEY (id); + + +-- +-- Name: sidebarchannels sidebarchannels_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.sidebarchannels + ADD CONSTRAINT sidebarchannels_pkey PRIMARY KEY (channelid, userid, categoryid); + + +-- +-- Name: status status_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.status + ADD CONSTRAINT status_pkey PRIMARY KEY (userid); + + +-- +-- Name: systems systems_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.systems + ADD CONSTRAINT systems_pkey PRIMARY KEY (name); + + +-- +-- Name: teammembers teammembers_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.teammembers + ADD CONSTRAINT teammembers_pkey PRIMARY KEY (teamid, userid); + + +-- +-- Name: teams teams_name_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.teams + ADD CONSTRAINT teams_name_key UNIQUE (name); + + +-- +-- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.teams + ADD CONSTRAINT teams_pkey PRIMARY KEY (id); + + +-- +-- Name: termsofservice termsofservice_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.termsofservice + ADD CONSTRAINT termsofservice_pkey PRIMARY KEY (id); + + +-- +-- Name: threadmemberships threadmemberships_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.threadmemberships + ADD CONSTRAINT threadmemberships_pkey PRIMARY KEY (postid, userid); + + +-- +-- Name: threads threads_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.threads + ADD CONSTRAINT threads_pkey PRIMARY KEY (postid); + + +-- +-- Name: tokens tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.tokens + ADD CONSTRAINT tokens_pkey PRIMARY KEY (token); + + +-- +-- Name: trueupreviewhistory trueupreviewhistory_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.trueupreviewhistory + ADD CONSTRAINT trueupreviewhistory_pkey PRIMARY KEY (duedate); + + +-- +-- Name: uploadsessions uploadsessions_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.uploadsessions + ADD CONSTRAINT uploadsessions_pkey PRIMARY KEY (id); + + +-- +-- Name: useraccesstokens useraccesstokens_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.useraccesstokens + ADD CONSTRAINT useraccesstokens_pkey PRIMARY KEY (id); + + +-- +-- Name: useraccesstokens useraccesstokens_token_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.useraccesstokens + ADD CONSTRAINT useraccesstokens_token_key UNIQUE (token); + + +-- +-- Name: usergroups usergroups_name_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.usergroups + ADD CONSTRAINT usergroups_name_key UNIQUE (name); + + +-- +-- Name: usergroups usergroups_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.usergroups + ADD CONSTRAINT usergroups_pkey PRIMARY KEY (id); + + +-- +-- Name: usergroups usergroups_source_remoteid_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.usergroups + ADD CONSTRAINT usergroups_source_remoteid_key UNIQUE (source, remoteid); + + +-- +-- Name: users users_authdata_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.users + ADD CONSTRAINT users_authdata_key UNIQUE (authdata); + + +-- +-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.users + ADD CONSTRAINT users_email_key UNIQUE (email); + + +-- +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.users + ADD CONSTRAINT users_pkey PRIMARY KEY (id); + + +-- +-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.users + ADD CONSTRAINT users_username_key UNIQUE (username); + + +-- +-- Name: usertermsofservice usertermsofservice_pkey; Type: CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.usertermsofservice + ADD CONSTRAINT usertermsofservice_pkey PRIMARY KEY (userid); + + +-- +-- Name: idx_audits_user_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_audits_user_id ON public.audits USING btree (userid); + + +-- +-- Name: idx_channel_search_txt; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channel_search_txt ON public.channels USING gin (to_tsvector('english'::regconfig, (((((name)::text || ' '::text) || (displayname)::text) || ' '::text) || (purpose)::text))); + + +-- +-- Name: idx_channelmembers_channel_id_scheme_guest_user_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channelmembers_channel_id_scheme_guest_user_id ON public.channelmembers USING btree (channelid, schemeguest, userid); + + +-- +-- Name: idx_channelmembers_user_id_channel_id_last_viewed_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channelmembers_user_id_channel_id_last_viewed_at ON public.channelmembers USING btree (userid, channelid, lastviewedat); + + +-- +-- Name: idx_channels_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channels_create_at ON public.channels USING btree (createat); + + +-- +-- Name: idx_channels_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channels_delete_at ON public.channels USING btree (deleteat); + + +-- +-- Name: idx_channels_displayname_lower; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channels_displayname_lower ON public.channels USING btree (lower((displayname)::text)); + + +-- +-- Name: idx_channels_name_lower; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channels_name_lower ON public.channels USING btree (lower((name)::text)); + + +-- +-- Name: idx_channels_scheme_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channels_scheme_id ON public.channels USING btree (schemeid); + + +-- +-- Name: idx_channels_team_id_display_name; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channels_team_id_display_name ON public.channels USING btree (teamid, displayname); + + +-- +-- Name: idx_channels_team_id_type; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channels_team_id_type ON public.channels USING btree (teamid, type); + + +-- +-- Name: idx_channels_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_channels_update_at ON public.channels USING btree (updateat); + + +-- +-- Name: idx_command_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_command_create_at ON public.commands USING btree (createat); + + +-- +-- Name: idx_command_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_command_delete_at ON public.commands USING btree (deleteat); + + +-- +-- Name: idx_command_team_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_command_team_id ON public.commands USING btree (teamid); + + +-- +-- Name: idx_command_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_command_update_at ON public.commands USING btree (updateat); + + +-- +-- Name: idx_command_webhook_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_command_webhook_create_at ON public.commandwebhooks USING btree (createat); + + +-- +-- Name: idx_emoji_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_emoji_create_at ON public.emoji USING btree (createat); + + +-- +-- Name: idx_emoji_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_emoji_delete_at ON public.emoji USING btree (deleteat); + + +-- +-- Name: idx_emoji_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_emoji_update_at ON public.emoji USING btree (updateat); + + +-- +-- Name: idx_fileinfo_channel_id_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_fileinfo_channel_id_create_at ON public.fileinfo USING btree (channelid, createat); + + +-- +-- Name: idx_fileinfo_content_txt; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_fileinfo_content_txt ON public.fileinfo USING gin (to_tsvector('english'::regconfig, content)); + + +-- +-- Name: idx_fileinfo_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_fileinfo_create_at ON public.fileinfo USING btree (createat); + + +-- +-- Name: idx_fileinfo_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_fileinfo_delete_at ON public.fileinfo USING btree (deleteat); + + +-- +-- Name: idx_fileinfo_extension_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_fileinfo_extension_at ON public.fileinfo USING btree (extension); + + +-- +-- Name: idx_fileinfo_name_splitted; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_fileinfo_name_splitted ON public.fileinfo USING gin (to_tsvector('english'::regconfig, translate((name)::text, '.,-'::text, ' '::text))); + + +-- +-- Name: idx_fileinfo_name_txt; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_fileinfo_name_txt ON public.fileinfo USING gin (to_tsvector('english'::regconfig, (name)::text)); + + +-- +-- Name: idx_fileinfo_postid_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_fileinfo_postid_at ON public.fileinfo USING btree (postid); + + +-- +-- Name: idx_fileinfo_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_fileinfo_update_at ON public.fileinfo USING btree (updateat); + + +-- +-- Name: idx_groupchannels_channelid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_groupchannels_channelid ON public.groupchannels USING btree (channelid); + + +-- +-- Name: idx_groupchannels_schemeadmin; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_groupchannels_schemeadmin ON public.groupchannels USING btree (schemeadmin); + + +-- +-- Name: idx_groupmembers_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_groupmembers_create_at ON public.groupmembers USING btree (createat); + + +-- +-- Name: idx_groupteams_schemeadmin; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_groupteams_schemeadmin ON public.groupteams USING btree (schemeadmin); + + +-- +-- Name: idx_groupteams_teamid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_groupteams_teamid ON public.groupteams USING btree (teamid); + + +-- +-- Name: idx_incoming_webhook_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_incoming_webhook_create_at ON public.incomingwebhooks USING btree (createat); + + +-- +-- Name: idx_incoming_webhook_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_incoming_webhook_delete_at ON public.incomingwebhooks USING btree (deleteat); + + +-- +-- Name: idx_incoming_webhook_team_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_incoming_webhook_team_id ON public.incomingwebhooks USING btree (teamid); + + +-- +-- Name: idx_incoming_webhook_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_incoming_webhook_update_at ON public.incomingwebhooks USING btree (updateat); + + +-- +-- Name: idx_incoming_webhook_user_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_incoming_webhook_user_id ON public.incomingwebhooks USING btree (userid); + + +-- +-- Name: idx_jobs_status_type; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_jobs_status_type ON public.jobs USING btree (status, type); + + +-- +-- Name: idx_jobs_type; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_jobs_type ON public.jobs USING btree (type); + + +-- +-- Name: idx_link_metadata_url_timestamp; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_link_metadata_url_timestamp ON public.linkmetadata USING btree (url, "timestamp"); + + +-- +-- Name: idx_notice_views_notice_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_notice_views_notice_id ON public.productnoticeviewstate USING btree (noticeid); + + +-- +-- Name: idx_notice_views_timestamp; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_notice_views_timestamp ON public.productnoticeviewstate USING btree ("timestamp"); + + +-- +-- Name: idx_oauthaccessdata_refresh_token; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_oauthaccessdata_refresh_token ON public.oauthaccessdata USING btree (refreshtoken); + + +-- +-- Name: idx_oauthaccessdata_user_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_oauthaccessdata_user_id ON public.oauthaccessdata USING btree (userid); + + +-- +-- Name: idx_oauthapps_creator_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_oauthapps_creator_id ON public.oauthapps USING btree (creatorid); + + +-- +-- Name: idx_outgoing_webhook_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_outgoing_webhook_create_at ON public.outgoingwebhooks USING btree (createat); + + +-- +-- Name: idx_outgoing_webhook_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_outgoing_webhook_delete_at ON public.outgoingwebhooks USING btree (deleteat); + + +-- +-- Name: idx_outgoing_webhook_team_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_outgoing_webhook_team_id ON public.outgoingwebhooks USING btree (teamid); + + +-- +-- Name: idx_outgoing_webhook_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_outgoing_webhook_update_at ON public.outgoingwebhooks USING btree (updateat); + + +-- +-- Name: idx_postreminders_targettime; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_postreminders_targettime ON public.postreminders USING btree (targettime); + + +-- +-- Name: idx_posts_channel_id_delete_at_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_channel_id_delete_at_create_at ON public.posts USING btree (channelid, deleteat, createat); + + +-- +-- Name: idx_posts_channel_id_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_channel_id_update_at ON public.posts USING btree (channelid, updateat); + + +-- +-- Name: idx_posts_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_create_at ON public.posts USING btree (createat); + + +-- +-- Name: idx_posts_create_at_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_create_at_id ON public.posts USING btree (createat, id); + + +-- +-- Name: idx_posts_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_delete_at ON public.posts USING btree (deleteat); + + +-- +-- Name: idx_posts_hashtags_txt; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_hashtags_txt ON public.posts USING gin (to_tsvector('english'::regconfig, (hashtags)::text)); + + +-- +-- Name: idx_posts_is_pinned; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_is_pinned ON public.posts USING btree (ispinned); + + +-- +-- Name: idx_posts_message_txt; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_message_txt ON public.posts USING gin (to_tsvector('english'::regconfig, (message)::text)); + + +-- +-- Name: idx_posts_original_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_original_id ON public.posts USING btree (originalid); + + +-- +-- Name: idx_posts_root_id_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_root_id_delete_at ON public.posts USING btree (rootid, deleteat); + + +-- +-- Name: idx_posts_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_update_at ON public.posts USING btree (updateat); + + +-- +-- Name: idx_posts_user_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_posts_user_id ON public.posts USING btree (userid); + + +-- +-- Name: idx_preferences_category; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_preferences_category ON public.preferences USING btree (category); + + +-- +-- Name: idx_preferences_name; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_preferences_name ON public.preferences USING btree (name); + + +-- +-- Name: idx_publicchannels_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_publicchannels_delete_at ON public.publicchannels USING btree (deleteat); + + +-- +-- Name: idx_publicchannels_displayname_lower; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_publicchannels_displayname_lower ON public.publicchannels USING btree (lower((displayname)::text)); + + +-- +-- Name: idx_publicchannels_name_lower; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_publicchannels_name_lower ON public.publicchannels USING btree (lower((name)::text)); + + +-- +-- Name: idx_publicchannels_search_txt; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_publicchannels_search_txt ON public.publicchannels USING gin (to_tsvector('english'::regconfig, (((((name)::text || ' '::text) || (displayname)::text) || ' '::text) || (purpose)::text))); + + +-- +-- Name: idx_publicchannels_team_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_publicchannels_team_id ON public.publicchannels USING btree (teamid); + + +-- +-- Name: idx_reactions_channel_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_reactions_channel_id ON public.reactions USING btree (channelid); + + +-- +-- Name: idx_retentionpolicies_displayname; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_retentionpolicies_displayname ON public.retentionpolicies USING btree (displayname); + + +-- +-- Name: idx_retentionpolicieschannels_policyid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_retentionpolicieschannels_policyid ON public.retentionpolicieschannels USING btree (policyid); + + +-- +-- Name: idx_retentionpoliciesteams_policyid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_retentionpoliciesteams_policyid ON public.retentionpoliciesteams USING btree (policyid); + + +-- +-- Name: idx_schemes_channel_admin_role; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_schemes_channel_admin_role ON public.schemes USING btree (defaultchanneladminrole); + + +-- +-- Name: idx_schemes_channel_guest_role; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_schemes_channel_guest_role ON public.schemes USING btree (defaultchannelguestrole); + + +-- +-- Name: idx_schemes_channel_user_role; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_schemes_channel_user_role ON public.schemes USING btree (defaultchanneluserrole); + + +-- +-- Name: idx_sessions_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_sessions_create_at ON public.sessions USING btree (createat); + + +-- +-- Name: idx_sessions_expires_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_sessions_expires_at ON public.sessions USING btree (expiresat); + + +-- +-- Name: idx_sessions_last_activity_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_sessions_last_activity_at ON public.sessions USING btree (lastactivityat); + + +-- +-- Name: idx_sessions_token; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_sessions_token ON public.sessions USING btree (token); + + +-- +-- Name: idx_sessions_user_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_sessions_user_id ON public.sessions USING btree (userid); + + +-- +-- Name: idx_sharedchannelusers_remote_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_sharedchannelusers_remote_id ON public.sharedchannelusers USING btree (remoteid); + + +-- +-- Name: idx_sidebarcategories_userid_teamid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_sidebarcategories_userid_teamid ON public.sidebarcategories USING btree (userid, teamid); + + +-- +-- Name: idx_status_status_dndendtime; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_status_status_dndendtime ON public.status USING btree (status, dndendtime); + + +-- +-- Name: idx_teammembers_createat; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_teammembers_createat ON public.teammembers USING btree (createat); + + +-- +-- Name: idx_teammembers_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_teammembers_delete_at ON public.teammembers USING btree (deleteat); + + +-- +-- Name: idx_teammembers_user_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_teammembers_user_id ON public.teammembers USING btree (userid); + + +-- +-- Name: idx_teams_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_teams_create_at ON public.teams USING btree (createat); + + +-- +-- Name: idx_teams_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_teams_delete_at ON public.teams USING btree (deleteat); + + +-- +-- Name: idx_teams_invite_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_teams_invite_id ON public.teams USING btree (inviteid); + + +-- +-- Name: idx_teams_scheme_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_teams_scheme_id ON public.teams USING btree (schemeid); + + +-- +-- Name: idx_teams_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_teams_update_at ON public.teams USING btree (updateat); + + +-- +-- Name: idx_thread_memberships_last_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_thread_memberships_last_update_at ON public.threadmemberships USING btree (lastupdated); + + +-- +-- Name: idx_thread_memberships_last_view_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_thread_memberships_last_view_at ON public.threadmemberships USING btree (lastviewed); + + +-- +-- Name: idx_thread_memberships_user_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_thread_memberships_user_id ON public.threadmemberships USING btree (userid); + + +-- +-- Name: idx_threads_channel_id_last_reply_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_threads_channel_id_last_reply_at ON public.threads USING btree (channelid, lastreplyat); + + +-- +-- Name: idx_uploadsessions_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_uploadsessions_create_at ON public.uploadsessions USING btree (createat); + + +-- +-- Name: idx_uploadsessions_type; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_uploadsessions_type ON public.uploadsessions USING btree (type); + + +-- +-- Name: idx_uploadsessions_user_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_uploadsessions_user_id ON public.uploadsessions USING btree (userid); + + +-- +-- Name: idx_user_access_tokens_user_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_user_access_tokens_user_id ON public.useraccesstokens USING btree (userid); + + +-- +-- Name: idx_usergroups_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_usergroups_delete_at ON public.usergroups USING btree (deleteat); + + +-- +-- Name: idx_usergroups_displayname; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_usergroups_displayname ON public.usergroups USING btree (displayname); + + +-- +-- Name: idx_usergroups_remote_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_usergroups_remote_id ON public.usergroups USING btree (remoteid); + + +-- +-- Name: idx_users_all_no_full_name_txt; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_all_no_full_name_txt ON public.users USING gin (to_tsvector('english'::regconfig, (((((username)::text || ' '::text) || (nickname)::text) || ' '::text) || (email)::text))); + + +-- +-- Name: idx_users_all_txt; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_all_txt ON public.users USING gin (to_tsvector('english'::regconfig, (((((((((username)::text || ' '::text) || (firstname)::text) || ' '::text) || (lastname)::text) || ' '::text) || (nickname)::text) || ' '::text) || (email)::text))); + + +-- +-- Name: idx_users_create_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_create_at ON public.users USING btree (createat); + + +-- +-- Name: idx_users_delete_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_delete_at ON public.users USING btree (deleteat); + + +-- +-- Name: idx_users_email_lower_textpattern; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_email_lower_textpattern ON public.users USING btree (lower((email)::text) text_pattern_ops); + + +-- +-- Name: idx_users_firstname_lower_textpattern; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_firstname_lower_textpattern ON public.users USING btree (lower((firstname)::text) text_pattern_ops); + + +-- +-- Name: idx_users_lastname_lower_textpattern; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_lastname_lower_textpattern ON public.users USING btree (lower((lastname)::text) text_pattern_ops); + + +-- +-- Name: idx_users_names_no_full_name_txt; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_names_no_full_name_txt ON public.users USING gin (to_tsvector('english'::regconfig, (((username)::text || ' '::text) || (nickname)::text))); + + +-- +-- Name: idx_users_names_txt; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_names_txt ON public.users USING gin (to_tsvector('english'::regconfig, (((((((username)::text || ' '::text) || (firstname)::text) || ' '::text) || (lastname)::text) || ' '::text) || (nickname)::text))); + + +-- +-- Name: idx_users_nickname_lower_textpattern; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_nickname_lower_textpattern ON public.users USING btree (lower((nickname)::text) text_pattern_ops); + + +-- +-- Name: idx_users_update_at; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_update_at ON public.users USING btree (updateat); + + +-- +-- Name: idx_users_username_lower_textpattern; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX idx_users_username_lower_textpattern ON public.users USING btree (lower((username)::text) text_pattern_ops); + + +-- +-- Name: ir_category_item_categoryid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_category_item_categoryid ON public.ir_category_item USING btree (categoryid); + + +-- +-- Name: ir_category_teamid_userid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_category_teamid_userid ON public.ir_category USING btree (teamid, userid); + + +-- +-- Name: ir_channelaction_channelid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_channelaction_channelid ON public.ir_channelaction USING btree (channelid); + + +-- +-- Name: ir_incident_channelid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_incident_channelid ON public.ir_incident USING btree (channelid); + + +-- +-- Name: ir_incident_teamid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_incident_teamid ON public.ir_incident USING btree (teamid); + + +-- +-- Name: ir_incident_teamid_commanderuserid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_incident_teamid_commanderuserid ON public.ir_incident USING btree (teamid, commanderuserid); + + +-- +-- Name: ir_metric_incidentid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_metric_incidentid ON public.ir_metric USING btree (incidentid); + + +-- +-- Name: ir_metric_metricconfigid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_metric_metricconfigid ON public.ir_metric USING btree (metricconfigid); + + +-- +-- Name: ir_metricconfig_playbookid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_metricconfig_playbookid ON public.ir_metricconfig USING btree (playbookid); + + +-- +-- Name: ir_playbook_teamid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_playbook_teamid ON public.ir_playbook USING btree (teamid); + + +-- +-- Name: ir_playbook_updateat; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_playbook_updateat ON public.ir_playbook USING btree (updateat); + + +-- +-- Name: ir_playbookmember_memberid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_playbookmember_memberid ON public.ir_playbookmember USING btree (memberid); + + +-- +-- Name: ir_playbookmember_playbookid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_playbookmember_playbookid ON public.ir_playbookmember USING btree (playbookid); + + +-- +-- Name: ir_run_participants_incidentid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_run_participants_incidentid ON public.ir_run_participants USING btree (incidentid); + + +-- +-- Name: ir_run_participants_userid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_run_participants_userid ON public.ir_run_participants USING btree (userid); + + +-- +-- Name: ir_statusposts_incidentid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_statusposts_incidentid ON public.ir_statusposts USING btree (incidentid); + + +-- +-- Name: ir_statusposts_postid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_statusposts_postid ON public.ir_statusposts USING btree (postid); + + +-- +-- Name: ir_timelineevent_id; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_timelineevent_id ON public.ir_timelineevent USING btree (id); + + +-- +-- Name: ir_timelineevent_incidentid; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE INDEX ir_timelineevent_incidentid ON public.ir_timelineevent USING btree (incidentid); + + +-- +-- Name: remote_clusters_site_url_unique; Type: INDEX; Schema: public; Owner: mmuser +-- + +CREATE UNIQUE INDEX remote_clusters_site_url_unique ON public.remoteclusters USING btree (siteurl, remoteteamid); + + +-- +-- Name: retentionpolicieschannels fk_retentionpolicieschannels_retentionpolicies; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.retentionpolicieschannels + ADD CONSTRAINT fk_retentionpolicieschannels_retentionpolicies FOREIGN KEY (policyid) REFERENCES public.retentionpolicies(id) ON DELETE CASCADE; + + +-- +-- Name: retentionpoliciesteams fk_retentionpoliciesteams_retentionpolicies; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.retentionpoliciesteams + ADD CONSTRAINT fk_retentionpoliciesteams_retentionpolicies FOREIGN KEY (policyid) REFERENCES public.retentionpolicies(id) ON DELETE CASCADE; + + +-- +-- Name: ir_category_item ir_category_item_categoryid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_category_item + ADD CONSTRAINT ir_category_item_categoryid_fkey FOREIGN KEY (categoryid) REFERENCES public.ir_category(id); + + +-- +-- Name: ir_metric ir_metric_incidentid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_metric + ADD CONSTRAINT ir_metric_incidentid_fkey FOREIGN KEY (incidentid) REFERENCES public.ir_incident(id); + + +-- +-- Name: ir_metric ir_metric_metricconfigid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_metric + ADD CONSTRAINT ir_metric_metricconfigid_fkey FOREIGN KEY (metricconfigid) REFERENCES public.ir_metricconfig(id); + + +-- +-- Name: ir_metricconfig ir_metricconfig_playbookid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_metricconfig + ADD CONSTRAINT ir_metricconfig_playbookid_fkey FOREIGN KEY (playbookid) REFERENCES public.ir_playbook(id); + + +-- +-- Name: ir_playbookautofollow ir_playbookautofollow_playbookid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_playbookautofollow + ADD CONSTRAINT ir_playbookautofollow_playbookid_fkey FOREIGN KEY (playbookid) REFERENCES public.ir_playbook(id); + + +-- +-- Name: ir_playbookmember ir_playbookmember_playbookid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_playbookmember + ADD CONSTRAINT ir_playbookmember_playbookid_fkey FOREIGN KEY (playbookid) REFERENCES public.ir_playbook(id); + + +-- +-- Name: ir_run_participants ir_run_participants_incidentid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_run_participants + ADD CONSTRAINT ir_run_participants_incidentid_fkey FOREIGN KEY (incidentid) REFERENCES public.ir_incident(id); + + +-- +-- Name: ir_statusposts ir_statusposts_incidentid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_statusposts + ADD CONSTRAINT ir_statusposts_incidentid_fkey FOREIGN KEY (incidentid) REFERENCES public.ir_incident(id); + + +-- +-- Name: ir_timelineevent ir_timelineevent_incidentid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: mmuser +-- + +ALTER TABLE ONLY public.ir_timelineevent + ADD CONSTRAINT ir_timelineevent_incidentid_fkey FOREIGN KEY (incidentid) REFERENCES public.ir_incident(id); + + +-- +-- PostgreSQL database dump complete +-- -/*!40000 DROP DATABASE IF EXISTS `mattermost_test`*/; - -CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mattermost_test` /*!40100 DEFAULT CHARACTER SET latin1 */; - -USE `mattermost_test`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Audits` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `Action` text, - `ExtraInfo` text, - `IpAddress` varchar(64) DEFAULT NULL, - `SessionId` varchar(26) DEFAULT NULL, - PRIMARY KEY (`Id`), - KEY `idx_audits_user_id` (`UserId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Bots` ( - `UserId` varchar(26) NOT NULL, - `Description` text, - `OwnerId` varchar(190) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `LastIconUpdate` bigint(20) DEFAULT NULL, - PRIMARY KEY (`UserId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `ChannelMemberHistory` ( - `ChannelId` varchar(26) NOT NULL, - `UserId` varchar(26) NOT NULL, - `JoinTime` bigint(20) NOT NULL, - `LeaveTime` bigint(20) DEFAULT NULL, - PRIMARY KEY (`ChannelId`,`UserId`,`JoinTime`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `ChannelMembers` ( - `ChannelId` varchar(26) NOT NULL, - `UserId` varchar(26) NOT NULL, - `Roles` text, - `LastViewedAt` bigint(20) DEFAULT NULL, - `MsgCount` bigint(20) DEFAULT NULL, - `MentionCount` bigint(20) DEFAULT NULL, - `NotifyProps` json DEFAULT NULL, - `LastUpdateAt` bigint(20) DEFAULT NULL, - `SchemeUser` tinyint(4) DEFAULT NULL, - `SchemeAdmin` tinyint(4) DEFAULT NULL, - `SchemeGuest` tinyint(4) DEFAULT NULL, - `MentionCountRoot` bigint(20) DEFAULT NULL, - `MsgCountRoot` bigint(20) DEFAULT NULL, - `UrgentMentionCount` bigint(20) DEFAULT NULL, - PRIMARY KEY (`ChannelId`,`UserId`), - KEY `idx_channelmembers_user_id_channel_id_last_viewed_at` (`UserId`,`ChannelId`,`LastViewedAt`), - KEY `idx_channelmembers_channel_id_scheme_guest_user_id` (`ChannelId`,`SchemeGuest`,`UserId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Channels` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `TeamId` varchar(26) DEFAULT NULL, - `Type` enum('D','O','G','P') DEFAULT NULL, - `DisplayName` varchar(64) DEFAULT NULL, - `Name` varchar(64) DEFAULT NULL, - `Header` text, - `Purpose` varchar(250) DEFAULT NULL, - `LastPostAt` bigint(20) DEFAULT NULL, - `TotalMsgCount` bigint(20) DEFAULT NULL, - `ExtraUpdateAt` bigint(20) DEFAULT NULL, - `CreatorId` varchar(26) DEFAULT NULL, - `SchemeId` varchar(26) DEFAULT NULL, - `GroupConstrained` tinyint(1) DEFAULT NULL, - `Shared` tinyint(1) DEFAULT NULL, - `TotalMsgCountRoot` bigint(20) DEFAULT NULL, - `LastRootPostAt` bigint(20) DEFAULT '0', - PRIMARY KEY (`Id`), - UNIQUE KEY `Name` (`Name`,`TeamId`), - KEY `idx_channels_update_at` (`UpdateAt`), - KEY `idx_channels_create_at` (`CreateAt`), - KEY `idx_channels_delete_at` (`DeleteAt`), - KEY `idx_channels_scheme_id` (`SchemeId`), - KEY `idx_channels_team_id_display_name` (`TeamId`,`DisplayName`), - KEY `idx_channels_team_id_type` (`TeamId`,`Type`), - FULLTEXT KEY `idx_channel_search_txt` (`Name`,`DisplayName`,`Purpose`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `ClusterDiscovery` ( - `Id` varchar(26) NOT NULL, - `Type` varchar(64) DEFAULT NULL, - `ClusterName` varchar(64) DEFAULT NULL, - `Hostname` text, - `GossipPort` int(11) DEFAULT NULL, - `Port` int(11) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `LastPingAt` bigint(20) DEFAULT NULL, - PRIMARY KEY (`Id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `CommandWebhooks` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `CommandId` varchar(26) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `ChannelId` varchar(26) DEFAULT NULL, - `RootId` varchar(26) DEFAULT NULL, - `UseCount` int(11) DEFAULT NULL, - PRIMARY KEY (`Id`), - KEY `idx_command_webhook_create_at` (`CreateAt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Commands` ( - `Id` varchar(26) NOT NULL, - `Token` varchar(26) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `CreatorId` varchar(26) DEFAULT NULL, - `TeamId` varchar(26) DEFAULT NULL, - `Trigger` varchar(128) DEFAULT NULL, - `Method` varchar(1) DEFAULT NULL, - `Username` varchar(64) DEFAULT NULL, - `IconURL` text, - `AutoComplete` tinyint(1) DEFAULT NULL, - `AutoCompleteDesc` text, - `AutoCompleteHint` text, - `DisplayName` varchar(64) DEFAULT NULL, - `Description` varchar(128) DEFAULT NULL, - `URL` text, - `PluginId` varchar(190) DEFAULT NULL, - PRIMARY KEY (`Id`), - KEY `idx_command_team_id` (`TeamId`), - KEY `idx_command_update_at` (`UpdateAt`), - KEY `idx_command_create_at` (`CreateAt`), - KEY `idx_command_delete_at` (`DeleteAt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Compliances` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `Status` varchar(64) DEFAULT NULL, - `Count` int(11) DEFAULT NULL, - `Desc` text, - `Type` varchar(64) DEFAULT NULL, - `StartAt` bigint(20) DEFAULT NULL, - `EndAt` bigint(20) DEFAULT NULL, - `Keywords` text, - `Emails` text, - PRIMARY KEY (`Id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Drafts` ( - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `UserId` varchar(26) NOT NULL, - `ChannelId` varchar(26) NOT NULL, - `RootId` varchar(26) NOT NULL DEFAULT '', - `Message` text, - `Props` text, - `FileIds` text, - `Priority` text, - PRIMARY KEY (`UserId`,`ChannelId`,`RootId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Emoji` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `CreatorId` varchar(26) DEFAULT NULL, - `Name` varchar(64) DEFAULT NULL, - PRIMARY KEY (`Id`), - UNIQUE KEY `Name` (`Name`,`DeleteAt`), - KEY `idx_emoji_update_at` (`UpdateAt`), - KEY `idx_emoji_create_at` (`CreateAt`), - KEY `idx_emoji_delete_at` (`DeleteAt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `FileInfo` ( - `Id` varchar(26) NOT NULL, - `CreatorId` varchar(26) DEFAULT NULL, - `PostId` varchar(26) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `Path` text, - `ThumbnailPath` text, - `PreviewPath` text, - `Name` text, - `Extension` varchar(64) DEFAULT NULL, - `Size` bigint(20) DEFAULT NULL, - `MimeType` text, - `Width` int(11) DEFAULT NULL, - `Height` int(11) DEFAULT NULL, - `HasPreviewImage` tinyint(1) DEFAULT NULL, - `MiniPreview` mediumblob, - `Content` longtext, - `RemoteId` varchar(26) DEFAULT NULL, - `Archived` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`Id`), - KEY `idx_fileinfo_update_at` (`UpdateAt`), - KEY `idx_fileinfo_create_at` (`CreateAt`), - KEY `idx_fileinfo_delete_at` (`DeleteAt`), - KEY `idx_fileinfo_postid_at` (`PostId`), - KEY `idx_fileinfo_extension_at` (`Extension`), - FULLTEXT KEY `idx_fileinfo_name_txt` (`Name`), - FULLTEXT KEY `idx_fileinfo_content_txt` (`Content`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `GroupChannels` ( - `GroupId` varchar(26) NOT NULL, - `AutoAdd` tinyint(1) DEFAULT NULL, - `SchemeAdmin` tinyint(1) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `ChannelId` varchar(26) NOT NULL, - PRIMARY KEY (`GroupId`,`ChannelId`), - KEY `idx_groupchannels_schemeadmin` (`SchemeAdmin`), - KEY `idx_groupchannels_channelid` (`ChannelId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `GroupMembers` ( - `GroupId` varchar(26) NOT NULL, - `UserId` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - PRIMARY KEY (`GroupId`,`UserId`), - KEY `idx_groupmembers_create_at` (`CreateAt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `GroupTeams` ( - `GroupId` varchar(26) NOT NULL, - `AutoAdd` tinyint(1) DEFAULT NULL, - `SchemeAdmin` tinyint(1) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `TeamId` varchar(26) NOT NULL, - PRIMARY KEY (`GroupId`,`TeamId`), - KEY `idx_groupteams_schemeadmin` (`SchemeAdmin`), - KEY `idx_groupteams_teamid` (`TeamId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_Category` ( - `ID` varchar(26) NOT NULL, - `Name` varchar(512) NOT NULL, - `TeamID` varchar(26) NOT NULL, - `UserID` varchar(26) NOT NULL, - `Collapsed` tinyint(1) DEFAULT '0', - `CreateAt` bigint(20) NOT NULL, - `UpdateAt` bigint(20) NOT NULL DEFAULT '0', - `DeleteAt` bigint(20) NOT NULL DEFAULT '0', - PRIMARY KEY (`ID`), - KEY `IR_Category_TeamID_UserID` (`TeamID`,`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_Category_Item` ( - `Type` varchar(1) NOT NULL, - `CategoryID` varchar(26) NOT NULL, - `ItemID` varchar(26) NOT NULL, - PRIMARY KEY (`CategoryID`,`ItemID`,`Type`), - KEY `IR_Category_Item_CategoryID` (`CategoryID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_ChannelAction` ( - `ID` varchar(26) NOT NULL, - `ChannelID` varchar(26) DEFAULT NULL, - `Enabled` tinyint(1) DEFAULT '0', - `DeleteAt` bigint(20) NOT NULL DEFAULT '0', - `ActionType` text NOT NULL, - `TriggerType` text NOT NULL, - `Payload` json NOT NULL, - PRIMARY KEY (`ID`), - KEY `IR_ChannelAction_ChannelID` (`ChannelID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_Incident` ( - `ID` varchar(26) NOT NULL, - `Name` varchar(1024) NOT NULL, - `Description` varchar(4096) NOT NULL, - `IsActive` tinyint(1) NOT NULL, - `CommanderUserID` varchar(26) NOT NULL, - `TeamID` varchar(26) NOT NULL, - `ChannelID` varchar(26) NOT NULL, - `CreateAt` bigint(20) NOT NULL, - `EndAt` bigint(20) NOT NULL DEFAULT '0', - `DeleteAt` bigint(20) NOT NULL DEFAULT '0', - `ActiveStage` bigint(20) NOT NULL, - `PostID` varchar(26) NOT NULL DEFAULT '', - `PlaybookID` varchar(26) NOT NULL DEFAULT '', - `ChecklistsJSON` text NOT NULL, - `ActiveStageTitle` varchar(1024) DEFAULT '', - `ReminderPostID` varchar(26) DEFAULT NULL, - `BroadcastChannelID` varchar(26) DEFAULT '', - `PreviousReminder` bigint(20) NOT NULL DEFAULT '0', - `ReminderMessageTemplate` text, - `CurrentStatus` varchar(1024) NOT NULL DEFAULT 'Active', - `ReporterUserID` varchar(26) NOT NULL DEFAULT '', - `ConcatenatedInvitedUserIDs` text, - `DefaultCommanderID` varchar(26) DEFAULT '', - `AnnouncementChannelID` varchar(26) DEFAULT '', - `ConcatenatedWebhookOnCreationURLs` text, - `ConcatenatedInvitedGroupIDs` text, - `Retrospective` text, - `MessageOnJoin` text, - `RetrospectivePublishedAt` bigint(20) NOT NULL DEFAULT '0', - `RetrospectiveReminderIntervalSeconds` bigint(20) NOT NULL DEFAULT '0', - `RetrospectiveWasCanceled` tinyint(1) DEFAULT '0', - `ConcatenatedWebhookOnStatusUpdateURLs` text, - `LastStatusUpdateAt` bigint(20) DEFAULT '0', - `ExportChannelOnFinishedEnabled` tinyint(1) NOT NULL DEFAULT '0', - `CategorizeChannelEnabled` tinyint(1) DEFAULT '0', - `CategoryName` text, - `ConcatenatedBroadcastChannelIds` text, - `ChannelIDToRootID` text, - `ReminderTimerDefaultSeconds` bigint(20) NOT NULL DEFAULT '0', - `StatusUpdateEnabled` tinyint(1) DEFAULT '1', - `RetrospectiveEnabled` tinyint(1) DEFAULT '1', - `StatusUpdateBroadcastChannelsEnabled` tinyint(1) DEFAULT '0', - `StatusUpdateBroadcastWebhooksEnabled` tinyint(1) DEFAULT '0', - `SummaryModifiedAt` bigint(20) NOT NULL DEFAULT '0', - `CreateChannelMemberOnNewParticipant` tinyint(1) DEFAULT '1', - `RemoveChannelMemberOnRemovedParticipant` tinyint(1) DEFAULT '1', - `RunType` varchar(32) DEFAULT 'playbook', - `WebhookOnCreationURL` text, - `WebhookOnStatusUpdateURL` text, - `ExportChannelOnArchiveEnabled` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`ID`), - KEY `IR_Incident_TeamID` (`TeamID`), - KEY `IR_Incident_TeamID_CommanderUserID` (`TeamID`,`CommanderUserID`), - KEY `IR_Incident_ChannelID` (`ChannelID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_Metric` ( - `IncidentID` varchar(26) NOT NULL, - `MetricConfigID` varchar(26) NOT NULL, - `Value` bigint(20) DEFAULT NULL, - `Published` tinyint(1) NOT NULL, - PRIMARY KEY (`IncidentID`,`MetricConfigID`), - KEY `IR_Metric_IncidentID` (`IncidentID`), - KEY `IR_Metric_MetricConfigID` (`MetricConfigID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_MetricConfig` ( - `ID` varchar(26) NOT NULL, - `PlaybookID` varchar(26) NOT NULL, - `Title` varchar(512) NOT NULL, - `Description` varchar(4096) NOT NULL, - `Type` varchar(32) NOT NULL, - `Target` bigint(20) DEFAULT NULL, - `Ordering` tinyint(4) NOT NULL DEFAULT '0', - `DeleteAt` bigint(20) NOT NULL DEFAULT '0', - PRIMARY KEY (`ID`), - KEY `IR_MetricConfig_PlaybookID` (`PlaybookID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_Playbook` ( - `ID` varchar(26) NOT NULL, - `Title` varchar(1024) NOT NULL, - `Description` varchar(4096) NOT NULL, - `TeamID` varchar(26) NOT NULL, - `CreatePublicIncident` tinyint(1) NOT NULL, - `CreateAt` bigint(20) NOT NULL, - `DeleteAt` bigint(20) NOT NULL DEFAULT '0', - `ChecklistsJSON` text NOT NULL, - `NumStages` bigint(20) NOT NULL DEFAULT '0', - `NumSteps` bigint(20) NOT NULL DEFAULT '0', - `BroadcastChannelID` varchar(26) DEFAULT '', - `ReminderMessageTemplate` text, - `ReminderTimerDefaultSeconds` bigint(20) NOT NULL DEFAULT '0', - `ConcatenatedInvitedUserIDs` text, - `InviteUsersEnabled` tinyint(1) DEFAULT '0', - `DefaultCommanderID` varchar(26) DEFAULT '', - `DefaultCommanderEnabled` tinyint(1) DEFAULT '0', - `AnnouncementChannelID` varchar(26) DEFAULT '', - `AnnouncementChannelEnabled` tinyint(1) DEFAULT '0', - `ConcatenatedWebhookOnCreationURLs` text, - `WebhookOnCreationEnabled` tinyint(1) DEFAULT '0', - `ConcatenatedInvitedGroupIDs` text, - `MessageOnJoin` text, - `MessageOnJoinEnabled` tinyint(1) DEFAULT '0', - `RetrospectiveReminderIntervalSeconds` bigint(20) NOT NULL DEFAULT '0', - `RetrospectiveTemplate` text, - `ConcatenatedWebhookOnStatusUpdateURLs` text, - `WebhookOnStatusUpdateEnabled` tinyint(1) DEFAULT '0', - `ConcatenatedSignalAnyKeywords` text, - `SignalAnyKeywordsEnabled` tinyint(1) DEFAULT '0', - `UpdateAt` bigint(20) NOT NULL DEFAULT '0', - `ExportChannelOnFinishedEnabled` tinyint(1) NOT NULL DEFAULT '0', - `CategorizeChannelEnabled` tinyint(1) DEFAULT '0', - `CategoryName` text, - `ConcatenatedBroadcastChannelIds` text, - `BroadcastEnabled` tinyint(1) DEFAULT '0', - `RunSummaryTemplate` text, - `ChannelNameTemplate` text, - `StatusUpdateEnabled` tinyint(1) DEFAULT '1', - `RetrospectiveEnabled` tinyint(1) DEFAULT '1', - `Public` tinyint(1) DEFAULT '0', - `RunSummaryTemplateEnabled` tinyint(1) DEFAULT '1', - `CreateChannelMemberOnNewParticipant` tinyint(1) DEFAULT '1', - `RemoveChannelMemberOnRemovedParticipant` tinyint(1) DEFAULT '1', - `ChannelID` varchar(26) DEFAULT '', - `ChannelMode` varchar(32) DEFAULT 'create_new_channel', - `WebhookOnCreationURL` text, - `WebhookOnStatusUpdateURL` text, - `ExportChannelOnArchiveEnabled` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`ID`), - KEY `IR_Playbook_TeamID` (`TeamID`), - KEY `IR_PlaybookMember_PlaybookID` (`ID`), - KEY `IR_Playbook_UpdateAt` (`UpdateAt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_PlaybookAutoFollow` ( - `PlaybookID` varchar(26) NOT NULL, - `UserID` varchar(26) NOT NULL, - PRIMARY KEY (`PlaybookID`,`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_PlaybookMember` ( - `PlaybookID` varchar(26) NOT NULL, - `MemberID` varchar(26) NOT NULL, - `Roles` text, - PRIMARY KEY (`MemberID`,`PlaybookID`), - KEY `IR_PlaybookMember_PlaybookID` (`PlaybookID`), - KEY `IR_PlaybookMember_MemberID` (`MemberID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_Run_Participants` ( - `IncidentID` varchar(26) NOT NULL, - `UserID` varchar(26) NOT NULL, - `IsFollower` tinyint(1) NOT NULL DEFAULT '0', - `IsParticipant` tinyint(1) DEFAULT '0', - PRIMARY KEY (`IncidentID`,`UserID`), - KEY `IR_Run_Participants_UserID` (`UserID`), - KEY `IR_Run_Participants_IncidentID` (`IncidentID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_StatusPosts` ( - `IncidentID` varchar(26) NOT NULL, - `PostID` varchar(26) NOT NULL, - PRIMARY KEY (`IncidentID`,`PostID`), - KEY `IR_StatusPosts_IncidentID` (`IncidentID`), - KEY `IR_StatusPosts_PostID` (`PostID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_System` ( - `SKey` varchar(64) NOT NULL, - `SValue` varchar(1024) DEFAULT NULL, - PRIMARY KEY (`SKey`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_TimelineEvent` ( - `ID` varchar(26) NOT NULL, - `IncidentID` varchar(26) NOT NULL, - `CreateAt` bigint(20) NOT NULL, - `DeleteAt` bigint(20) NOT NULL DEFAULT '0', - `EventAt` bigint(20) NOT NULL, - `EventType` varchar(32) NOT NULL DEFAULT '', - `Summary` varchar(256) NOT NULL DEFAULT '', - `Details` varchar(4096) NOT NULL DEFAULT '', - `PostID` varchar(26) NOT NULL DEFAULT '', - `SubjectUserID` varchar(26) NOT NULL DEFAULT '', - `CreatorUserID` varchar(26) NOT NULL DEFAULT '', - PRIMARY KEY (`ID`), - KEY `IR_TimelineEvent_ID` (`ID`), - KEY `IR_TimelineEvent_IncidentID` (`IncidentID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_UserInfo` ( - `ID` varchar(26) NOT NULL, - `LastDailyTodoDMAt` bigint(20) DEFAULT NULL, - `DigestNotificationSettingsJSON` json DEFAULT NULL, - PRIMARY KEY (`ID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IR_ViewedChannel` ( - `ChannelID` varchar(26) NOT NULL, - `UserID` varchar(26) NOT NULL, - PRIMARY KEY (`ChannelID`,`UserID`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `IncomingWebhooks` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `ChannelId` varchar(26) DEFAULT NULL, - `TeamId` varchar(26) DEFAULT NULL, - `DisplayName` varchar(64) DEFAULT NULL, - `Description` text, - `Username` varchar(255) DEFAULT NULL, - `IconURL` text, - `ChannelLocked` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`Id`), - KEY `idx_incoming_webhook_user_id` (`UserId`), - KEY `idx_incoming_webhook_team_id` (`TeamId`), - KEY `idx_incoming_webhook_update_at` (`UpdateAt`), - KEY `idx_incoming_webhook_create_at` (`CreateAt`), - KEY `idx_incoming_webhook_delete_at` (`DeleteAt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Jobs` ( - `Id` varchar(26) NOT NULL, - `Type` varchar(32) DEFAULT NULL, - `Priority` bigint(20) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `StartAt` bigint(20) DEFAULT NULL, - `LastActivityAt` bigint(20) DEFAULT NULL, - `Status` varchar(32) DEFAULT NULL, - `Progress` bigint(20) DEFAULT NULL, - `Data` json DEFAULT NULL, - PRIMARY KEY (`Id`), - KEY `idx_jobs_type` (`Type`), - KEY `idx_jobs_status_type` (`Status`,`Type`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Licenses` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `Bytes` text, - PRIMARY KEY (`Id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `LinkMetadata` ( - `Hash` bigint(20) NOT NULL, - `URL` text, - `Timestamp` bigint(20) DEFAULT NULL, - `Type` varchar(16) DEFAULT NULL, - `Data` json DEFAULT NULL, - PRIMARY KEY (`Hash`), - KEY `idx_link_metadata_url_timestamp` (`URL`(512),`Timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `NotifyAdmin` ( - `UserId` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `RequiredPlan` varchar(100) NOT NULL, - `RequiredFeature` varchar(255) NOT NULL, - `Trial` tinyint(1) NOT NULL, - `SentAt` bigint(20) DEFAULT NULL, - PRIMARY KEY (`UserId`,`RequiredFeature`,`RequiredPlan`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `OAuthAccessData` ( - `Token` varchar(26) NOT NULL, - `RefreshToken` varchar(26) DEFAULT NULL, - `RedirectUri` text, - `ClientId` varchar(26) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `ExpiresAt` bigint(20) DEFAULT NULL, - `Scope` varchar(128) DEFAULT NULL, - PRIMARY KEY (`Token`), - UNIQUE KEY `ClientId` (`ClientId`,`UserId`), - KEY `idx_oauthaccessdata_user_id` (`UserId`), - KEY `idx_oauthaccessdata_refresh_token` (`RefreshToken`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `OAuthApps` ( - `Id` varchar(26) NOT NULL, - `CreatorId` varchar(26) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `ClientSecret` varchar(128) DEFAULT NULL, - `Name` varchar(64) DEFAULT NULL, - `Description` text, - `CallbackUrls` text, - `Homepage` text, - `IsTrusted` tinyint(1) DEFAULT NULL, - `IconURL` text, - `MattermostAppID` varchar(32) NOT NULL DEFAULT '', - PRIMARY KEY (`Id`), - KEY `idx_oauthapps_creator_id` (`CreatorId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `OAuthAuthData` ( - `ClientId` varchar(26) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `Code` varchar(128) NOT NULL, - `ExpiresIn` int(11) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `RedirectUri` text, - `State` text, - `Scope` varchar(128) DEFAULT NULL, - PRIMARY KEY (`Code`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `OutgoingWebhooks` ( - `Id` varchar(26) NOT NULL, - `Token` varchar(26) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `CreatorId` varchar(26) DEFAULT NULL, - `ChannelId` varchar(26) DEFAULT NULL, - `TeamId` varchar(26) DEFAULT NULL, - `TriggerWords` text, - `CallbackURLs` text, - `DisplayName` varchar(64) DEFAULT NULL, - `ContentType` varchar(128) DEFAULT NULL, - `TriggerWhen` int(11) DEFAULT NULL, - `Username` varchar(64) DEFAULT NULL, - `IconURL` text, - `Description` text, - PRIMARY KEY (`Id`), - KEY `idx_outgoing_webhook_team_id` (`TeamId`), - KEY `idx_outgoing_webhook_update_at` (`UpdateAt`), - KEY `idx_outgoing_webhook_create_at` (`CreateAt`), - KEY `idx_outgoing_webhook_delete_at` (`DeleteAt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `PluginKeyValueStore` ( - `PluginId` varchar(190) NOT NULL, - `PKey` varchar(150) NOT NULL, - `PValue` mediumblob, - `ExpireAt` bigint(20) DEFAULT NULL, - PRIMARY KEY (`PluginId`,`PKey`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `PostAcknowledgements` ( - `PostId` varchar(26) NOT NULL, - `UserId` varchar(26) NOT NULL, - `AcknowledgedAt` bigint(20) DEFAULT NULL, - PRIMARY KEY (`PostId`,`UserId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `PostReminders` ( - `PostId` varchar(26) NOT NULL, - `UserId` varchar(26) NOT NULL, - `TargetTime` bigint(20) DEFAULT NULL, - PRIMARY KEY (`PostId`,`UserId`), - KEY `idx_postreminders_targettime` (`TargetTime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Posts` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `ChannelId` varchar(26) DEFAULT NULL, - `RootId` varchar(26) DEFAULT NULL, - `OriginalId` varchar(26) DEFAULT NULL, - `Message` text, - `Type` varchar(26) DEFAULT NULL, - `Props` json DEFAULT NULL, - `Hashtags` text, - `Filenames` text, - `FileIds` text, - `HasReactions` tinyint(1) DEFAULT NULL, - `EditAt` bigint(20) DEFAULT NULL, - `IsPinned` tinyint(1) DEFAULT NULL, - `RemoteId` varchar(26) DEFAULT NULL, - PRIMARY KEY (`Id`), - KEY `idx_posts_update_at` (`UpdateAt`), - KEY `idx_posts_create_at` (`CreateAt`), - KEY `idx_posts_delete_at` (`DeleteAt`), - KEY `idx_posts_user_id` (`UserId`), - KEY `idx_posts_is_pinned` (`IsPinned`), - KEY `idx_posts_channel_id_update_at` (`ChannelId`,`UpdateAt`), - KEY `idx_posts_channel_id_delete_at_create_at` (`ChannelId`,`DeleteAt`,`CreateAt`), - KEY `idx_posts_root_id_delete_at` (`RootId`,`DeleteAt`), - KEY `idx_posts_create_at_id` (`CreateAt`,`Id`), - KEY `idx_posts_original_id` (`OriginalId`), - FULLTEXT KEY `idx_posts_message_txt` (`Message`), - FULLTEXT KEY `idx_posts_hashtags_txt` (`Hashtags`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `PostsPriority` ( - `PostId` varchar(26) NOT NULL, - `ChannelId` varchar(26) NOT NULL, - `Priority` varchar(32) NOT NULL, - `RequestedAck` tinyint(1) DEFAULT NULL, - `PersistentNotifications` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`PostId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Preferences` ( - `UserId` varchar(26) NOT NULL, - `Category` varchar(32) NOT NULL, - `Name` varchar(32) NOT NULL, - `Value` text, - PRIMARY KEY (`UserId`,`Category`,`Name`), - KEY `idx_preferences_category` (`Category`), - KEY `idx_preferences_name` (`Name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `ProductNoticeViewState` ( - `UserId` varchar(26) NOT NULL, - `NoticeId` varchar(26) NOT NULL, - `Viewed` int(11) DEFAULT NULL, - `Timestamp` bigint(20) DEFAULT NULL, - PRIMARY KEY (`UserId`,`NoticeId`), - KEY `idx_notice_views_timestamp` (`Timestamp`), - KEY `idx_notice_views_notice_id` (`NoticeId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `PublicChannels` ( - `Id` varchar(26) NOT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `TeamId` varchar(26) DEFAULT NULL, - `DisplayName` varchar(64) DEFAULT NULL, - `Name` varchar(64) DEFAULT NULL, - `Header` text, - `Purpose` varchar(250) DEFAULT NULL, - PRIMARY KEY (`Id`), - UNIQUE KEY `Name` (`Name`,`TeamId`), - KEY `idx_publicchannels_team_id` (`TeamId`), - KEY `idx_publicchannels_delete_at` (`DeleteAt`), - FULLTEXT KEY `idx_publicchannels_search_txt` (`Name`,`DisplayName`,`Purpose`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Reactions` ( - `UserId` varchar(26) NOT NULL, - `PostId` varchar(26) NOT NULL, - `EmojiName` varchar(64) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `RemoteId` varchar(26) DEFAULT NULL, - `ChannelId` varchar(26) NOT NULL DEFAULT '', - PRIMARY KEY (`PostId`,`UserId`,`EmojiName`), - KEY `idx_reactions_channel_id` (`ChannelId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `RecentSearches` ( - `UserId` char(26) NOT NULL, - `SearchPointer` int(11) NOT NULL, - `Query` json DEFAULT NULL, - `CreateAt` bigint(20) NOT NULL, - PRIMARY KEY (`UserId`,`SearchPointer`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `RemoteClusters` ( - `RemoteId` varchar(26) NOT NULL, - `RemoteTeamId` varchar(26) DEFAULT NULL, - `Name` varchar(64) NOT NULL, - `DisplayName` varchar(64) DEFAULT NULL, - `SiteURL` text, - `CreateAt` bigint(20) DEFAULT NULL, - `LastPingAt` bigint(20) DEFAULT NULL, - `Token` varchar(26) DEFAULT NULL, - `RemoteToken` varchar(26) DEFAULT NULL, - `Topics` text, - `CreatorId` varchar(26) DEFAULT NULL, - PRIMARY KEY (`RemoteId`,`Name`), - UNIQUE KEY `remote_clusters_site_url_unique` (`RemoteTeamId`,`SiteURL`(168)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `RetentionPolicies` ( - `Id` varchar(26) NOT NULL, - `DisplayName` varchar(64) DEFAULT NULL, - `PostDuration` bigint(20) DEFAULT NULL, - PRIMARY KEY (`Id`), - KEY `IDX_RetentionPolicies_DisplayName` (`DisplayName`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `RetentionPoliciesChannels` ( - `PolicyId` varchar(26) DEFAULT NULL, - `ChannelId` varchar(26) NOT NULL, - PRIMARY KEY (`ChannelId`), - KEY `IDX_RetentionPoliciesChannels_PolicyId` (`PolicyId`), - CONSTRAINT `FK_RetentionPoliciesChannels_RetentionPolicies` FOREIGN KEY (`PolicyId`) REFERENCES `RetentionPolicies` (`Id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `RetentionPoliciesTeams` ( - `PolicyId` varchar(26) DEFAULT NULL, - `TeamId` varchar(26) NOT NULL, - PRIMARY KEY (`TeamId`), - KEY `IDX_RetentionPoliciesTeams_PolicyId` (`PolicyId`), - CONSTRAINT `FK_RetentionPoliciesTeams_RetentionPolicies` FOREIGN KEY (`PolicyId`) REFERENCES `RetentionPolicies` (`Id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Roles` ( - `Id` varchar(26) NOT NULL, - `Name` varchar(64) DEFAULT NULL, - `DisplayName` varchar(128) DEFAULT NULL, - `Description` text, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `Permissions` longtext, - `SchemeManaged` tinyint(1) DEFAULT NULL, - `BuiltIn` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`Id`), - UNIQUE KEY `Name` (`Name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Schemes` ( - `Id` varchar(26) NOT NULL, - `Name` varchar(64) DEFAULT NULL, - `DisplayName` varchar(128) DEFAULT NULL, - `Description` text, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `Scope` varchar(32) DEFAULT NULL, - `DefaultTeamAdminRole` varchar(64) DEFAULT NULL, - `DefaultTeamUserRole` varchar(64) DEFAULT NULL, - `DefaultChannelAdminRole` varchar(64) DEFAULT NULL, - `DefaultChannelUserRole` varchar(64) DEFAULT NULL, - `DefaultTeamGuestRole` varchar(64) DEFAULT NULL, - `DefaultChannelGuestRole` varchar(64) DEFAULT NULL, - `DefaultPlaybookAdminRole` varchar(64) DEFAULT '', - `DefaultPlaybookMemberRole` varchar(64) DEFAULT '', - `DefaultRunAdminRole` varchar(64) DEFAULT '', - `DefaultRunMemberRole` varchar(64) DEFAULT '', - PRIMARY KEY (`Id`), - UNIQUE KEY `Name` (`Name`), - KEY `idx_schemes_channel_guest_role` (`DefaultChannelGuestRole`), - KEY `idx_schemes_channel_user_role` (`DefaultChannelUserRole`), - KEY `idx_schemes_channel_admin_role` (`DefaultChannelAdminRole`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Sessions` ( - `Id` varchar(26) NOT NULL, - `Token` varchar(26) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `ExpiresAt` bigint(20) DEFAULT NULL, - `LastActivityAt` bigint(20) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `DeviceId` text, - `Roles` text, - `IsOAuth` tinyint(1) DEFAULT NULL, - `Props` json DEFAULT NULL, - `ExpiredNotify` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`Id`), - KEY `idx_sessions_user_id` (`UserId`), - KEY `idx_sessions_token` (`Token`), - KEY `idx_sessions_expires_at` (`ExpiresAt`), - KEY `idx_sessions_create_at` (`CreateAt`), - KEY `idx_sessions_last_activity_at` (`LastActivityAt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `SharedChannelAttachments` ( - `Id` varchar(26) NOT NULL, - `FileId` varchar(26) DEFAULT NULL, - `RemoteId` varchar(26) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `LastSyncAt` bigint(20) DEFAULT NULL, - PRIMARY KEY (`Id`), - UNIQUE KEY `FileId` (`FileId`,`RemoteId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `SharedChannelRemotes` ( - `Id` varchar(26) NOT NULL, - `ChannelId` varchar(26) NOT NULL, - `CreatorId` varchar(26) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `IsInviteAccepted` tinyint(1) DEFAULT NULL, - `IsInviteConfirmed` tinyint(1) DEFAULT NULL, - `RemoteId` varchar(26) DEFAULT NULL, - `LastPostUpdateAt` bigint(20) DEFAULT NULL, - `LastPostId` varchar(26) DEFAULT NULL, - PRIMARY KEY (`Id`,`ChannelId`), - UNIQUE KEY `ChannelId` (`ChannelId`,`RemoteId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `SharedChannelUsers` ( - `Id` varchar(26) NOT NULL, - `UserId` varchar(26) DEFAULT NULL, - `RemoteId` varchar(26) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `LastSyncAt` bigint(20) DEFAULT NULL, - `ChannelId` varchar(26) DEFAULT NULL, - PRIMARY KEY (`Id`), - UNIQUE KEY `UserId` (`UserId`,`ChannelId`,`RemoteId`), - KEY `idx_sharedchannelusers_remote_id` (`RemoteId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `SharedChannels` ( - `ChannelId` varchar(26) NOT NULL, - `TeamId` varchar(26) DEFAULT NULL, - `Home` tinyint(1) DEFAULT NULL, - `ReadOnly` tinyint(1) DEFAULT NULL, - `ShareName` varchar(64) DEFAULT NULL, - `ShareDisplayName` varchar(64) DEFAULT NULL, - `SharePurpose` varchar(250) DEFAULT NULL, - `ShareHeader` text, - `CreatorId` varchar(26) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `RemoteId` varchar(26) DEFAULT NULL, - PRIMARY KEY (`ChannelId`), - UNIQUE KEY `ShareName` (`ShareName`,`TeamId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `SidebarCategories` ( - `Id` varchar(128) NOT NULL, - `UserId` varchar(26) DEFAULT NULL, - `TeamId` varchar(26) DEFAULT NULL, - `SortOrder` bigint(20) DEFAULT NULL, - `Sorting` varchar(64) DEFAULT NULL, - `Type` varchar(64) DEFAULT NULL, - `DisplayName` varchar(64) DEFAULT NULL, - `Muted` tinyint(1) DEFAULT NULL, - `Collapsed` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`Id`), - KEY `idx_sidebarcategories_userid_teamid` (`UserId`,`TeamId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `SidebarChannels` ( - `ChannelId` varchar(26) NOT NULL, - `UserId` varchar(26) NOT NULL, - `CategoryId` varchar(128) NOT NULL, - `SortOrder` bigint(20) DEFAULT NULL, - PRIMARY KEY (`ChannelId`,`UserId`,`CategoryId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Status` ( - `UserId` varchar(26) NOT NULL, - `Status` varchar(32) DEFAULT NULL, - `Manual` tinyint(1) DEFAULT NULL, - `LastActivityAt` bigint(20) DEFAULT NULL, - `DNDEndTime` bigint(20) DEFAULT NULL, - `PrevStatus` varchar(32) DEFAULT NULL, - PRIMARY KEY (`UserId`), - KEY `idx_status_status_dndendtime` (`Status`,`DNDEndTime`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Systems` ( - `Name` varchar(64) NOT NULL, - `Value` text, - PRIMARY KEY (`Name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `TeamMembers` ( - `TeamId` varchar(26) NOT NULL, - `UserId` varchar(26) NOT NULL, - `Roles` text, - `DeleteAt` bigint(20) DEFAULT NULL, - `SchemeUser` tinyint(4) DEFAULT NULL, - `SchemeAdmin` tinyint(4) DEFAULT NULL, - `SchemeGuest` tinyint(4) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT '0', - PRIMARY KEY (`TeamId`,`UserId`), - KEY `idx_teammembers_user_id` (`UserId`), - KEY `idx_teammembers_delete_at` (`DeleteAt`), - KEY `idx_teammembers_createat` (`CreateAt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Teams` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `DisplayName` varchar(64) DEFAULT NULL, - `Name` varchar(64) DEFAULT NULL, - `Description` varchar(255) DEFAULT NULL, - `Email` varchar(128) DEFAULT NULL, - `Type` enum('I','O') DEFAULT NULL, - `CompanyName` varchar(64) DEFAULT NULL, - `AllowedDomains` text, - `InviteId` varchar(32) DEFAULT NULL, - `SchemeId` varchar(26) DEFAULT NULL, - `AllowOpenInvite` tinyint(1) DEFAULT NULL, - `LastTeamIconUpdate` bigint(20) DEFAULT NULL, - `GroupConstrained` tinyint(1) DEFAULT NULL, - `CloudLimitsArchived` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`Id`), - UNIQUE KEY `Name` (`Name`), - KEY `idx_teams_invite_id` (`InviteId`), - KEY `idx_teams_update_at` (`UpdateAt`), - KEY `idx_teams_create_at` (`CreateAt`), - KEY `idx_teams_delete_at` (`DeleteAt`), - KEY `idx_teams_scheme_id` (`SchemeId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `TermsOfService` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `Text` text, - PRIMARY KEY (`Id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `ThreadMemberships` ( - `PostId` varchar(26) NOT NULL, - `UserId` varchar(26) NOT NULL, - `Following` tinyint(1) DEFAULT NULL, - `LastViewed` bigint(20) DEFAULT NULL, - `LastUpdated` bigint(20) DEFAULT NULL, - `UnreadMentions` bigint(20) DEFAULT NULL, - PRIMARY KEY (`PostId`,`UserId`), - KEY `idx_thread_memberships_last_update_at` (`LastUpdated`), - KEY `idx_thread_memberships_last_view_at` (`LastViewed`), - KEY `idx_thread_memberships_user_id` (`UserId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Threads` ( - `PostId` varchar(26) NOT NULL, - `ReplyCount` bigint(20) DEFAULT NULL, - `LastReplyAt` bigint(20) DEFAULT NULL, - `Participants` json DEFAULT NULL, - `ChannelId` varchar(26) DEFAULT NULL, - `ThreadDeleteAt` bigint(20) DEFAULT NULL, - `ThreadTeamId` varchar(26) DEFAULT NULL, - PRIMARY KEY (`PostId`), - KEY `idx_threads_channel_id_last_reply_at` (`ChannelId`,`LastReplyAt`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Tokens` ( - `Token` varchar(64) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `Type` varchar(64) DEFAULT NULL, - `Extra` text, - PRIMARY KEY (`Token`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `TrueUpReviewHistory` ( - `DueDate` bigint(20) NOT NULL, - `Completed` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`DueDate`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `UploadSessions` ( - `Id` varchar(26) NOT NULL, - `Type` enum('attachment','import') DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `ChannelId` varchar(26) DEFAULT NULL, - `Filename` text, - `Path` text, - `FileSize` bigint(20) DEFAULT NULL, - `FileOffset` bigint(20) DEFAULT NULL, - `RemoteId` varchar(26) DEFAULT NULL, - `ReqFileId` varchar(26) DEFAULT NULL, - PRIMARY KEY (`Id`), - KEY `idx_uploadsessions_user_id` (`UserId`), - KEY `idx_uploadsessions_create_at` (`CreateAt`), - KEY `idx_uploadsessions_type` (`Type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `UserAccessTokens` ( - `Id` varchar(26) NOT NULL, - `Token` varchar(26) DEFAULT NULL, - `UserId` varchar(26) DEFAULT NULL, - `Description` text, - `IsActive` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`Id`), - UNIQUE KEY `Token` (`Token`), - KEY `idx_user_access_tokens_user_id` (`UserId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `UserGroups` ( - `Id` varchar(26) NOT NULL, - `Name` varchar(64) DEFAULT NULL, - `DisplayName` varchar(128) DEFAULT NULL, - `Description` text, - `Source` varchar(64) DEFAULT NULL, - `RemoteId` varchar(48) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `AllowReference` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`Id`), - UNIQUE KEY `Name` (`Name`), - UNIQUE KEY `Source` (`Source`,`RemoteId`), - KEY `idx_usergroups_remote_id` (`RemoteId`), - KEY `idx_usergroups_delete_at` (`DeleteAt`), - KEY `idx_usergroups_displayname` (`DisplayName`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `UserTermsOfService` ( - `UserId` varchar(26) NOT NULL, - `TermsOfServiceId` varchar(26) DEFAULT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - PRIMARY KEY (`UserId`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `Users` ( - `Id` varchar(26) NOT NULL, - `CreateAt` bigint(20) DEFAULT NULL, - `UpdateAt` bigint(20) DEFAULT NULL, - `DeleteAt` bigint(20) DEFAULT NULL, - `Username` varchar(64) DEFAULT NULL, - `Password` varchar(128) DEFAULT NULL, - `AuthData` varchar(128) DEFAULT NULL, - `AuthService` varchar(32) DEFAULT NULL, - `Email` varchar(128) DEFAULT NULL, - `EmailVerified` tinyint(1) DEFAULT NULL, - `Nickname` varchar(64) DEFAULT NULL, - `FirstName` varchar(64) DEFAULT NULL, - `LastName` varchar(64) DEFAULT NULL, - `Roles` text, - `AllowMarketing` tinyint(1) DEFAULT NULL, - `Props` json DEFAULT NULL, - `NotifyProps` json DEFAULT NULL, - `LastPasswordUpdate` bigint(20) DEFAULT NULL, - `LastPictureUpdate` bigint(20) DEFAULT NULL, - `FailedAttempts` int(11) DEFAULT NULL, - `Locale` varchar(5) DEFAULT NULL, - `MfaActive` tinyint(1) DEFAULT NULL, - `MfaSecret` varchar(128) DEFAULT NULL, - `Position` varchar(128) DEFAULT NULL, - `Timezone` json DEFAULT NULL, - `RemoteId` varchar(26) DEFAULT NULL, - PRIMARY KEY (`Id`), - UNIQUE KEY `Username` (`Username`), - UNIQUE KEY `AuthData` (`AuthData`), - UNIQUE KEY `Email` (`Email`), - KEY `idx_users_update_at` (`UpdateAt`), - KEY `idx_users_create_at` (`CreateAt`), - KEY `idx_users_delete_at` (`DeleteAt`), - FULLTEXT KEY `idx_users_all_txt` (`Username`,`FirstName`,`LastName`,`Nickname`,`Email`), - FULLTEXT KEY `idx_users_all_no_full_name_txt` (`Username`,`Nickname`,`Email`), - FULLTEXT KEY `idx_users_names_txt` (`Username`,`FirstName`,`LastName`,`Nickname`), - FULLTEXT KEY `idx_users_names_no_full_name_txt` (`Username`,`Nickname`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `db_lock` ( - `Id` varchar(64) NOT NULL, - `ExpireAt` bigint(20) NOT NULL, - PRIMARY KEY (`Id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `db_migrations` ( - `Version` bigint(20) NOT NULL, - `Name` varchar(64) NOT NULL, - PRIMARY KEY (`Version`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_blocks` ( - `id` varchar(36) NOT NULL, - `insert_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), - `parent_id` varchar(36) DEFAULT NULL, - `schema` bigint(20) DEFAULT NULL, - `type` text, - `title` text, - `fields` text, - `create_at` bigint(20) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - `delete_at` bigint(20) DEFAULT NULL, - `root_id` varchar(36) DEFAULT NULL, - `modified_by` varchar(36) NOT NULL, - `channel_id` varchar(36) NOT NULL, - `created_by` varchar(36) NOT NULL, - `board_id` varchar(36) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `idx_blocks_board_id_parent_id` (`board_id`,`parent_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_blocks_history` ( - `id` varchar(36) NOT NULL, - `insert_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), - `parent_id` varchar(36) DEFAULT NULL, - `schema` bigint(20) DEFAULT NULL, - `type` text, - `title` text, - `fields` text, - `create_at` bigint(20) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - `delete_at` bigint(20) DEFAULT NULL, - `root_id` varchar(36) DEFAULT NULL, - `modified_by` varchar(36) DEFAULT NULL, - `channel_id` varchar(36) DEFAULT NULL, - `created_by` varchar(36) DEFAULT NULL, - `board_id` varchar(36) DEFAULT NULL, - PRIMARY KEY (`id`,`insert_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_board_members` ( - `board_id` varchar(36) NOT NULL, - `user_id` varchar(36) NOT NULL, - `roles` varchar(64) DEFAULT NULL, - `scheme_admin` tinyint(1) DEFAULT NULL, - `scheme_editor` tinyint(1) DEFAULT NULL, - `scheme_commenter` tinyint(1) DEFAULT NULL, - `scheme_viewer` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`board_id`,`user_id`), - KEY `idx_board_members_user_id` (`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_board_members_history` ( - `board_id` varchar(36) NOT NULL, - `user_id` varchar(36) NOT NULL, - `action` varchar(10) DEFAULT NULL, - `insert_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), - PRIMARY KEY (`board_id`,`user_id`,`insert_at`), - KEY `idx_board_members_history_user_id` (`user_id`), - KEY `idx_board_members_history_board_id_user_id` (`board_id`,`user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_boards` ( - `id` varchar(36) NOT NULL, - `insert_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), - `team_id` varchar(36) NOT NULL, - `channel_id` varchar(36) DEFAULT NULL, - `created_by` varchar(36) DEFAULT NULL, - `modified_by` varchar(36) DEFAULT NULL, - `type` varchar(1) NOT NULL, - `title` text NOT NULL, - `description` text, - `icon` varchar(256) DEFAULT NULL, - `show_description` tinyint(1) DEFAULT NULL, - `is_template` tinyint(1) DEFAULT NULL, - `template_version` int(11) DEFAULT '0', - `properties` json DEFAULT NULL, - `card_properties` json DEFAULT NULL, - `create_at` bigint(20) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - `delete_at` bigint(20) DEFAULT NULL, - `minimum_role` varchar(36) NOT NULL DEFAULT '', - PRIMARY KEY (`id`), - KEY `idx_boards_team_id_is_template` (`team_id`,`is_template`), - KEY `idx_boards_channel_id` (`channel_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_boards_history` ( - `id` varchar(36) NOT NULL, - `insert_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), - `team_id` varchar(36) NOT NULL, - `channel_id` varchar(36) DEFAULT NULL, - `created_by` varchar(36) DEFAULT NULL, - `modified_by` varchar(36) DEFAULT NULL, - `type` varchar(1) NOT NULL, - `title` text NOT NULL, - `description` text, - `icon` varchar(256) DEFAULT NULL, - `show_description` tinyint(1) DEFAULT NULL, - `is_template` tinyint(1) DEFAULT NULL, - `template_version` int(11) DEFAULT '0', - `properties` json DEFAULT NULL, - `card_properties` json DEFAULT NULL, - `create_at` bigint(20) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - `delete_at` bigint(20) DEFAULT NULL, - `minimum_role` varchar(36) NOT NULL DEFAULT '', - PRIMARY KEY (`id`,`insert_at`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_categories` ( - `id` varchar(36) NOT NULL, - `name` varchar(100) NOT NULL, - `user_id` varchar(36) NOT NULL, - `team_id` varchar(36) NOT NULL, - `channel_id` varchar(36) DEFAULT NULL, - `create_at` bigint(20) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - `delete_at` bigint(20) DEFAULT NULL, - `collapsed` tinyint(1) DEFAULT '0', - `type` varchar(64) DEFAULT NULL, - `sort_order` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `idx_categories_user_id_team_id` (`user_id`,`team_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_category_boards` ( - `id` varchar(36) NOT NULL, - `user_id` varchar(36) NOT NULL, - `category_id` varchar(36) NOT NULL, - `board_id` varchar(36) NOT NULL, - `create_at` bigint(20) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - `sort_order` bigint(20) DEFAULT NULL, - `hidden` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `unique_user_category_board` (`user_id`,`board_id`), - KEY `idx_category_boards_category_id` (`category_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_file_info` ( - `id` varchar(26) NOT NULL, - `create_at` bigint(20) NOT NULL, - `delete_at` bigint(20) DEFAULT NULL, - `name` text NOT NULL, - `extension` varchar(50) NOT NULL, - `size` bigint(20) NOT NULL, - `archived` tinyint(1) DEFAULT NULL, - `path` varchar(512) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_notification_hints` ( - `block_type` varchar(10) DEFAULT NULL, - `block_id` varchar(36) NOT NULL, - `workspace_id` varchar(36) DEFAULT NULL, - `modified_by_id` varchar(36) DEFAULT NULL, - `create_at` bigint(20) DEFAULT NULL, - `notify_at` bigint(20) DEFAULT NULL, - PRIMARY KEY (`block_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_preferences` ( - `userid` varchar(36) NOT NULL, - `category` varchar(32) NOT NULL, - `name` varchar(32) NOT NULL, - `value` text, - PRIMARY KEY (`userid`,`category`,`name`), - KEY `idx_preferences_category` (`category`), - KEY `idx_preferences_name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_schema_migrations` ( - `Version` bigint(20) NOT NULL, - `Name` varchar(64) NOT NULL, - PRIMARY KEY (`Version`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_sessions` ( - `id` varchar(100) NOT NULL, - `token` varchar(100) DEFAULT NULL, - `user_id` varchar(100) DEFAULT NULL, - `props` text, - `create_at` bigint(20) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - `auth_service` varchar(20) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_sharing` ( - `id` varchar(36) NOT NULL, - `enabled` tinyint(1) DEFAULT NULL, - `token` varchar(100) DEFAULT NULL, - `modified_by` varchar(36) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - `workspace_id` varchar(36) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_subscriptions` ( - `block_type` varchar(10) DEFAULT NULL, - `block_id` varchar(36) NOT NULL, - `workspace_id` varchar(36) DEFAULT NULL, - `subscriber_type` varchar(10) DEFAULT NULL, - `subscriber_id` varchar(36) NOT NULL, - `notified_at` bigint(20) DEFAULT NULL, - `create_at` bigint(20) DEFAULT NULL, - `delete_at` bigint(20) DEFAULT NULL, - PRIMARY KEY (`block_id`,`subscriber_id`), - KEY `idx_subscriptions_subscriber_id` (`subscriber_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_system_settings` ( - `id` varchar(100) NOT NULL, - `value` text, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_teams` ( - `id` varchar(36) NOT NULL, - `signup_token` varchar(100) NOT NULL, - `settings` text, - `modified_by` varchar(36) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_users` ( - `id` varchar(100) NOT NULL, - `username` varchar(100) DEFAULT NULL, - `email` varchar(255) DEFAULT NULL, - `password` varchar(100) DEFAULT NULL, - `mfa_secret` varchar(100) DEFAULT NULL, - `auth_service` varchar(20) DEFAULT NULL, - `auth_data` varchar(255) DEFAULT NULL, - `props` text, - `create_at` bigint(20) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - `delete_at` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `focalboard_workspaces` ( - `id` varchar(36) NOT NULL, - `signup_token` varchar(100) NOT NULL, - `settings` text, - `modified_by` varchar(36) DEFAULT NULL, - `update_at` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -/*!40101 SET character_set_client = @saved_cs_client */; - -CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mattermost_test` /*!40100 DEFAULT CHARACTER SET latin1 */; - -USE `mattermost_test`; -INSERT INTO `Bots` VALUES ('6g9zjk1d7brz8rqiypd9kypn5c','Feedbackbot collects user feedback to improve Mattermost. [Learn more](https://mattermost.com/pl/default-nps).','com.mattermost.nps',1684139058981,1684139058981,0,0); -INSERT INTO `Bots` VALUES ('d6eb3jh8iprzpxim14w9hkopbr','Created by Boards plugin.','focalboard',1684139114835,1684139114835,0,0); -INSERT INTO `Bots` VALUES ('dk8nggnjtt8yipcbmuqem4rfkc','','jactwicuqb8bu8pau8mgjydzeo',1684139700012,1684139700012,0,0); -INSERT INTO `Bots` VALUES ('k8crtspa5bfadc6iu6m93p4orh','Nautobot Test Bot','jactwicuqb8bu8pau8mgjydzeo',1684146025510,1684146025510,0,0); -INSERT INTO `Bots` VALUES ('o113xcgte78kpezuouwcr6abpo','Calls Bot','com.mattermost.calls',1684139059888,1684139059888,0,0); -INSERT INTO `Bots` VALUES ('ozpddc4xxi85tmrwaqsjmgw1kc','Playbooks bot.','playbooks',1684139059822,1684139059822,0,0); -INSERT INTO `Bots` VALUES ('qmaiqbz1e3fo8qz1nsmkhqbznh','Mattermost Apps Registry and API proxy.','com.mattermost.apps',1684139059460,1684139059460,0,0); -INSERT INTO `ChannelMembers` VALUES ('8sz36rga1in69gaunpogq95r1w','jactwicuqb8bu8pau8mgjydzeo','',1684153509947,2,0,'{\"push\": \"default\", \"email\": \"default\", \"desktop\": \"default\", \"mark_unread\": \"all\", \"ignore_channel_mentions\": \"default\"}',1684153509947,1,1,0,0,2,0); -INSERT INTO `ChannelMembers` VALUES ('8sz36rga1in69gaunpogq95r1w','k8crtspa5bfadc6iu6m93p4orh','',0,0,0,'{\"push\": \"default\", \"email\": \"default\", \"desktop\": \"default\", \"mark_unread\": \"all\", \"ignore_channel_mentions\": \"default\"}',1684146863323,1,0,0,0,0,0); -INSERT INTO `ChannelMembers` VALUES ('9g8qo5udpp8dzdud8jex1m6kuh','jactwicuqb8bu8pau8mgjydzeo','',1684146025577,1,0,'{\"push\": \"default\", \"email\": \"default\", \"desktop\": \"default\", \"mark_unread\": \"all\", \"ignore_channel_mentions\": \"default\"}',1684146025577,1,0,0,0,1,0); -INSERT INTO `ChannelMembers` VALUES ('9g8qo5udpp8dzdud8jex1m6kuh','k8crtspa5bfadc6iu6m93p4orh','',0,0,0,'{\"push\": \"default\", \"email\": \"default\", \"desktop\": \"default\", \"mark_unread\": \"all\", \"ignore_channel_mentions\": \"default\"}',1684146025519,1,0,0,0,0,0); -INSERT INTO `ChannelMembers` VALUES ('fi1muawz1bybue4gwu95kni4eh','jactwicuqb8bu8pau8mgjydzeo','',1684139716016,0,0,'{\"push\": \"default\", \"email\": \"default\", \"desktop\": \"default\", \"mark_unread\": \"all\", \"ignore_channel_mentions\": \"default\"}',1684139716016,1,1,0,0,0,0); -INSERT INTO `ChannelMembers` VALUES ('fi1muawz1bybue4gwu95kni4eh','k8crtspa5bfadc6iu6m93p4orh','',0,0,1,'{\"push\": \"default\", \"email\": \"default\", \"desktop\": \"default\", \"mark_unread\": \"all\", \"ignore_channel_mentions\": \"default\"}',1684146863438,1,0,0,1,0,0); -INSERT INTO `Channels` VALUES ('8sz36rga1in69gaunpogq95r1w',1684139715853,1684139715853,0,'35odngbgr7yw3bf13o8kg85ngh','O','Town Square','town-square','','',1684153509947,2,0,'',NULL,NULL,NULL,2,1684153509947); -INSERT INTO `Channels` VALUES ('9g8qo5udpp8dzdud8jex1m6kuh',1684146025517,1684146025517,0,'','D','','jactwicuqb8bu8pau8mgjydzeo__k8crtspa5bfadc6iu6m93p4orh','','',1684146025577,1,0,'k8crtspa5bfadc6iu6m93p4orh',NULL,NULL,0,1,1684146025577); -INSERT INTO `Channels` VALUES ('fi1muawz1bybue4gwu95kni4eh',1684139715866,1684139715866,0,'35odngbgr7yw3bf13o8kg85ngh','O','Off-Topic','off-topic','','',1684146863411,0,0,'',NULL,NULL,NULL,0,1684146863411); -INSERT INTO `Commands` VALUES ('yhepukctj7r1jgr8kappi7mb7e','tc1u8wbh53fwxxdkhswbmu9wsa',1685617546901,1685618110521,0,'jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh','aci','P','','',0,'','','Cisco ACI','Cisco ACI Slash Command','http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/',''); -INSERT INTO `Commands` VALUES ('846xisdqmtro9yd3eg8m45co3o','c7udax974iymjkmoyhi1a11cpy',1685089324429,1685089324429,0,'jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh','ansible','P','','',0,'','','Ansible','Ansible Slash Command','http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/',''); -INSERT INTO `Commands` VALUES ('561dqoomjt8ixqc3td9m53i3mh','p7phuwhpaiddjxqf8c1hnw33yh',1686737880192,1686737880192,0,'jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh','clear','P','','',0,'','','Clear','Clear Slash Command','http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/',''); -INSERT INTO `Commands` VALUES ('z7bmireh6tgpzgkujc4moaaiqe','pxannsh78iyhbm8fumz8mxk9ih',1685442897799,1685442897799,0,'jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh','cloudvision','P','','',0,'','','Arista CloudVision','Arista CloudVision Slash Command','http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/',''); -INSERT INTO `Commands` VALUES ('px7ae4ik6idp7pb51hx5ms4x3w','o1yiadnpifbzddt3umcedeypdr',1684405443321,1684405443321,0,'jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh','grafana','P','','',0,'','','Grafana','Grafana Slash Command','http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/',''); -INSERT INTO `Commands` VALUES ('f74t71u6p7rpbmz7ruebja7ana','uqydyxkx4tykinw5z5u9dany1o',1685099154275,1685099154275,0,'jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh','ipfabric','P','','',0,'','','IP Fabric','IP Fabric Slash Command','http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/',''); -INSERT INTO `Commands` VALUES ('j5pnszdfcpbt3f6yfs63o5bwhw','t9irqwjni3dozf3yx6tzak7k3w',1685532127072,1685532127072,0,'jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh','meraki','P','','',0,'','','Cisco Meraki','Cisco Meraki Slash Command','http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/',''); -INSERT INTO `Commands` VALUES ('d9irq7zuwt84pr77crnteso6da','rmdpfdjhnpg988e7ujzyom4euh',1684146546769,1684152166227,0,'jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh','nautobot','P','','',0,'','','Nautobot','Nautobot Slash Command','http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/',''); -INSERT INTO `Commands` VALUES ('uooffhygyigtfb4454k9yxm81h','6nf5cmz1ft8bdfykz46cs5pofo',1685702889199,1685702889199,0,'jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh','panorama','P','','',0,'','','Panorama','Panorama Slash Command','http://nautobot:8080/api/plugins/chatops/mattermost/slash_command/',''); -INSERT INTO `Drafts` VALUES (1684146834706,1684335673276,1684335673276,'jactwicuqb8bu8pau8mgjydzeo','8sz36rga1in69gaunpogq95r1w','','/nautobot','{}','[]','null'); -INSERT INTO `IR_System` VALUES ('DatabaseVersion','0.63.0'); -INSERT INTO `IR_UserInfo` VALUES ('jactwicuqb8bu8pau8mgjydzeo',1684387012504,'{\"disable_daily_digest\": false, \"disable_weekly_digest\": false}'); -INSERT INTO `Jobs` VALUES ('kwwq4cbzu3nmxdewywnouh48xo','migrations',0,1684139119925,1684139134240,1684139136273,'success',0,'{\"last_done\": \"{\\\"current_table\\\":\\\"ChannelMembers\\\",\\\"last_team_id\\\":\\\"00000000000000000000000000\\\",\\\"last_channel_id\\\":\\\"00000000000000000000000000\\\",\\\"last_user\\\":\\\"00000000000000000000000000\\\"}\", \"migration_key\": \"migration_advanced_permissions_phase_2\"}'); -INSERT INTO `PluginKeyValueStore` VALUES ('com.mattermost.apps','mmi_botid',_binary 'qmaiqbz1e3fo8qz1nsmkhqbznh',0); -INSERT INTO `PluginKeyValueStore` VALUES ('com.mattermost.calls','mmi_botid',_binary 'o113xcgte78kpezuouwcr6abpo',0); -INSERT INTO `PluginKeyValueStore` VALUES ('com.mattermost.nps','ServerUpgrade-7.10.0',_binary '{\"server_version\":\"7.10.0\",\"upgrade_at\":\"2023-05-15T08:24:19.013024124Z\"}',0); -INSERT INTO `PluginKeyValueStore` VALUES ('com.mattermost.nps','Survey-7.10.0',_binary '{\"server_version\":\"7.10.0\",\"create_at\":\"2023-05-15T08:24:19.013024124Z\",\"start_at\":\"2023-06-29T08:24:19.013024124Z\"}',0); -INSERT INTO `PluginKeyValueStore` VALUES ('com.mattermost.nps','WelcomeFeedbackMigration',_binary '{\"CreateAt\":\"2023-05-15T08:24:19.013024124Z\"}',0); -INSERT INTO `PluginKeyValueStore` VALUES ('focalboard','mmi_botid',_binary 'd6eb3jh8iprzpxim14w9hkopbr',0); -INSERT INTO `PluginKeyValueStore` VALUES ('playbooks','mmi_botid',_binary 'ozpddc4xxi85tmrwaqsjmgw1kc',0); -INSERT INTO `Preferences` VALUES ('jactwicuqb8bu8pau8mgjydzeo','channel_approximate_view_time','','1684386592335'); -INSERT INTO `Preferences` VALUES ('jactwicuqb8bu8pau8mgjydzeo','channel_open_time','9g8qo5udpp8dzdud8jex1m6kuh','1684335914329'); -INSERT INTO `Preferences` VALUES ('jactwicuqb8bu8pau8mgjydzeo','direct_channel_show','k8crtspa5bfadc6iu6m93p4orh','true'); -INSERT INTO `Preferences` VALUES ('jactwicuqb8bu8pau8mgjydzeo','drafts','drafts_tour_tip_showed','{\"drafts_tour_tip_showed\":true}'); -INSERT INTO `Preferences` VALUES ('jactwicuqb8bu8pau8mgjydzeo','insights','insights_tutorial_state','{\"insights_modal_viewed\":true}'); -INSERT INTO `Preferences` VALUES ('jactwicuqb8bu8pau8mgjydzeo','onboarding_task_list','onboarding_task_list_open','false'); -INSERT INTO `Preferences` VALUES ('jactwicuqb8bu8pau8mgjydzeo','onboarding_task_list','onboarding_task_list_show','false'); -INSERT INTO `Preferences` VALUES ('jactwicuqb8bu8pau8mgjydzeo','recommended_next_steps','hide','true'); -INSERT INTO `Preferences` VALUES ('jactwicuqb8bu8pau8mgjydzeo','touched','invite_members','true'); -INSERT INTO `Preferences` VALUES ('jactwicuqb8bu8pau8mgjydzeo','tutorial_step','jactwicuqb8bu8pau8mgjydzeo','0'); -INSERT INTO `ProductNoticeViewState` VALUES ('jactwicuqb8bu8pau8mgjydzeo','crt-admin-default_off',1,1684139698); -INSERT INTO `ProductNoticeViewState` VALUES ('jactwicuqb8bu8pau8mgjydzeo','crt-admin-disabled',1,1684139698); -INSERT INTO `ProductNoticeViewState` VALUES ('jactwicuqb8bu8pau8mgjydzeo','crt-user-always-on',1,1684139698); -INSERT INTO `ProductNoticeViewState` VALUES ('jactwicuqb8bu8pau8mgjydzeo','crt-user-default-on',1,1684139698); -INSERT INTO `ProductNoticeViewState` VALUES ('jactwicuqb8bu8pau8mgjydzeo','desktop_upgrade_v5.2',1,1684139698); -INSERT INTO `ProductNoticeViewState` VALUES ('jactwicuqb8bu8pau8mgjydzeo','server_upgrade_v7.9',1,1684139698); -INSERT INTO `ProductNoticeViewState` VALUES ('jactwicuqb8bu8pau8mgjydzeo','unsupported-server-v5.37',1,1684139698); -INSERT INTO `PublicChannels` VALUES ('8sz36rga1in69gaunpogq95r1w',0,'35odngbgr7yw3bf13o8kg85ngh','Town Square','town-square','',''); -INSERT INTO `PublicChannels` VALUES ('fi1muawz1bybue4gwu95kni4eh',0,'35odngbgr7yw3bf13o8kg85ngh','Off-Topic','off-topic','',''); -INSERT INTO `Roles` VALUES ('13bs7grka7f45g6eskmqbuypbw','team_user','authentication.roles.team_user.name','authentication.roles.team_user.description',1684139050819,1684139055707,0,' playbook_public_create list_team_channels join_public_channels playbook_private_create create_private_channel add_user_to_team read_public_channel view_team create_public_channel invite_user',1,1); -INSERT INTO `Roles` VALUES ('1assaqn3tt899xeda1aiop8bky','run_admin','authentication.roles.run_admin.name','authentication.roles.run_admin.description',1684139050763,1684139055713,0,' run_manage_properties run_manage_members',1,1); -INSERT INTO `Roles` VALUES ('7eh3dpufq7g4zfza5ku6zacgdo','run_member','authentication.roles.run_member.name','authentication.roles.run_member.description',1684139050908,1684139055719,0,' run_view',1,1); -INSERT INTO `Roles` VALUES ('99faipwtbf8sbes7ipkdfz348e','system_post_all_public','authentication.roles.system_post_all_public.name','authentication.roles.system_post_all_public.description',1684139050876,1684139055725,0,' use_channel_mentions create_post_public use_group_mentions',0,1); -INSERT INTO `Roles` VALUES ('9wqa3318s3fw781rjkpjwbchaw','team_guest','authentication.roles.team_guest.name','authentication.roles.team_guest.description',1684139050859,1684139055732,0,' view_team',1,1); -INSERT INTO `Roles` VALUES ('a8fy4zx49trbbfi45wexsqmxdy','system_user','authentication.roles.global_user.name','authentication.roles.global_user.description',1684139050913,1684139055739,0,' delete_custom_group delete_emojis view_members create_team edit_custom_group create_group_channel manage_custom_group_members create_direct_channel restore_custom_group list_public_teams create_custom_group join_public_teams create_emojis',1,1); -INSERT INTO `Roles` VALUES ('bb9guastc3f99bqd91szo7dkch','team_post_all','authentication.roles.team_post_all.name','authentication.roles.team_post_all.description',1684139050903,1684139055745,0,' create_post use_channel_mentions use_group_mentions',0,1); -INSERT INTO `Roles` VALUES ('djorm5qfbpdimcdg8b8wdku5na','system_user_manager','authentication.roles.system_user_manager.name','authentication.roles.system_user_manager.description',1684139050798,1684139055752,0,' sysconsole_read_authentication_saml read_ldap_sync_job delete_public_channel sysconsole_read_authentication_ldap test_ldap sysconsole_write_user_management_teams convert_public_channel_to_private join_public_teams add_user_to_team sysconsole_read_user_management_groups manage_public_channel_members sysconsole_write_user_management_channels read_channel view_team manage_channel_roles sysconsole_read_user_management_permissions manage_team_roles read_private_channel_groups sysconsole_read_authentication_password remove_user_from_team join_private_teams sysconsole_read_user_management_channels sysconsole_read_authentication_email sysconsole_read_authentication_signup sysconsole_read_authentication_mfa sysconsole_read_authentication_openid list_private_teams list_public_teams sysconsole_write_user_management_groups delete_private_channel manage_public_channel_properties manage_team read_public_channel convert_private_channel_to_public manage_private_channel_members sysconsole_read_authentication_guest_access sysconsole_read_user_management_teams read_public_channel_groups manage_private_channel_properties',0,1); -INSERT INTO `Roles` VALUES ('jbrz4h5gqt877cuxh57absnc7c','custom_group_user','authentication.roles.custom_group_user.name','authentication.roles.custom_group_user.description',1684139050893,1684139055757,0,'',0,0); -INSERT INTO `Roles` VALUES ('jfuzyuzguiysmcb1fmtfnme6sc','system_admin','authentication.roles.global_admin.name','authentication.roles.global_admin.description',1684139050846,1684139055764,0,' sysconsole_read_experimental_feature_flags run_view import_team delete_emojis playbook_public_manage_members manage_team sysconsole_read_site_posts list_users_without_team get_saml_cert_status sysconsole_write_experimental_features sysconsole_read_user_management_users run_manage_members join_public_channels restore_custom_group remove_others_reactions create_compliance_export_job sysconsole_read_environment_performance_monitoring sysconsole_write_integrations_cors test_elasticsearch remove_reaction read_public_channel manage_roles sysconsole_write_environment_push_notification_server create_custom_group sysconsole_write_environment_database create_ldap_sync_job sysconsole_write_integrations_integration_management sysconsole_write_site_notices create_post_public use_group_mentions sysconsole_write_compliance_custom_terms_of_service create_post_ephemeral sysconsole_read_products_boards sysconsole_write_integrations_gif sysconsole_write_environment_performance_monitoring manage_license_information get_logs read_data_retention_job add_saml_idp_cert sysconsole_write_authentication_signup manage_slash_commands download_compliance_export_result invalidate_email_invite add_saml_public_cert read_other_users_teams use_channel_mentions sysconsole_read_environment_logging sysconsole_read_compliance_compliance_monitoring manage_system assign_bot invalidate_caches manage_bots invite_guest sysconsole_read_compliance_data_retention_policy view_members purge_bleve_indexes sysconsole_read_site_announcement_banner sysconsole_read_user_management_channels create_group_channel sysconsole_read_site_notifications sysconsole_write_authentication_password create_elasticsearch_post_indexing_job playbook_private_make_public sysconsole_read_environment_developer manage_shared_channels sysconsole_read_reporting_server_logs sysconsole_read_compliance_compliance_export manage_others_slash_commands create_direct_channel demote_to_guest read_others_bots manage_team_roles sysconsole_write_about_edition_and_license run_create sysconsole_write_user_management_channels sysconsole_read_plugins delete_public_channel sysconsole_read_reporting_team_statistics playbook_public_make_private add_ldap_public_cert create_team sysconsole_read_authentication_openid create_post edit_brand manage_others_bots delete_others_posts use_slash_commands read_audits edit_post remove_saml_private_cert sysconsole_write_compliance_compliance_monitoring reload_config sysconsole_write_plugins sysconsole_read_user_management_groups playbook_private_view test_email playbook_private_create add_saml_private_cert sysconsole_read_site_users_and_teams manage_private_channel_members remove_ldap_public_cert create_post_bleve_indexes_job manage_public_channel_members promote_guest delete_post playbook_private_manage_properties sysconsole_write_experimental_feature_flags test_site_url manage_others_incoming_webhooks read_private_channel_groups sysconsole_read_site_public_links sysconsole_write_products_boards sysconsole_read_integrations_integration_management playbook_private_manage_roles edit_other_users sysconsole_write_compliance_compliance_export sysconsole_read_authentication_email sysconsole_write_site_public_links sysconsole_write_environment_session_lengths sysconsole_write_site_emoji remove_saml_idp_cert edit_others_posts sysconsole_read_site_notices create_private_channel sysconsole_write_environment_image_proxy list_public_teams sysconsole_read_authentication_password join_public_teams read_jobs sysconsole_write_authentication_email manage_private_channel_properties read_license_information sysconsole_read_authentication_ldap create_data_retention_job manage_oauth assign_system_admin_role remove_saml_public_cert sysconsole_write_environment_elasticsearch list_team_channels list_private_teams sysconsole_read_environment_web_server test_ldap convert_private_channel_to_public create_user_access_token sysconsole_write_user_management_groups read_user_access_token create_bot sysconsole_write_integrations_bot_accounts create_emojis sysconsole_write_reporting_server_logs manage_others_outgoing_webhooks sysconsole_read_user_management_permissions manage_secure_connections sysconsole_write_reporting_team_statistics manage_system_wide_oauth read_channel playbook_public_create playbook_public_manage_roles revoke_user_access_token get_analytics get_public_link sysconsole_write_authentication_mfa sysconsole_write_user_management_permissions read_elasticsearch_post_indexing_job delete_private_channel sysconsole_read_authentication_saml add_reaction sysconsole_write_site_notifications sysconsole_write_site_announcement_banner sysconsole_write_experimental_bleve view_team invite_user sysconsole_read_environment_push_notification_server manage_public_channel_properties sysconsole_read_reporting_site_statistics remove_user_from_team sysconsole_write_authentication_openid playbook_private_manage_members sysconsole_write_environment_rate_limiting sysconsole_write_site_customization sysconsole_read_integrations_cors sysconsole_write_environment_web_server delete_custom_group purge_elasticsearch_indexes add_user_to_team edit_custom_group sysconsole_write_environment_smtp read_public_channel_groups sysconsole_write_environment_logging sysconsole_read_site_emoji sysconsole_read_environment_file_storage sysconsole_write_user_management_users manage_custom_group_members sysconsole_read_about_edition_and_license sysconsole_read_site_file_sharing_and_downloads sysconsole_read_site_localization sysconsole_read_integrations_gif sysconsole_read_environment_elasticsearch sysconsole_write_site_localization sysconsole_read_site_customization remove_ldap_private_cert playbook_public_view read_compliance_export_job sysconsole_write_billing sysconsole_write_user_management_teams join_private_teams sysconsole_write_site_users_and_teams sysconsole_write_site_file_sharing_and_downloads get_saml_metadata_from_idp read_elasticsearch_post_aggregation_job delete_others_emojis run_manage_properties sysconsole_read_environment_high_availability sysconsole_read_environment_rate_limiting create_public_channel sysconsole_read_environment_smtp manage_outgoing_webhooks sysconsole_write_environment_file_storage sysconsole_read_integrations_bot_accounts sysconsole_write_user_management_system_roles manage_jobs sysconsole_read_environment_image_proxy sysconsole_write_authentication_ldap sysconsole_read_environment_session_lengths playbook_public_manage_properties sysconsole_write_reporting_site_statistics upload_file sysconsole_read_environment_database sysconsole_read_experimental_features sysconsole_read_experimental_bleve sysconsole_write_authentication_guest_access read_ldap_sync_job recycle_database_connections sysconsole_read_authentication_mfa sysconsole_read_compliance_custom_terms_of_service manage_incoming_webhooks sysconsole_read_user_management_system_roles create_elasticsearch_post_aggregation_job convert_public_channel_to_private sysconsole_write_authentication_saml sysconsole_read_authentication_signup sysconsole_write_compliance_data_retention_policy read_bots test_s3 sysconsole_write_site_posts add_ldap_private_cert manage_channel_roles sysconsole_read_authentication_guest_access sysconsole_read_billing sysconsole_write_environment_developer sysconsole_read_user_management_teams read_deleted_posts sysconsole_write_environment_high_availability',1,1); -INSERT INTO `Roles` VALUES ('jh5f5efjm38ebdsypjutm1zjzr','system_manager','authentication.roles.system_manager.name','authentication.roles.system_manager.description',1684139050838,1684139055771,0,' sysconsole_write_site_public_links sysconsole_write_integrations_bot_accounts test_elasticsearch sysconsole_write_site_notices sysconsole_write_site_customization sysconsole_read_environment_developer sysconsole_read_authentication_password sysconsole_write_environment_logging sysconsole_write_environment_session_lengths sysconsole_read_products_boards manage_team test_email sysconsole_read_environment_logging sysconsole_write_site_localization get_logs read_ldap_sync_job read_license_information list_public_teams sysconsole_read_environment_rate_limiting sysconsole_write_user_management_groups join_public_teams join_private_teams sysconsole_read_site_emoji manage_team_roles sysconsole_read_user_management_groups sysconsole_write_integrations_gif sysconsole_write_environment_web_server sysconsole_read_site_announcement_banner sysconsole_write_user_management_teams sysconsole_write_site_notifications invalidate_caches sysconsole_write_site_announcement_banner test_site_url sysconsole_read_user_management_teams test_ldap sysconsole_read_site_posts sysconsole_write_site_file_sharing_and_downloads sysconsole_read_authentication_signup view_team recycle_database_connections sysconsole_write_environment_push_notification_server sysconsole_read_environment_session_lengths sysconsole_read_environment_smtp get_analytics sysconsole_read_site_notices sysconsole_read_user_management_permissions sysconsole_read_authentication_email purge_elasticsearch_indexes read_elasticsearch_post_indexing_job sysconsole_write_site_emoji convert_public_channel_to_private manage_private_channel_properties sysconsole_read_reporting_site_statistics read_elasticsearch_post_aggregation_job read_public_channel_groups create_elasticsearch_post_indexing_job sysconsole_write_integrations_cors manage_public_channel_members sysconsole_read_authentication_guest_access create_elasticsearch_post_aggregation_job sysconsole_write_environment_performance_monitoring sysconsole_write_products_boards sysconsole_write_environment_developer sysconsole_read_site_public_links sysconsole_write_user_management_permissions sysconsole_read_environment_push_notification_server sysconsole_write_environment_image_proxy sysconsole_write_site_users_and_teams sysconsole_read_site_file_sharing_and_downloads sysconsole_read_environment_performance_monitoring sysconsole_write_environment_smtp sysconsole_read_environment_elasticsearch delete_private_channel sysconsole_read_plugins sysconsole_read_site_users_and_teams sysconsole_read_environment_file_storage read_private_channel_groups read_public_channel sysconsole_read_site_localization sysconsole_write_environment_high_availability add_user_to_team sysconsole_write_integrations_integration_management sysconsole_read_reporting_team_statistics sysconsole_read_environment_image_proxy manage_private_channel_members sysconsole_read_authentication_mfa sysconsole_write_environment_file_storage reload_config sysconsole_read_authentication_openid sysconsole_write_environment_database sysconsole_read_environment_web_server sysconsole_write_environment_rate_limiting test_s3 remove_user_from_team list_private_teams read_channel sysconsole_read_authentication_saml edit_brand sysconsole_read_integrations_bot_accounts sysconsole_read_site_customization sysconsole_read_environment_database sysconsole_read_integrations_cors sysconsole_read_integrations_integration_management sysconsole_read_reporting_server_logs sysconsole_read_about_edition_and_license sysconsole_read_user_management_channels convert_private_channel_to_public sysconsole_write_site_posts sysconsole_write_environment_elasticsearch sysconsole_read_environment_high_availability sysconsole_read_authentication_ldap manage_public_channel_properties delete_public_channel sysconsole_read_site_notifications sysconsole_read_integrations_gif sysconsole_write_user_management_channels manage_channel_roles',0,1); -INSERT INTO `Roles` VALUES ('jsp8rgiy3tdwi8s3734gqn1t8a','team_admin','authentication.roles.team_admin.name','authentication.roles.team_admin.description',1684139050825,1684139055777,0,' remove_reaction create_post playbook_private_manage_roles read_private_channel_groups manage_team_roles convert_private_channel_to_public import_team read_public_channel_groups delete_others_posts manage_private_channel_members manage_public_channel_members manage_others_slash_commands manage_others_incoming_webhooks manage_incoming_webhooks manage_channel_roles convert_public_channel_to_private add_reaction manage_outgoing_webhooks manage_team use_group_mentions remove_user_from_team manage_others_outgoing_webhooks playbook_public_manage_roles use_channel_mentions manage_slash_commands delete_post',1,1); -INSERT INTO `Roles` VALUES ('jy7kh7nt8pbeuq3y9xnk99ofhy','playbook_admin','authentication.roles.playbook_admin.name','authentication.roles.playbook_admin.description',1684139050831,1684139055783,0,' playbook_private_manage_properties playbook_public_make_private playbook_public_manage_members playbook_public_manage_roles playbook_public_manage_properties playbook_private_manage_members playbook_private_manage_roles',1,1); -INSERT INTO `Roles` VALUES ('kfsh3mwix7gf7nmbz9osxu7w3h','system_user_access_token','authentication.roles.system_user_access_token.name','authentication.roles.system_user_access_token.description',1684139050917,1684139055789,0,' read_user_access_token revoke_user_access_token create_user_access_token',0,1); -INSERT INTO `Roles` VALUES ('mg3ei79rwjbb9cisojazuetrer','channel_admin','authentication.roles.channel_admin.name','authentication.roles.channel_admin.description',1684139050812,1684139055795,0,' remove_reaction read_public_channel_groups add_reaction use_channel_mentions use_group_mentions manage_private_channel_members manage_public_channel_members manage_channel_roles read_private_channel_groups create_post',1,1); -INSERT INTO `Roles` VALUES ('nnt36qb6ebgx9jp4jjstmm4x8c','channel_guest','authentication.roles.channel_guest.name','authentication.roles.channel_guest.description',1684139050898,1684139055801,0,' use_slash_commands read_channel add_reaction remove_reaction upload_file edit_post create_post use_channel_mentions',1,1); -INSERT INTO `Roles` VALUES ('u61ohe941brj9rbwji51s4umpy','team_post_all_public','authentication.roles.team_post_all_public.name','authentication.roles.team_post_all_public.description',1684139050865,1684139055808,0,' create_post_public use_channel_mentions use_group_mentions',0,1); -INSERT INTO `Roles` VALUES ('u74k94nxqtri7q4mrkanrwj4ky','system_custom_group_admin','authentication.roles.system_custom_group_admin.name','authentication.roles.system_custom_group_admin.description',1684139050805,1684139055815,0,' edit_custom_group delete_custom_group restore_custom_group manage_custom_group_members create_custom_group',0,1); -INSERT INTO `Roles` VALUES ('u9kkc9q3hfnbzn7cqh1ekqxxzr','system_post_all','authentication.roles.system_post_all.name','authentication.roles.system_post_all.description',1684139050791,1684139055821,0,' use_channel_mentions use_group_mentions create_post',0,1); -INSERT INTO `Roles` VALUES ('w393gw6mfi8djnr1iak81zsz9e','channel_user','authentication.roles.channel_user.name','authentication.roles.channel_user.description',1684139050853,1684139055827,0,' manage_public_channel_properties remove_reaction use_channel_mentions delete_post manage_public_channel_members read_private_channel_groups delete_private_channel add_reaction use_slash_commands upload_file use_group_mentions read_public_channel_groups get_public_link manage_private_channel_members read_channel manage_private_channel_properties create_post edit_post delete_public_channel',1,1); -INSERT INTO `Roles` VALUES ('ww84ayxwipyg9eyrcz3ikffy9e','system_read_only_admin','authentication.roles.system_read_only_admin.name','authentication.roles.system_read_only_admin.description',1684139050889,1684139055833,0,' sysconsole_read_integrations_gif sysconsole_read_site_users_and_teams read_elasticsearch_post_aggregation_job list_private_teams sysconsole_read_user_management_channels read_channel get_logs sysconsole_read_reporting_site_statistics sysconsole_read_products_boards sysconsole_read_about_edition_and_license sysconsole_read_experimental_feature_flags sysconsole_read_site_customization read_other_users_teams read_license_information sysconsole_read_authentication_password read_audits sysconsole_read_integrations_bot_accounts view_team sysconsole_read_environment_smtp sysconsole_read_site_localization sysconsole_read_experimental_features sysconsole_read_compliance_compliance_export sysconsole_read_authentication_saml test_ldap read_private_channel_groups sysconsole_read_authentication_signup download_compliance_export_result sysconsole_read_compliance_compliance_monitoring sysconsole_read_reporting_server_logs sysconsole_read_authentication_mfa sysconsole_read_integrations_integration_management sysconsole_read_environment_database sysconsole_read_site_file_sharing_and_downloads sysconsole_read_environment_elasticsearch sysconsole_read_user_management_permissions sysconsole_read_site_announcement_banner sysconsole_read_site_posts sysconsole_read_reporting_team_statistics sysconsole_read_authentication_openid sysconsole_read_user_management_teams sysconsole_read_plugins list_public_teams sysconsole_read_experimental_bleve sysconsole_read_integrations_cors sysconsole_read_environment_push_notification_server sysconsole_read_site_notices read_data_retention_job read_public_channel sysconsole_read_compliance_custom_terms_of_service sysconsole_read_authentication_guest_access sysconsole_read_environment_session_lengths sysconsole_read_environment_performance_monitoring sysconsole_read_environment_file_storage sysconsole_read_environment_high_availability sysconsole_read_compliance_data_retention_policy sysconsole_read_site_public_links sysconsole_read_authentication_email sysconsole_read_environment_image_proxy read_ldap_sync_job sysconsole_read_site_notifications read_elasticsearch_post_indexing_job get_analytics sysconsole_read_user_management_users sysconsole_read_environment_web_server sysconsole_read_environment_logging sysconsole_read_site_emoji sysconsole_read_user_management_groups sysconsole_read_environment_developer sysconsole_read_environment_rate_limiting sysconsole_read_authentication_ldap read_public_channel_groups read_compliance_export_job',0,1); -INSERT INTO `Roles` VALUES ('wxi1n6jnp7yt9xxezd6xtg43nh','system_guest','authentication.roles.global_guest.name','authentication.roles.global_guest.description',1684139050871,1684139055839,0,' create_group_channel create_direct_channel',1,1); -INSERT INTO `Roles` VALUES ('zdz95ncqn38ijggoho6h3e4ghr','playbook_member','authentication.roles.playbook_member.name','authentication.roles.playbook_member.description',1684139050738,1684139055845,0,' playbook_private_view playbook_private_manage_members playbook_private_manage_properties run_create playbook_public_view playbook_public_manage_members playbook_public_manage_properties',1,1); -INSERT INTO `SidebarCategories` VALUES ('channels_jactwicuqb8bu8pau8mgjydzeo_35odngbgr7yw3bf13o8kg85ngh','jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh',10,'','channels','Channels',0,0); -INSERT INTO `SidebarCategories` VALUES ('channels_k8crtspa5bfadc6iu6m93p4orh_35odngbgr7yw3bf13o8kg85ngh','k8crtspa5bfadc6iu6m93p4orh','35odngbgr7yw3bf13o8kg85ngh',10,'','channels','Channels',0,0); -INSERT INTO `SidebarCategories` VALUES ('direct_messages_jactwicuqb8bu8pau8mgjydzeo_35odngbgr7yw3bf13o8kg85ngh','jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh',20,'recent','direct_messages','Direct Messages',0,0); -INSERT INTO `SidebarCategories` VALUES ('direct_messages_k8crtspa5bfadc6iu6m93p4orh_35odngbgr7yw3bf13o8kg85ngh','k8crtspa5bfadc6iu6m93p4orh','35odngbgr7yw3bf13o8kg85ngh',20,'recent','direct_messages','Direct Messages',0,0); -INSERT INTO `SidebarCategories` VALUES ('favorites_jactwicuqb8bu8pau8mgjydzeo_35odngbgr7yw3bf13o8kg85ngh','jactwicuqb8bu8pau8mgjydzeo','35odngbgr7yw3bf13o8kg85ngh',0,'','favorites','Favorites',0,0); -INSERT INTO `SidebarCategories` VALUES ('favorites_k8crtspa5bfadc6iu6m93p4orh_35odngbgr7yw3bf13o8kg85ngh','k8crtspa5bfadc6iu6m93p4orh','35odngbgr7yw3bf13o8kg85ngh',0,'','favorites','Favorites',0,0); -INSERT INTO `Status` VALUES ('jactwicuqb8bu8pau8mgjydzeo','away',0,1684387416906,0,''); -INSERT INTO `Status` VALUES ('k8crtspa5bfadc6iu6m93p4orh','offline',0,1684153509983,0,''); -INSERT INTO `Systems` VALUES ('about_subsection_permissions','true'); -INSERT INTO `Systems` VALUES ('add_billing_permissions','true'); -INSERT INTO `Systems` VALUES ('add_bot_permissions','true'); -INSERT INTO `Systems` VALUES ('add_convert_channel_permissions','true'); -INSERT INTO `Systems` VALUES ('add_manage_guests_permissions','true'); -INSERT INTO `Systems` VALUES ('add_system_console_permissions','true'); -INSERT INTO `Systems` VALUES ('add_system_roles_permissions','true'); -INSERT INTO `Systems` VALUES ('add_use_group_mentions_permission','true'); -INSERT INTO `Systems` VALUES ('AdvancedPermissionsMigrationComplete','true'); -INSERT INTO `Systems` VALUES ('apply_channel_manage_delete_to_channel_user','true'); -INSERT INTO `Systems` VALUES ('AsymmetricSigningKey','{\"ecdsa_key\":{\"curve\":\"P-256\",\"x\":39885688012791743430902392044132023131306318630717482885626462746284368676562,\"y\":56732587617706431314588083882840694296577699304576161589544790090711522351963,\"d\":61158628144358852948138055426802208098608450055237759428816151150343005223320}}'); -INSERT INTO `Systems` VALUES ('authentication_subsection_permissions','true'); -INSERT INTO `Systems` VALUES ('channel_moderations_permissions','true'); -INSERT INTO `Systems` VALUES ('compliance_subsection_permissions','true'); -INSERT INTO `Systems` VALUES ('ContentExtractionConfigDefaultTrueMigrationComplete','true'); -INSERT INTO `Systems` VALUES ('CRTChannelMembershipCountsMigrationComplete','true'); -INSERT INTO `Systems` VALUES ('CRTThreadCountsAndUnreadsMigrationComplete','true'); -INSERT INTO `Systems` VALUES ('CustomGroupAdminRoleCreationMigrationComplete','true'); -INSERT INTO `Systems` VALUES ('custom_groups_permissions','true'); -INSERT INTO `Systems` VALUES ('custom_groups_permission_restore','true'); -INSERT INTO `Systems` VALUES ('DiagnosticId','6nz6d7fp5tdcbrfui1xnubzr8o'); -INSERT INTO `Systems` VALUES ('download_compliance_export_results','true'); -INSERT INTO `Systems` VALUES ('EmojisPermissionsMigrationComplete','true'); -INSERT INTO `Systems` VALUES ('emoji_permissions_split','true'); -INSERT INTO `Systems` VALUES ('environment_subsection_permissions','true'); -INSERT INTO `Systems` VALUES ('experimental_subsection_permissions','true'); -INSERT INTO `Systems` VALUES ('FirstServerRunTimestamp','1684139050764'); -INSERT INTO `Systems` VALUES ('GuestRolesCreationMigrationComplete','true'); -INSERT INTO `Systems` VALUES ('InstallationDate','1684139058969'); -INSERT INTO `Systems` VALUES ('integrations_subsection_permissions','true'); -INSERT INTO `Systems` VALUES ('LastSecurityTime','1684386571805'); -INSERT INTO `Systems` VALUES ('list_join_public_private_teams','true'); -INSERT INTO `Systems` VALUES ('manage_secure_connections_permissions','true'); -INSERT INTO `Systems` VALUES ('manage_shared_channel_permissions','true'); -INSERT INTO `Systems` VALUES ('migration_advanced_permissions_phase_2','true'); -INSERT INTO `Systems` VALUES ('PlaybookRolesCreationMigrationComplete','true'); -INSERT INTO `Systems` VALUES ('playbooks_manage_roles','true'); -INSERT INTO `Systems` VALUES ('playbooks_permissions','true'); -INSERT INTO `Systems` VALUES ('PostActionCookieSecret','{\"key\":\"YotujW0OeUnuIjCwfomw+BuaoB63KtxoBb6NLLrlzIA=\"}'); -INSERT INTO `Systems` VALUES ('PostPriorityConfigDefaultTrueMigrationComplete','true'); -INSERT INTO `Systems` VALUES ('products_boards','true'); -INSERT INTO `Systems` VALUES ('RemainingSchemaMigrations','true'); -INSERT INTO `Systems` VALUES ('remove_channel_manage_delete_from_team_user','true'); -INSERT INTO `Systems` VALUES ('remove_permanent_delete_user','true'); -INSERT INTO `Systems` VALUES ('reporting_subsection_permissions','true'); -INSERT INTO `Systems` VALUES ('site_subsection_permissions','true'); -INSERT INTO `Systems` VALUES ('SystemConsoleRolesCreationMigrationComplete','true'); -INSERT INTO `Systems` VALUES ('test_email_ancillary_permission','true'); -INSERT INTO `Systems` VALUES ('view_members_new_permission','true'); -INSERT INTO `Systems` VALUES ('webhook_permissions_split','true'); -INSERT INTO `TeamMembers` VALUES ('35odngbgr7yw3bf13o8kg85ngh','jactwicuqb8bu8pau8mgjydzeo','',0,1,1,0,1684139715876); -INSERT INTO `TeamMembers` VALUES ('35odngbgr7yw3bf13o8kg85ngh','k8crtspa5bfadc6iu6m93p4orh','',0,1,0,0,1684146863252); -INSERT INTO `Teams` VALUES ('35odngbgr7yw3bf13o8kg85ngh',1684139715847,1684139715847,0,'nautobot-test-team','nautobot-test-team','','admin@example.com','O','','','p6beof3e5fyxzgboo3ana6ra6c',NULL,0,0,NULL,0); -INSERT INTO `UserAccessTokens` VALUES ('pjz3u1ru3jfkt8ib5fz4sraybw','5qsffxoapt883qfdygbdgf17jy','k8crtspa5bfadc6iu6m93p4orh','nautobot',1); -INSERT INTO `Users` VALUES ('6g9zjk1d7brz8rqiypd9kypn5c',1684139058969,1684139059003,0,'feedbackbot','',NULL,'','feedbackbot@localhost',0,'','Feedbackbot','','system_user',0,'{}','{\"push\": \"mention\", \"email\": \"true\", \"channel\": \"true\", \"desktop\": \"mention\", \"comments\": \"never\", \"first_name\": \"false\", \"push_status\": \"away\", \"mention_keys\": \"\", \"push_threads\": \"all\", \"desktop_sound\": \"true\", \"email_threads\": \"all\", \"desktop_threads\": \"all\"}',1684139058969,1684139059003,0,'en',0,'','','{\"manualTimezone\": \"\", \"automaticTimezone\": \"\", \"useAutomaticTimezone\": \"true\"}',NULL); -INSERT INTO `Users` VALUES ('d6eb3jh8iprzpxim14w9hkopbr',1684139114820,1684139114820,0,'boards','',NULL,'','boards@localhost',0,'','Boards','','system_user',0,'{}','{\"push\": \"mention\", \"email\": \"true\", \"channel\": \"true\", \"desktop\": \"mention\", \"comments\": \"never\", \"first_name\": \"false\", \"push_status\": \"away\", \"mention_keys\": \"\", \"push_threads\": \"all\", \"desktop_sound\": \"true\", \"email_threads\": \"all\", \"desktop_threads\": \"all\"}',1684139114820,0,0,'en',0,'','','{\"manualTimezone\": \"\", \"automaticTimezone\": \"\", \"useAutomaticTimezone\": \"true\"}',NULL); -INSERT INTO `Users` VALUES ('dk8nggnjtt8yipcbmuqem4rfkc',1684139700005,1684139700005,0,'system-bot','',NULL,'','system-bot@localhost',0,'','System','','system_user',0,'{}','{\"push\": \"mention\", \"email\": \"true\", \"channel\": \"true\", \"desktop\": \"mention\", \"comments\": \"never\", \"first_name\": \"false\", \"push_status\": \"away\", \"mention_keys\": \"\", \"push_threads\": \"all\", \"desktop_sound\": \"true\", \"email_threads\": \"all\", \"desktop_threads\": \"all\"}',1684139700005,0,0,'en',0,'','','{\"manualTimezone\": \"\", \"automaticTimezone\": \"\", \"useAutomaticTimezone\": \"true\"}',NULL); -INSERT INTO `Users` VALUES ('jactwicuqb8bu8pau8mgjydzeo',1684139698424,1684251561795,0,'admin','$2a$10$FA7sexy5OipYSWLIYaKTQOHrgRCFSUkxoGRA1X4nXvX3oSL2dEMoG',NULL,'','admin@example.com',0,'','','','system_admin system_user',0,'{}','{\"push\": \"mention\", \"email\": \"true\", \"channel\": \"true\", \"desktop\": \"mention\", \"comments\": \"never\", \"first_name\": \"false\", \"push_status\": \"away\", \"mention_keys\": \"\", \"push_threads\": \"all\", \"desktop_sound\": \"true\", \"email_threads\": \"all\", \"desktop_threads\": \"all\"}',1684251561795,0,0,'en',0,'','','{\"manualTimezone\": \"\", \"automaticTimezone\": \"\", \"useAutomaticTimezone\": \"true\"}',NULL); -INSERT INTO `Users` VALUES ('k8crtspa5bfadc6iu6m93p4orh',1684146025502,1684146863269,0,'nautobot-test-bot','',NULL,'','nautobot-test-bot@localhost',0,'','Nautobot Test Bot','','system_user system_admin',0,'{}','{\"push\": \"mention\", \"email\": \"true\", \"channel\": \"true\", \"desktop\": \"mention\", \"comments\": \"never\", \"first_name\": \"false\", \"push_status\": \"away\", \"mention_keys\": \"\", \"push_threads\": \"all\", \"desktop_sound\": \"true\", \"email_threads\": \"all\", \"desktop_threads\": \"all\"}',1684146025502,0,0,'en',0,'','','{\"manualTimezone\": \"\", \"automaticTimezone\": \"\", \"useAutomaticTimezone\": \"true\"}',NULL); -INSERT INTO `Users` VALUES ('o113xcgte78kpezuouwcr6abpo',1684139059883,1684139059883,0,'calls','',NULL,'','calls@localhost',0,'','Calls','','system_user',0,'{}','{\"push\": \"mention\", \"email\": \"true\", \"channel\": \"true\", \"desktop\": \"mention\", \"comments\": \"never\", \"first_name\": \"false\", \"push_status\": \"away\", \"mention_keys\": \"\", \"push_threads\": \"all\", \"desktop_sound\": \"true\", \"email_threads\": \"all\", \"desktop_threads\": \"all\"}',1684139059883,0,0,'en',0,'','','{\"manualTimezone\": \"\", \"automaticTimezone\": \"\", \"useAutomaticTimezone\": \"true\"}',NULL); -INSERT INTO `Users` VALUES ('ozpddc4xxi85tmrwaqsjmgw1kc',1684139059816,1684387226829,0,'playbooks','',NULL,'','playbooks@localhost',0,'','Playbooks','','system_user',0,'{}','{\"push\": \"mention\", \"email\": \"true\", \"channel\": \"true\", \"desktop\": \"mention\", \"comments\": \"never\", \"first_name\": \"false\", \"push_status\": \"away\", \"mention_keys\": \"\", \"push_threads\": \"all\", \"desktop_sound\": \"true\", \"email_threads\": \"all\", \"desktop_threads\": \"all\"}',1684139059816,1684387226829,0,'en',0,'','','{\"manualTimezone\": \"\", \"automaticTimezone\": \"\", \"useAutomaticTimezone\": \"true\"}',NULL); -INSERT INTO `Users` VALUES ('qmaiqbz1e3fo8qz1nsmkhqbznh',1684139059446,1684387226467,0,'appsbot','',NULL,'','appsbot@localhost',0,'','Mattermost Apps','','system_user',0,'{}','{\"push\": \"mention\", \"email\": \"true\", \"channel\": \"true\", \"desktop\": \"mention\", \"comments\": \"never\", \"first_name\": \"false\", \"push_status\": \"away\", \"mention_keys\": \"\", \"push_threads\": \"all\", \"desktop_sound\": \"true\", \"email_threads\": \"all\", \"desktop_threads\": \"all\"}',1684139059446,1684387226467,0,'en',0,'','','{\"manualTimezone\": \"\", \"automaticTimezone\": \"\", \"useAutomaticTimezone\": \"true\"}',NULL); -INSERT INTO `db_migrations` VALUES (1,'create_teams'); -INSERT INTO `db_migrations` VALUES (2,'create_team_members'); -INSERT INTO `db_migrations` VALUES (3,'create_cluster_discovery'); -INSERT INTO `db_migrations` VALUES (4,'create_command_webhooks'); -INSERT INTO `db_migrations` VALUES (5,'create_compliances'); -INSERT INTO `db_migrations` VALUES (6,'create_emojis'); -INSERT INTO `db_migrations` VALUES (7,'create_user_groups'); -INSERT INTO `db_migrations` VALUES (8,'create_group_members'); -INSERT INTO `db_migrations` VALUES (9,'create_group_teams'); -INSERT INTO `db_migrations` VALUES (10,'create_group_channels'); -INSERT INTO `db_migrations` VALUES (11,'create_link_metadata'); -INSERT INTO `db_migrations` VALUES (12,'create_commands'); -INSERT INTO `db_migrations` VALUES (13,'create_incoming_webhooks'); -INSERT INTO `db_migrations` VALUES (14,'create_outgoing_webhooks'); -INSERT INTO `db_migrations` VALUES (15,'create_systems'); -INSERT INTO `db_migrations` VALUES (16,'create_reactions'); -INSERT INTO `db_migrations` VALUES (17,'create_roles'); -INSERT INTO `db_migrations` VALUES (18,'create_schemes'); -INSERT INTO `db_migrations` VALUES (19,'create_licenses'); -INSERT INTO `db_migrations` VALUES (20,'create_posts'); -INSERT INTO `db_migrations` VALUES (21,'create_product_notice_view_state'); -INSERT INTO `db_migrations` VALUES (22,'create_sessions'); -INSERT INTO `db_migrations` VALUES (23,'create_terms_of_service'); -INSERT INTO `db_migrations` VALUES (24,'create_audits'); -INSERT INTO `db_migrations` VALUES (25,'create_oauth_access_data'); -INSERT INTO `db_migrations` VALUES (26,'create_preferences'); -INSERT INTO `db_migrations` VALUES (27,'create_status'); -INSERT INTO `db_migrations` VALUES (28,'create_tokens'); -INSERT INTO `db_migrations` VALUES (29,'create_bots'); -INSERT INTO `db_migrations` VALUES (30,'create_user_access_tokens'); -INSERT INTO `db_migrations` VALUES (31,'create_remote_clusters'); -INSERT INTO `db_migrations` VALUES (32,'create_sharedchannels'); -INSERT INTO `db_migrations` VALUES (33,'create_sidebar_channels'); -INSERT INTO `db_migrations` VALUES (34,'create_oauthauthdata'); -INSERT INTO `db_migrations` VALUES (35,'create_sharedchannelattachments'); -INSERT INTO `db_migrations` VALUES (36,'create_sharedchannelusers'); -INSERT INTO `db_migrations` VALUES (37,'create_sharedchannelremotes'); -INSERT INTO `db_migrations` VALUES (38,'create_jobs'); -INSERT INTO `db_migrations` VALUES (39,'create_channel_member_history'); -INSERT INTO `db_migrations` VALUES (40,'create_sidebar_categories'); -INSERT INTO `db_migrations` VALUES (41,'create_upload_sessions'); -INSERT INTO `db_migrations` VALUES (42,'create_threads'); -INSERT INTO `db_migrations` VALUES (43,'thread_memberships'); -INSERT INTO `db_migrations` VALUES (44,'create_user_terms_of_service'); -INSERT INTO `db_migrations` VALUES (45,'create_plugin_key_value_store'); -INSERT INTO `db_migrations` VALUES (46,'create_users'); -INSERT INTO `db_migrations` VALUES (47,'create_file_info'); -INSERT INTO `db_migrations` VALUES (48,'create_oauth_apps'); -INSERT INTO `db_migrations` VALUES (49,'create_channels'); -INSERT INTO `db_migrations` VALUES (50,'create_channelmembers'); -INSERT INTO `db_migrations` VALUES (51,'create_msg_root_count'); -INSERT INTO `db_migrations` VALUES (52,'create_public_channels'); -INSERT INTO `db_migrations` VALUES (53,'create_retention_policies'); -INSERT INTO `db_migrations` VALUES (54,'create_crt_channelmembership_count'); -INSERT INTO `db_migrations` VALUES (55,'create_crt_thread_count_and_unreads'); -INSERT INTO `db_migrations` VALUES (56,'upgrade_channels_v6.0'); -INSERT INTO `db_migrations` VALUES (57,'upgrade_command_webhooks_v6.0'); -INSERT INTO `db_migrations` VALUES (58,'upgrade_channelmembers_v6.0'); -INSERT INTO `db_migrations` VALUES (59,'upgrade_users_v6.0'); -INSERT INTO `db_migrations` VALUES (60,'upgrade_jobs_v6.0'); -INSERT INTO `db_migrations` VALUES (61,'upgrade_link_metadata_v6.0'); -INSERT INTO `db_migrations` VALUES (62,'upgrade_sessions_v6.0'); -INSERT INTO `db_migrations` VALUES (63,'upgrade_threads_v6.0'); -INSERT INTO `db_migrations` VALUES (64,'upgrade_status_v6.0'); -INSERT INTO `db_migrations` VALUES (65,'upgrade_groupchannels_v6.0'); -INSERT INTO `db_migrations` VALUES (66,'upgrade_posts_v6.0'); -INSERT INTO `db_migrations` VALUES (67,'upgrade_channelmembers_v6.1'); -INSERT INTO `db_migrations` VALUES (68,'upgrade_teammembers_v6.1'); -INSERT INTO `db_migrations` VALUES (69,'upgrade_jobs_v6.1'); -INSERT INTO `db_migrations` VALUES (70,'upgrade_cte_v6.1'); -INSERT INTO `db_migrations` VALUES (71,'upgrade_sessions_v6.1'); -INSERT INTO `db_migrations` VALUES (72,'upgrade_schemes_v6.3'); -INSERT INTO `db_migrations` VALUES (73,'upgrade_plugin_key_value_store_v6.3'); -INSERT INTO `db_migrations` VALUES (74,'upgrade_users_v6.3'); -INSERT INTO `db_migrations` VALUES (75,'alter_upload_sessions_index'); -INSERT INTO `db_migrations` VALUES (76,'upgrade_lastrootpostat'); -INSERT INTO `db_migrations` VALUES (77,'upgrade_users_v6.5'); -INSERT INTO `db_migrations` VALUES (78,'create_oauth_mattermost_app_id'); -INSERT INTO `db_migrations` VALUES (79,'usergroups_displayname_index'); -INSERT INTO `db_migrations` VALUES (80,'posts_createat_id'); -INSERT INTO `db_migrations` VALUES (81,'threads_deleteat'); -INSERT INTO `db_migrations` VALUES (82,'upgrade_oauth_mattermost_app_id'); -INSERT INTO `db_migrations` VALUES (83,'threads_threaddeleteat'); -INSERT INTO `db_migrations` VALUES (84,'recent_searches'); -INSERT INTO `db_migrations` VALUES (85,'fileinfo_add_archived_column'); -INSERT INTO `db_migrations` VALUES (86,'add_cloud_limits_archived'); -INSERT INTO `db_migrations` VALUES (87,'sidebar_categories_index'); -INSERT INTO `db_migrations` VALUES (88,'remaining_migrations'); -INSERT INTO `db_migrations` VALUES (89,'add-channelid-to-reaction'); -INSERT INTO `db_migrations` VALUES (90,'create_enums'); -INSERT INTO `db_migrations` VALUES (91,'create_post_reminder'); -INSERT INTO `db_migrations` VALUES (92,'add_createat_to_teammembers'); -INSERT INTO `db_migrations` VALUES (93,'notify_admin'); -INSERT INTO `db_migrations` VALUES (94,'threads_teamid'); -INSERT INTO `db_migrations` VALUES (95,'remove_posts_parentid'); -INSERT INTO `db_migrations` VALUES (96,'threads_threadteamid'); -INSERT INTO `db_migrations` VALUES (97,'create_posts_priority'); -INSERT INTO `db_migrations` VALUES (98,'create_post_acknowledgements'); -INSERT INTO `db_migrations` VALUES (99,'create_drafts'); -INSERT INTO `db_migrations` VALUES (100,'add_draft_priority_column'); -INSERT INTO `db_migrations` VALUES (101,'create_true_up_review_history'); -INSERT INTO `db_migrations` VALUES (102,'posts_originalid_index'); -INSERT INTO `db_migrations` VALUES (103,'add_sentat_to_notifyadmin'); -INSERT INTO `db_migrations` VALUES (104,'upgrade_notifyadmin'); -INSERT INTO `db_migrations` VALUES (105,'remove_tokens'); -INSERT INTO `focalboard_schema_migrations` VALUES (1,'init'); -INSERT INTO `focalboard_schema_migrations` VALUES (2,'system_settings_table'); -INSERT INTO `focalboard_schema_migrations` VALUES (3,'blocks_rootid'); -INSERT INTO `focalboard_schema_migrations` VALUES (4,'auth_table'); -INSERT INTO `focalboard_schema_migrations` VALUES (5,'blocks_modifiedby'); -INSERT INTO `focalboard_schema_migrations` VALUES (6,'sharing_table'); -INSERT INTO `focalboard_schema_migrations` VALUES (7,'workspaces_table'); -INSERT INTO `focalboard_schema_migrations` VALUES (8,'teams'); -INSERT INTO `focalboard_schema_migrations` VALUES (9,'blocks_history'); -INSERT INTO `focalboard_schema_migrations` VALUES (10,'blocks_created_by'); -INSERT INTO `focalboard_schema_migrations` VALUES (11,'match_collation'); -INSERT INTO `focalboard_schema_migrations` VALUES (12,'match_column_collation'); -INSERT INTO `focalboard_schema_migrations` VALUES (13,'millisecond_timestamps'); -INSERT INTO `focalboard_schema_migrations` VALUES (14,'add_not_null_constraint'); -INSERT INTO `focalboard_schema_migrations` VALUES (15,'blocks_history_no_nulls'); -INSERT INTO `focalboard_schema_migrations` VALUES (16,'subscriptions_table'); -INSERT INTO `focalboard_schema_migrations` VALUES (17,'add_file_info'); -INSERT INTO `focalboard_schema_migrations` VALUES (18,'add_teams_and_boards'); -INSERT INTO `focalboard_schema_migrations` VALUES (19,'populate_categories'); -INSERT INTO `focalboard_schema_migrations` VALUES (20,'populate_category_blocks'); -INSERT INTO `focalboard_schema_migrations` VALUES (21,'create_boards_members_history'); -INSERT INTO `focalboard_schema_migrations` VALUES (22,'create_default_board_role'); -INSERT INTO `focalboard_schema_migrations` VALUES (23,'persist_category_collapsed_state'); -INSERT INTO `focalboard_schema_migrations` VALUES (24,'mark_existsing_categories_collapsed'); -INSERT INTO `focalboard_schema_migrations` VALUES (25,'indexes_update'); -INSERT INTO `focalboard_schema_migrations` VALUES (26,'create_preferences_table'); -INSERT INTO `focalboard_schema_migrations` VALUES (27,'migrate_user_props_to_preferences'); -INSERT INTO `focalboard_schema_migrations` VALUES (28,'remove_template_channel_link'); -INSERT INTO `focalboard_schema_migrations` VALUES (29,'add_category_type_field'); -INSERT INTO `focalboard_schema_migrations` VALUES (30,'add_category_sort_order'); -INSERT INTO `focalboard_schema_migrations` VALUES (31,'add_category_boards_sort_order'); -INSERT INTO `focalboard_schema_migrations` VALUES (32,'move_boards_category_to_end'); -INSERT INTO `focalboard_system_settings` VALUES ('CategoryUuidIdMigrationComplete','true'); -INSERT INTO `focalboard_system_settings` VALUES ('DeletedMembershipBoardsMigrationComplete','true'); -INSERT INTO `focalboard_system_settings` VALUES ('TeamLessBoardsMigrationComplete','true'); -INSERT INTO `focalboard_system_settings` VALUES ('UniqueIDsMigrationComplete','true'); diff --git a/development/mattermost/nautobot_bootstrap.py b/development/mattermost/nautobot_bootstrap.py index ee0b79e9..032abce6 100644 --- a/development/mattermost/nautobot_bootstrap.py +++ b/development/mattermost/nautobot_bootstrap.py @@ -27,15 +27,15 @@ # The following tokens are for the development only and safe to store in the repo. _COMMAND_TOKENS = { - "aci": "tc1u8wbh53fwxxdkhswbmu9wsa", # nosec - "ansible": "c7udax974iymjkmoyhi1a11cpy", # nosec - "clear": "p7phuwhpaiddjxqf8c1hnw33yh", # nosec - "cloudvision": "pxannsh78iyhbm8fumz8mxk9ih", # nosec - "grafana": "o1yiadnpifbzddt3umcedeypdr", # nosec - "ipfabric": "uqydyxkx4tykinw5z5u9dany1o", # nosec - "meraki": "t9irqwjni3dozf3yx6tzak7k3w", # nosec - "nautobot": "rmdpfdjhnpg988e7ujzyom4euh", # nosec - "panorama": "6nf5cmz1ft8bdfykz46cs5pofo", # nosec + "aci": "b9wrs7paz7fi5ragz9uurwd9fa", # nosec + "ansible": "4hz941bgtpde9g75sesdp7tp1h", # nosec + "clear": "u7p1an973bd1jqg75i3y7pxj7y", # nosec + "cloudvision": "71o3ku7jwjyxup6biu1way1h5y", # nosec + "grafana": "3wxwh3m8mjrzxr11psersqkwue", # nosec + "ipfabric": "ppm316za33ritm3xgpobcmmgre", # nosec + "meraki": "11ix54hycjr4dmxcgw4d77qc4w", # nosec + "nautobot": "ncygprhkt3rrxr4rkytcaa7c9c", # nosec + "panorama": "fh1kbk45xtgm8r48jzr39ru1ww", # nosec } for command, token in _COMMAND_TOKENS.items(): diff --git a/tasks.py b/tasks.py index 7f09ee8b..73a32283 100644 --- a/tasks.py +++ b/tasks.py @@ -716,44 +716,21 @@ def backup_mattermost(context): """Export Mattermost data to the SQL file. Certain tables are ignored.""" output = "./development/mattermost/dump.sql" - ignore_tables = [ - "Audits", - "ChannelMemberHistory", - "CommandWebhooks", - "Posts", - "PostsPriority", - "Sessions", - "UploadSessions", - ] - - base_command = [ + command = [ "exec", - "--env MYSQL_PWD=mostest", "--", "mattermost", - "mysqldump", - "--databases mattermost_test", - "--compact", - "-u root", - ] - - # Dump schema first - command = [ - *base_command, - "--add-drop-database", - "--no-data", + "bash", + "-c", + "'", + "pg_dump", + "--inserts", + "--user=$POSTGRES_USER", + "--dbname=$POSTGRES_DB", + "'", f"> {output}", ] - docker_compose(context, " ".join(command)) - # Dump data for all tables except ignored - command = [ - *base_command, - *(f"--ignore-table mattermost_test.{table}" for table in ignore_tables), - "--no-create-info", - "--skip-extended-insert", - f">> {output}", - ] docker_compose(context, " ".join(command))