Commit a47b8a01 authored by Ivor Uhliarik's avatar Ivor Uhliarik

Added license

parent c92c1e6d
/* This file is part of semantic_fs.
*
* Copyright (C) 2018 Ivor Uhliarik <ivor.uhliarik@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
CREATE TABLE tag (id INT PRIMARY KEY NOT NULL, file_id INT NOT NULL, tag CHAR(50) NOT NULL, value INT, parent_id INT);
CREATE TABLE file (id INT PRIMARY KEY NOT NULL, filename TEXT NOT NULL, uid INT NOT NULL, gid INT NOT NULL, owner_read INT(2) NOT NULL, owner_write INT(2) NOT NULL, owner_exec INT(2) NOT NULL, group_read INT(2) NOT NULL, group_write INT(2) NOT NULL, group_exec INT(2) NOT NULL, others_read INT(2) NOT NULL, others_write INT(2) NOT NULL, others_exec INT(2) NOT NULL, type CHAR(2) NOT NULL, parent_id INT);
CREATE TABLE user_group (INT ID PRIMARY KEY NOT NULL, uid INT NOT NULL, gid INT NOT NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment