just throwin there

This commit is contained in:
spushk 2026-05-15 22:27:28 +05:00 • committed by spushk
commit 278d7cf05d
Signed by: spushk
GPG key ID: 7797B761E105E8AA
2 changed files with 5712 additions and 0 deletions

View file

@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`
DROP TABLE IF EXISTS `features_vkadslead_clientauth`;
DROP TABLE IF EXISTS `features_vkadslead_formsync`;

View file

@ -0,0 +1,19 @@
-- Your SQL goes here
CREATE TABLE IF NOT EXISTS `features_vkadslead_clientauth` (
`instance` TEXT NOT NULL PRIMARY KEY,
`client_id` TEXT NOT NULL,
`access_token` TEXT NOT NULL,
`ctime` TIMESTAMP NOT NULL,
`expires_in` INTEGER,
`refresh_token` TEXT,
`scope` TEXT,
`token_type` TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS `features_vkadslead_formsync` (
`instance_id` TEXT NOT NULL,
`form_id` TEXT NOT NULL,
`stime` TIMESTAMP NOT NULL,
PRIMARY KEY (`instance_id`, `form_id`),
FOREIGN KEY (`instance_id`) REFERENCES `features_vkadslead_clientauth` (`instance`)
);