Ghost
New
struxadotcloud
/
struxa
public
Star
0
Fork
0
Code
Issues
0
Pull requests
0
d08e243
1
branch
Go to file
t
Code
struxa
packages
db
src
schema
settings.ts
feat: onboarding, admin dashboard fixes
0675674
5 months ago
10 lines · 326 B
1
import
{
mysqlTable
,
text
,
timestamp
,
varchar
}
from
"
drizzle-orm/mysql-core
"
;
2
3
export
const
settings
=
4
key
:
varchar
(
"
key
5
value
:
text
(
"
value
6
updatedAt
:
timestamp
(
"
updated_at
7
.
defaultNow
()
8
.
$onUpdate
(
()
=>
9
.
notNull
()
,
10
}
)
;
mysqlTable
(
"
settings
"
,
{
"
,
{
length
:
255
}
)
.
primaryKey
()
,
"
)
,
"
,
{
fsp
:
3
}
)
new
Date
())