KazV2/dockers/quotas/initdb.d/quotas.sql

29 lines
503 B
MySQL
Raw Permalink Normal View History

2024-06-03 18:43:35 +02:00
CREATE DATABASE IF NOT EXISTS quotas;
USE quotas;
CREATE TABLE IF NOT EXISTS Global (
date TIMESTAMP PRIMARY KEY,
total BIGINT,
agora BIGINT,
postfix BIGINT,
nextcloud BIGINT
);
CREATE TABLE IF NOT EXISTS Utilisateur (
date TIMESTAMP,
utilisateur VARCHAR(50) ,
limite INT,
total BIGINT,
postfix BIGINT,
nextcloud BIGINT
);
CREATE TABLE IF NOT EXISTS Associations (
date TIMESTAMP PRIMARY KEY,
associations VARCHAR(50),
total BIGINT,
agora BIGINT,
postfix BIGINT,
nextcloud BIGINT
);