2018-09-15 13:38:09 +02:00
|
|
|
-- Your SQL goes here
|
|
|
|
CREATE TABLE instances (
|
2018-09-17 11:08:58 +02:00
|
|
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
2018-09-15 13:38:09 +02:00
|
|
|
public_domain VARCHAR NOT NULL,
|
|
|
|
name VARCHAR NOT NULL,
|
|
|
|
local BOOLEAN NOT NULL DEFAULT 'f',
|
|
|
|
blocked BOOLEAN NOT NULL DEFAULT 'f',
|
2018-09-16 16:22:18 +02:00
|
|
|
creation_date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
2018-09-15 13:38:09 +02:00
|
|
|
open_registrations BOOLEAN NOT NULL DEFAULT 't',
|
|
|
|
short_description TEXT NOT NULL DEFAULT '',
|
|
|
|
long_description TEXT NOT NULL DEFAULT '',
|
|
|
|
default_license TEXT NOT NULL DEFAULT 'CC-0',
|
|
|
|
long_description_html VARCHAR NOT NULL DEFAULT '',
|
|
|
|
short_description_html VARCHAR NOT NULL DEFAULT ''
|
|
|
|
)
|