* MM_30482: Imported database and types /database folder * MM_30482: Imported database and types /database folder * MM_30482 : All tests are passing * MM_30482 : Updating patch package for watermelon db * MM_30482 : Fixing CI issue * MM_30482 : Updating TS complaint * Update index.ts * MM_30482 : Code clean up Co-authored-by: Avinash Lingaloo <>
20 lines
595 B
TypeScript
20 lines
595 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {Model} from '@nozbe/watermelondb';
|
|
import {field} from '@nozbe/watermelondb/decorators';
|
|
|
|
import {MM_TABLES} from '@constants/database';
|
|
|
|
const {TERMS_OF_SERVICE} = MM_TABLES.SERVER;
|
|
|
|
/**
|
|
* The model for Terms of Service
|
|
*/
|
|
export default class TermsOfService extends Model {
|
|
/** table (entity name) : TermsOfService */
|
|
static table = TERMS_OF_SERVICE;
|
|
|
|
/** accepted_at : the date the term has been accepted */
|
|
@field('accepted_at') acceptedAt!: number;
|
|
}
|