diff options
| author | 2024-07-01 12:57:04 +0100 | |
|---|---|---|
| committer | 2024-07-01 13:14:04 +0100 | |
| commit | 4718cec54aad3e95fed207d81e099df685553cb8 (patch) | |
| tree | e48cfb4deb9fbbbeb807dc1423361e5cce3fa9ee /docs/sql/sqloper/mysql.sql | |
| parent | Fix the log_sql module schema allowing null columns. (diff) | |
Add a DBML schema for the sqloper module and update the tables.
Diffstat (limited to 'docs/sql/sqloper/mysql.sql')
| -rw-r--r-- | docs/sql/sqloper/mysql.sql | 43 |
1 files changed, 31 insertions, 12 deletions
diff --git a/docs/sql/sqloper/mysql.sql b/docs/sql/sqloper/mysql.sql index 83dfa68a6..7c7d20d1d 100644 --- a/docs/sql/sqloper/mysql.sql +++ b/docs/sql/sqloper/mysql.sql @@ -1,12 +1,31 @@ -CREATE TABLE ircd_opers ( - id bigint(20) NOT NULL auto_increment, - name text NOT NULL, - password text NOT NULL, - hash text, - host text NOT NULL, - type text NOT NULL, - fingerprint text, - autologin tinyint(1) NOT NULL DEFAULT 0, - active tinyint(1) NOT NULL DEFAULT 1, - PRIMARY KEY (id) -) ENGINE=InnoDB; +CREATE TABLE IF NOT EXISTS `ircd_opers` ( + `active` bool NOT NULL DEFAULT true, + `name` text NOT NULL, + `password` text NOT NULL, + `host` text NOT NULL, + `type` text NOT NULL, + + `autologin` ENUM ('strict', 'relaxed', 'never'), + `class` text, + `hash` text, + `maxchans` bigint, + `nopassword` bool, + `vhost` text, + + `commands` text, + `privs` text, + `chanmodes` text, + `usermodes` text, + `snomasks` text, + + `account` text, + `autojoin` text, + `automotd` bool, + `fingerprint` text, + `level` bigint, + `modes` text, + `motd` bool, + `override` text, + `sslonly` bool, + `swhois` text +); |
