-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use Thai in column and sheet name, upgrade sheethuahua to v3.1
- Loading branch information
Showing
7 changed files
with
64 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Table, Column, type RowType } from 'sheethuahua'; | ||
import { Object, Column, type StaticDecode, asString } from 'sheethuahua'; | ||
|
||
export const locationTable = Table('locations', { | ||
province: Column.String(), | ||
name: Column.String(), | ||
openingTime: Column.OptionalString(), | ||
phone: Column.OptionalString(), | ||
address: Column.OptionalString(), | ||
mapUrl: Column.OptionalString(), | ||
export const locationTable = Object({ | ||
province: Column('จังหวัด*', asString()), | ||
name: Column('ชื่อสถานที่*', asString()), | ||
openingTime: Column('เวลาเปิดทำการ', asString().optional()), | ||
phone: Column('เบอร์โทรศัพท์', asString().optional()), | ||
address: Column('ที่อยู่', asString().optional()), | ||
mapUrl: Column('ลิงก์ไป Google Maps', asString().optional()), | ||
}); | ||
|
||
export type Location = RowType<typeof locationTable>; | ||
export type Location = StaticDecode<typeof locationTable>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import { Table, Column, type RowType } from 'sheethuahua'; | ||
import { | ||
Object, | ||
Column, | ||
type StaticDecode, | ||
asDate, | ||
asNumber, | ||
} from 'sheethuahua'; | ||
|
||
export const offlineSignatureTable = Table('offline-signature', { | ||
date: Column.Date(), | ||
count: Column.Number(), | ||
export const offlineSignatureTable = Object({ | ||
date: Column('วันที่*', asDate()), | ||
count: Column('จำนวนคนที่ลงชื่อ*', asNumber()), | ||
}); | ||
|
||
export type OfflineSignature = RowType<typeof offlineSignatureTable>; | ||
export type OfflineSignature = StaticDecode<typeof offlineSignatureTable>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters