ptSend/util/sql/init.js
2023-06-20 22:34:27 +08:00

16 lines
338 B
JavaScript

const { run } = require("./base");
function initTable(){
// 创建下载列表
let sql = `create table download (
id INT PRIMARY KEY NOT NULL autoincrement,
title VARCHAR(255) not null,
url varchar(255) not null,
save varcahr(255) not null
)`
run(sql)
}
module.exports = {
initTable
}