mirror of
https://github.com/directus/directus.git
synced 2026-02-01 16:24:59 -05:00
26 lines
572 B
SQL
26 lines
572 B
SQL
create table teams (
|
|
id int not null auto_increment primary key,
|
|
name varchar(100),
|
|
description text,
|
|
credits integer(11) comment "Remaining usage credits",
|
|
created_at datetime,
|
|
activated_at date
|
|
);
|
|
|
|
create table users (
|
|
id int not null auto_increment primary key,
|
|
team_id int not null,
|
|
email varchar(100),
|
|
password varchar(60),
|
|
constraint fk_team_id
|
|
foreign key (team_id)
|
|
references teams (id)
|
|
);
|
|
|
|
-- One table without a primary key
|
|
create table page_visits (
|
|
request_path varchar(100),
|
|
user_agent varchar(200),
|
|
created_at datetime
|
|
);
|