|
|
@ -4,6 +4,10 @@ CREATE TABLE `clients_table` ( |
|
|
|
`name` text NOT NULL, |
|
|
|
`ipv4_address` text NOT NULL, |
|
|
|
`ipv6_address` text NOT NULL, |
|
|
|
`pre_up` text DEFAULT '' NOT NULL, |
|
|
|
`post_up` text DEFAULT '' NOT NULL, |
|
|
|
`pre_down` text DEFAULT '' NOT NULL, |
|
|
|
`post_down` text DEFAULT '' NOT NULL, |
|
|
|
`private_key` text NOT NULL, |
|
|
|
`public_key` text NOT NULL, |
|
|
|
`pre_shared_key` text NOT NULL, |
|
|
@ -12,10 +16,6 @@ CREATE TABLE `clients_table` ( |
|
|
|
`server_allowed_ips` text NOT NULL, |
|
|
|
`persistent_keepalive` integer NOT NULL, |
|
|
|
`mtu` integer NOT NULL, |
|
|
|
`pre_up` text, |
|
|
|
`post_up` text, |
|
|
|
`pre_down` text, |
|
|
|
`post_down` text, |
|
|
|
`dns` text NOT NULL, |
|
|
|
`enabled` integer NOT NULL, |
|
|
|
`created_at` text DEFAULT (CURRENT_TIMESTAMP) NOT NULL, |
|
|
|