video player
This commit is contained in:
@@ -34,31 +34,39 @@ import {
|
||||
} from "spacetimedb";
|
||||
|
||||
// Import all reducer arg schemas
|
||||
import AddReducer from "./add_reducer";
|
||||
import SayHelloReducer from "./say_hello_reducer";
|
||||
import PauseReducer from "./pause_reducer";
|
||||
import PlayReducer from "./play_reducer";
|
||||
import SeekReducer from "./seek_reducer";
|
||||
import SetUrlReducer from "./set_url_reducer";
|
||||
|
||||
// Import all procedure arg schemas
|
||||
|
||||
// Import all table schema definitions
|
||||
import PersonRow from "./person_table";
|
||||
import VideoStateRow from "./video_state_table";
|
||||
|
||||
/** Type-only namespace exports for generated type groups. */
|
||||
|
||||
/** The schema information for all tables in this module. This is defined the same was as the tables would have been defined in the server. */
|
||||
const tablesSchema = __schema({
|
||||
person: __table({
|
||||
name: 'person',
|
||||
videoState: __table({
|
||||
name: 'video_state',
|
||||
indexes: [
|
||||
{ accessor: 'id', name: 'video_state_id_idx_btree', algorithm: 'btree', columns: [
|
||||
'id',
|
||||
] },
|
||||
],
|
||||
constraints: [
|
||||
{ name: 'video_state_id_key', constraint: 'unique', columns: ['id'] },
|
||||
],
|
||||
}, PersonRow),
|
||||
}, VideoStateRow),
|
||||
});
|
||||
|
||||
/** The schema information for all reducers in this module. This is defined the same way as the reducers would have been defined in the server, except the body of the reducer is omitted in code generation. */
|
||||
const reducersSchema = __reducers(
|
||||
__reducerSchema("add", AddReducer),
|
||||
__reducerSchema("say_hello", SayHelloReducer),
|
||||
__reducerSchema("pause", PauseReducer),
|
||||
__reducerSchema("play", PlayReducer),
|
||||
__reducerSchema("seek", SeekReducer),
|
||||
__reducerSchema("set_url", SetUrlReducer),
|
||||
);
|
||||
|
||||
/** The schema information for all procedures in this module. This is defined the same way as the procedures would have been defined in the server. */
|
||||
|
||||
Reference in New Issue
Block a user