-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.sql
More file actions
36 lines (32 loc) · 905 Bytes
/
schema.sql
File metadata and controls
36 lines (32 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
-- Create the database
CREATE DATABASE bioface_ui_db;
-- Use the database
USE bioface_ui_db;
-- Table for bio articles
CREATE TABLE bio_article (
id INT AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(255) NOT NULL,
source TEXT NOT NULL,
content TEXT NOT NULL,
image TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- Table for bio dictionary items
CREATE TABLE bio_dict (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
benefit TEXT NOT NULL,
how_to_use TEXT NOT NULL,
image TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- Table for bio skincare items
CREATE TABLE bio_skincare (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
description TEXT NOT NULL,
price INT NOT NULL,
link_to_buy TEXT,
image VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);