Obsolete
/
dnsmanagerv1
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
dnsmanagerv1/init/sql/init-tables.sql

22 lines
532 B
SQL

USE dnsmanager;
CREATE TABLE IF NOT EXISTS user (
login varchar(50) NOT NULL,
passwd varchar(100) DEFAULT NULL,
admin tinyint(1) DEFAULT 0,
PRIMARY KEY (login)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS domain (
domain varchar(100) NOT NULL,
login varchar(50) NOT NULL,
activated tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (domain)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS tld (
tld varchar(50) NOT NULL,
activated tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (tld)
) ENGINE=InnoDB;