2021-05-04 09:44:45 +02:00
|
|
|
create table entries(id bigint auto_increment primary key, name varchar(255), mail varchar(255),
|
2021-05-05 12:40:57 +02:00
|
|
|
year int(4), birthday date, verify bool, vocation varchar(255), creation DATE,
|
|
|
|
location varchar(100), phone varchar(50)
|
2021-04-23 09:17:58 +02:00
|
|
|
);
|
|
|
|
|
2021-04-27 12:11:43 +02:00
|
|
|
create table verify(id bigint primary key, uuid VARCHAR(36),foreign key verify(id) REFERENCES entries(id));
|
|
|
|
|
|
|
|
CREATE TRIGGER before_insert_verify BEFORE INSERT ON verify FOR EACH ROW SET new.uuid = uuid();
|