Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit bac917b

Browse files
author
thirteen
committed
removed obsolete field images.tag; added new table likes
1 parent 5f8bd73 commit bac917b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/tables.sql

+8-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ create table users (
1515
create table images (
1616
id int auto_increment primary key,
1717
type smallint,
18-
tag int,
1918
owner int,
2019
path text,
2120
description text,
@@ -38,6 +37,14 @@ create table tags (
3837
foreign key (image) references images(id)
3938
);
4039

40+
create table likes (
41+
image int,
42+
owner int,
43+
primary key (image, owner),
44+
foreign key (owner) references users(id),
45+
foreign key (image) references images(id)
46+
)
47+
4148
create table comments (
4249
id int auto_increment primary key,
4350
owner int,

0 commit comments

Comments
 (0)