mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
25 lines
509 B
CoffeeScript
25 lines
509 B
CoffeeScript
|
Sequelize = require("sequelize")
|
||
|
Settings = require("settings-sharelatex")
|
||
|
|
||
|
sequelize = new Sequelize(
|
||
|
Settings.mysql.clsi.database,
|
||
|
Settings.mysql.clsi.username,
|
||
|
Settings.mysql.clsi.password,
|
||
|
Settings.mysql.clsi
|
||
|
)
|
||
|
|
||
|
module.exports =
|
||
|
UrlCache: sequelize.define("UrlCache", {
|
||
|
url: Sequelize.STRING
|
||
|
project_id: Sequelize.STRING
|
||
|
lastModified: Sequelize.DATE
|
||
|
})
|
||
|
|
||
|
Project: sequelize.define("Project", {
|
||
|
project_id: Sequelize.STRING
|
||
|
lastAccessed: Sequelize.DATE
|
||
|
})
|
||
|
|
||
|
sync: () -> sequelize.sync()
|
||
|
|