18 lines
656 B
SQL
18 lines
656 B
SQL
create table if not exists Company
|
|
(
|
|
id bigint primary key,
|
|
name varchar(255) not null,
|
|
members int not null,
|
|
created_time timestamp not null default current_timestamp(),
|
|
modified_time timestamp not null default current_timestamp() on update current_timestamp()
|
|
);
|
|
|
|
create table if not exists Employee
|
|
(
|
|
id bigint primary key,
|
|
name varchar(255) not null,
|
|
age int not null,
|
|
created_time timestamp not null default current_timestamp(),
|
|
modified_time timestamp not null default current_timestamp() on update current_timestamp()
|
|
);
|