mirror of https://github.com/AMT-Cheif/drift.git
22 lines
379 B
SQL
22 lines
379 B
SQL
CREATE TABLE no_ids (
|
|
payload BLOB NOT NULL
|
|
) WITHOUT ROWID;
|
|
|
|
CREATE TABLE with_defaults (
|
|
a TEXT DEFAULT 'something',
|
|
b INT UNIQUE
|
|
)
|
|
|
|
CREATE TABLE with_constraints (
|
|
a TEXT,
|
|
b INT NOT NULL,
|
|
c FLOAT(10, 2),
|
|
|
|
FOREIGN KEY (a, b) REFERENCES with_defaults (a, b)
|
|
)
|
|
|
|
create table config (
|
|
config_key TEXT not null primary key,
|
|
config_value TEXT
|
|
);
|